This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 233519

Summary: annotation.AnnotationTypeMismatchException: Incorrectly typed data found for annotation element public abstract games.jwrestling.core.game.object.Editions$Edition games.jwrestling.core.annotation.Page
Product: java Reporter: javydreamercsw <javydreamercsw>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 202577
Attachments: stacktrace

Description javydreamercsw 2013-07-26 20:46:06 UTC
Build: NetBeans IDE Dev (Build 201307252300)
VM: Java HotSpot(TM) Client VM, 24.0-b53, Java(TM) SE Runtime Environment, 1.7.0_40-ea-b34
OS: Windows 7

User Comments:
javydreamercsw: Fixing imports in classes.




Stacktrace: 
java.lang.annotation.AnnotationTypeMismatchException: Incorrectly typed data found for annotation element public abstract games.jwrestling.core.game.object.Editions$Edition games.jwrestling.core.annotation.Page.edition() (Found data of type net.sourceforge.javydreamercsw.jwrestling.core.Editions.Edition)
   at com.sun.tools.javac.model.AnnotationProxyMaker$ValueVisitor$1AnnotationTypeMismatchExceptionProxy.generateException(AnnotationProxyMaker.java:265)
   at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:75)
   at com.sun.proxy.$Proxy119.edition(.java:0)
   at games.jwrestling.core.annotation.processor.CardAnnotationProcessor.process(CardAnnotationProcessor.java:124)
   at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:823)
   at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:719)
Comment 1 javydreamercsw 2013-07-26 20:46:08 UTC
Created attachment 137882 [details]
stacktrace
Comment 2 Dusan Balek 2013-07-29 09:31:27 UTC
AnnotationTypeMismatchExceptions are thrown to indicate that a program has
attempted to access an element of an annotation whose type has changed after
the annotation was compiled (or serialized). These exceptions can be thrown by
the java.lang.reflect.AnnotatedElement API used to read annotations
reflectively.

Seems like a problem in
games.jwrestling.core.annotation.processor.CardAnnotationProcessor.