]
Paul Gier closed JBBUILD-332.
-----------------------------
Resolution: Done
The anon inner classes were getting picked up as separate enums. And the jdk method for
getting the enum constants was returning null causing the NPE.
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.1.0.GA
For example, see
http://fisheye.jboss.com/browse/~raw,r=1.7/JBoss/JBossCache/src/org/jboss...
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: