Community
Participate
Working Groups
Shown below is a partial stack trace (I removed the trace through my code since that's not useful). It would appear that org.eclipse.jdt.apt.core.internal.util.Factory.createDeclaration() is missing a case for packages, as shown in http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/Factory.java?view=markup. This makes it difficult/impossible to process annotations in package-info.java files. Actually while we're at it the "IllegalStateException" is pretty useless, it could at least say "binding type \"package\" is not (yet) supported" or something of the like. Basically just emphasize that the binding type not be recognized is the problem. java.lang.IllegalStateException: failed to create declaration from package foo.bar at org.eclipse.jdt.apt.core.internal.util.Factory.createDeclaration(Factory.java:112) at org.eclipse.jdt.apt.core.internal.env.BaseProcessorEnv.getDeclarations(BaseProcessorEnv.java:374) at org.eclipse.jdt.apt.core.internal.env.BaseProcessorEnv.getDeclarationsAnnotatedWith(BaseProcessorEnv.java:305) at org.eclipse.jdt.apt.core.internal.env.BaseProcessorEnv.getDeclarationsAnnotatedWith(BaseProcessorEnv.java:279)
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.