[jboss-jira] [JBoss JIRA] Updated: (JBBUILD-332) Anonymous implementation of abstract methods in enums causes Weaver to barf
Paul Gier (JIRA)
jira-events at lists.jboss.org
Wed Mar 21 15:17:50 EDT 2007
[ http://jira.jboss.com/jira/browse/JBBUILD-332?page=all ]
Paul Gier updated JBBUILD-332:
------------------------------
Fix Version/s: JBossRetro-1.0.6.GA
Affects Version/s: (was: JBossRetro-1.0.6.GA)
> Anonymous implementation of abstract methods in enums causes Weaver to barf
> ---------------------------------------------------------------------------
>
> Key: JBBUILD-332
> URL: http://jira.jboss.com/jira/browse/JBBUILD-332
> Project: JBoss Build System
> Issue Type: Bug
> Components: JBossRetro
> Affects Versions: JBossRetro-1.0.4.GA
> Environment: Tested with JBoss Retro snapshot (10 Jan 2007) as well as 1.0.4.GA
> java version "1.5.0_09"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
> Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode, sharing)
> Linux hobbes 2.6.18-1.2869.fc6xen #1 SMP Wed Dec 20 15:28:06 EST 2006 i686 i686 i386 GNU/Linux
> Reporter: Manik Surtani
> Assigned To: Paul Gier
> Fix For: JBossRetro-1.0.6.GA
>
>
> For example, see
> http://fisheye.jboss.com/browse/~raw,r=1.7/JBoss/JBossCache/src/org/jboss/cache/lock/IsolationLevel.java
> When attempting to retroweave this enum, we see an NPE trying to get a hold of the enums in the class.
> [retro] Attempting to retroweave class org.jboss.cache.lock.IsolationLevel$1
> [retro] Exception in thread "main" java.lang.NullPointerException
> [retro] at org.jboss.ant.tasks.retro.Weaver.rewriteEnum(Weaver.java:581)
> [retro] at org.jboss.ant.tasks.retro.Weaver.doWeave(Weaver.java:463)
> [retro] at org.jboss.ant.tasks.retro.Weaver.compileFile(Weaver.java:415)
> [retro] at org.jboss.ant.tasks.retro.Weaver.weave(Weaver.java:328)
> [retro] at org.jboss.ant.tasks.retro.Weaver.main(Weaver.java:110)
> (I added the sys out in my local copy of Weaver.java to spit out the name of the offending class)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list