-
Couldn't load subscription status.
- Fork 8
Description
With JDK 1.7 (Eclipse Temurin 17.0.14)
Using these dependencies in a Maven project:
io.avaje:avaje-jsonb:3.7
io.avaje:avaje-jsonb-generator:3.7
Both of the following test classes generate code that does not compile.
This version produces code that has a particular compilation problem (in regards to generics):
public class AvajeTestClass {
@io.avaje.jsonb.Json
public static class NestedClass1<T> {
public T value;
}
}
This version produces code that has an additional compilation problem (easy to spot/fix):
public class AvajeTestClass {
public static class NestedClass1 {
@io.avaje.jsonb.Json
public static class NestedClass2<T> {
public T value;
}
}
}
Note: inserting a public constructor adorned with the @io.avaje.jsonb.Json.Creator annotation does not change anything.
Should I NOT be using generics with this annotation processor (or refrain from annotating nested classes)?
Best Regards,
Kevin