Community
Participate
Working Groups
I20050928 If you disassemble code in a non-default package, the name of the package is prepend to the name of the class. E.g. this is what you get for java.lang.Double: public final class java.lang.Double extends java.lang.Number implements java.lang.Comparable { public static final double POSITIVE_INFINITY = Infinity; [...]
Also note that the constant 'Infinity' is suspicious.
Olivier, can you please have a look at this ? This is needed for bug 110160.
I will investigate.
So you would expect: package java.lang; public final class Double extends java.lang.Number implements java.lang.Comparable { .... I'll check what I can do for the Infinity constant.
(In reply to comment #4) > So you would expect: > package java.lang; > > public final class Double extends java.lang.Number implements > java.lang.Comparable { > .... > Correct
Fixed and released in HEAD. Added regression test org.eclipse.jdt.core.tests.compiler.regression.ClassFileReaderTest.test072/test074. Use the new mode org.eclipse.jdt.core.util.ClassFileBytesDisassembler.WORKING_COPY to get the output that you want.
Verified for 3.2 M3 using ASTView and build I20051025-0800+v_619