I am working on API that generates so called "model" classes based on @Model annotation. I'd like to demo this project at JavaOne, but I have a problem: current javac hicks up and throws AnnotationTypeMismatchException instead of expected MirroredTypeException.
I have a workaround that uses trees API, but I think it would be better if, at JavaOne time, my project worked without hacks with the latest available JDK at the JavaOne time.
That is why I am proposing a patch to javac for your consideration.
I have a workaround that uses trees API, but I think it would be better if, at JavaOne time, my project worked without hacks with the latest available JDK at the JavaOne time.
That is why I am proposing a patch to javac for your consideration.
- relates to
-
JDK-8023548 ClassCastException: com.sun.tools.javac.code.Attribute$UnresolvedClass cannot be cast to com.sun.tools.javac.code.Attribute$Class
- Closed
-
JDK-6278240 Exception from AnnotationValue.getValue() should list the found type not the required type
- Closed