[jboss-jira] [JBoss JIRA] Created: (JBBUILD-332) Anonymous implementation of abstract methods in enums causes Weaver to barf

Manik Surtani (JIRA) jira-events at jboss.com
Wed Jan 10 09:48:27 EST 2007


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


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