Allow TestCompiler SourceFile to work with records

Update `SourceFile` to try a regex replace to make `record` files look
like regular classes.

Closes gh-29236
This commit is contained in:
Phillip Webb
2022-09-30 11:18:43 -07:00
parent 8c24e8c034
commit 7fd8e081bb
3 changed files with 37 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ dependencies {
api("com.sun.xml.bind:jaxb-core:3.0.2")
api("com.sun.xml.bind:jaxb-impl:3.0.2")
api("com.sun.xml.bind:jaxb-xjc:3.0.2")
api("com.thoughtworks.qdox:qdox:2.0.1")
api("com.thoughtworks.qdox:qdox:2.0.2")
api("com.thoughtworks.xstream:xstream:1.4.19")
api("commons-io:commons-io:2.11.0")
api("de.bechte.junit:junit-hierarchicalcontextrunner:4.12.1")