leangen / geantyref

Advanced generic type reflection library with support for working with AnnotatedTypes (for Java 8+)
Apache License 2.0
99 stars 15 forks source link

compiling with JDK 11 leads to test failures #23

Closed hgschmie closed 7 months ago

hgschmie commented 7 months ago

It seems that the toString() method for an annotation has changed post-JDK8. When compiling with JDK 11, set to JDK 8 compatibility, the type factory test fails here:

Screenshot 2024-01-19 at 12 13 40

JDK 11 adds the "" empty string to the definition when calling Annotation#toString(), while JDK8 does not.