I am trying to use jode/eclipse to decompile classes
produced by AJDT compiler/weaver for my project.
When I go to myproject/bin (the output directory) and
try to open any of the class files in there, standard
classfile viewer open, and the following exception
appears in the eclipse log:
java.lang.NullPointerException
at
org.eclipse.jdt.internal.core.BinaryType.sourceFileName(BinaryType.java:873)
at
org.eclipse.jdt.internal.core.SourceMapper.mapSource(SourceMapper.java:1056)
at
org.eclipse.jdt.internal.core.SourceMapper.mapSource(SourceMapper.java:995)
at
net.sourceforge.jode.JodeSourceMapper.mapSource(JodeSourceMapper.java:121)
at
net.sourceforge.jode.JodeClassFileEditor.doOpenBuffer(JodeClassFileEditor.java:112)
at
net.sourceforge.jode.JodeClassFileEditor.init(JodeClassFileEditor.java:70)
In my particular use case (AspectJ programming), it
would make a perfect sense to add an 'Open with > Jode
Class File Viewer' for all Java types, and all Java
source files in the workbench. The action would locate
the corresponding class file and disassemble it. If
there is an another editor displaying the file, plugin
should prompt about closing it, because it's impossible
to have two for the same item.
If you implement this feature, I promise I'll advertise
your plugin loudly at the aspectj-users list ;-) If you
don't have time / energy, please at last fix the
problem causing the exception above - it makes the
plugin ususable for me.