Skip to content

Releases: google/compile-testing

0.23.0

10 Sep 16:28

Choose a tag to compare

  • Bumped Compile-Testing's Truth dependency to 1.4.5, which depends on the same JSpecify version as Compile-Testing itself does (1.0.0).

0.22.0

03 Sep 16:30

Choose a tag to compare

  • With this release, users must pass three additional --add-exports lines:
    • --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
    • --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
    • --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
  • Improve handling of parse errors. (044a5a5)
  • Fixed Compiler.compile to ensure that it doesn't leak file descriptors. (972ac1e)
  • Removed the AutoValue processor from the runtime dependencies of Compile-Testing. (6d8ea27)

0.21.0

12 Dec 20:25

Choose a tag to compare

  • Fixed a bug: When comparing ASTs, for example in JavaFileObjectSubject.hasSourceEquivalentTo, some kinds of nodes were omitted from the comparison. In particular, if the expected code had an annotated type or a union type (multicatch), the actual code could contain anything at that point and the test would still pass. This was also true for post-Java-8 constructs like module declarations, yield statements, and the like. These omissions have been corrected. Some tests may now fail if the expected and actual source do not match, in ways that were hidden by this bug. (9a592f7)

0.20

01 Dec 16:06

Choose a tag to compare

  • Allow sources being compiled to be read from annotation processors. (95e749d)
  • Fix false negative when comparing source files that differ only in try-with-resources specifications. (cb6486c)
  • Add withAnnotationProcessorPath() to Compiler. (80a9ee0)
  • Improve error messages rendered by JavaSourcesSubject.parsesAs() and JavaFileObjectSubject.containsElementsIn() to more easily distinguish between errors incurred in actual vs expected source. (115014e)
  • Use @Nullable from the Checker Framework and fix a few null-correctness issues. (6260258)
  • Fixed bug where testing package-info.java with parsesAs() threw a NullPointerException. (c46b1b6)
  • Close JavaCompiler objects to avoid resource leaks. (cd2c0a8)

0.19

21 Oct 17:59

Choose a tag to compare

  • Updated Truth usages to be compatible with Truth 1.0 and higher.
  • Improved exception thrown by onLine(n) when n is out of range. (b4eaa92)

Release 0.18

30 May 19:12

Choose a tag to compare

  • Prepare for the removal of actual() from Truth.

Release 0.17

08 May 17:38

Choose a tag to compare

  • Prepared for the removal of various APIs from Truth.

Release 0.16

08 May 15:55

Choose a tag to compare

  • Migrated off Truth's removed failWithRawMessage and deprecated fail. (2678c36, 3f1f222)
  • CompilationSubject.succeeded() now shows warnings as well as errors on failure. (7d31b53)
  • Make ForwardingStandardJavaFileManager public. (acf6ae7)
  • Add withClasspath(Iterable<File>) to Compiler and JavaSourcesSubject and deprecate withClasspathFrom(ClassLoader) (7622471)

Release 0.15

21 Dec 16:42

Choose a tag to compare

Updated dependencies and plugins to support Java 9.

Release 0.14

07 Dec 05:02

Choose a tag to compare

  • Implement JavaFileObjectSubject.containsElementsIn() (49c254f)