Uploaded image for project: 'JBoss Build System'
  1. JBoss Build System
  2. JBBUILD-332

Anonymous implementation of abstract methods in enums causes Weaver to barf

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: JBossRetro-1.0.4.GA
    • Fix Version/s: jboss-retro-1.1.0.GA
    • Component/s: JBossRetro
    • Labels:
      None
    • Environment:

      Description

      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)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                pgier Paul Gier
                Reporter:
                manik Manik Surtani
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: