Re: javap issue



S.Marion wrote:

I have a slightly odd problem here.
I'm trying to decompile the class file java/util/TimeZone .
Specifically, I'm interested in the method :
static synchronized HashMap timezones()

I do have the java source file, and indeed, the method is in the file.
However, when I "javap -c -private java/util/TimeZone" There's no way I can get my hand on the method.
javap does simply not output it.
I made sure he is looking for the appropriate class file.

Which version of which implementation of Java are you using? I can't see a method like that in Sun's code.

Are you absolutely sure javap is using class files produced with your source?

Tom Hawtin
--
Unemployed English Java programmer
http://jroller.com/page/tackline/
.



Relevant Pages

  • Code Cracking in Java
    ... Software developers, designers, security professional, auditors, managers responsible for evaluating products. ... I love programming in Java but unfortunately I didn’t get a chance to work in software development firm but I am very much happy with my profile, basically I am an ethical hacker currently working in Wipro and previously in PwC. ... For security reasons I will not mention client name, application vendor and detail about the application architecture. ... As we commonly know that the basic loophole in Java is that it can be reengineered from class file to source code, the class file consist of byte codes which is interpreted by Java Virtual Machine to make Java platform independent. ...
    (Pen-Test)
  • Re: java 101 question - how to run a java program
    ... do "javac java01.java". ... .class file in the same directory as the .java file. ... File "java01.java" not a Java class file. ... Unable to create Java program for "java01.java". ...
    (comp.sys.ibm.as400.misc)
  • Re: jar, package and import relationship?
    ... Java does too: the CLASSPATH must be correct. ... It's a bit different for anything that comes with the default with Java, because the JVM handles those a bit differently with out environment variables, but for any library or .class file you download or create, you need to tell your tools where to find them. ... public static void main(String ... ...
    (comp.lang.java.programmer)
  • RE: RH 7.2, J2RE 1.4 and Netscape 7.1
    ... The reason for some problems between 1.4x and 1.4.2 are class file ... format changes. ... I have had multi issues with some of my prebuilt java ... Netscape may even be doing that. ...
    (RedHat)
  • Re: JNI Woes
    ... I have read include running javah on the class file (which I can ... Writing a wrapper library to implement the functions from the dll to ... and Java does not offer any other technical ... Choose a suitable place for your JNI ...
    (comp.lang.java.programmer)