Releases: google/compile-testing
Releases · google/compile-testing
0.23.0
0.22.0
- With this release, users must pass three additional
--add-exportslines:--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.compileto ensure that it doesn't leak file descriptors. (972ac1e) - Removed the AutoValue processor from the runtime dependencies of Compile-Testing. (6d8ea27)
0.21.0
- 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,yieldstatements, 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
- 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()toCompiler. (80a9ee0) - Improve error messages rendered by
JavaSourcesSubject.parsesAs()andJavaFileObjectSubject.containsElementsIn()to more easily distinguish between errors incurred in actual vs expected source. (115014e) - Use
@Nullablefrom the Checker Framework and fix a few null-correctness issues. (6260258) - Fixed bug where testing
package-info.javawithparsesAs()threw aNullPointerException. (c46b1b6) - Close
JavaCompilerobjects to avoid resource leaks. (cd2c0a8)
0.19
Release 0.18
- Prepare for the removal of
actual()from Truth.
Release 0.17
- Prepared for the removal of various APIs from Truth.
Release 0.16
- Migrated off Truth's removed
failWithRawMessageand deprecatedfail. (2678c36, 3f1f222) CompilationSubject.succeeded()now shows warnings as well as errors on failure. (7d31b53)- Make
ForwardingStandardJavaFileManagerpublic. (acf6ae7) - Add
withClasspath(Iterable<File>)toCompilerandJavaSourcesSubjectand deprecatewithClasspathFrom(ClassLoader)(7622471)
Release 0.15
Updated dependencies and plugins to support Java 9.
Release 0.14
- Implement
JavaFileObjectSubject.containsElementsIn()(49c254f)