Support for JDK 1.4.2

2003-07-01
2003-09-22
  • Dave Kriewall

    Dave Kriewall - 2003-07-01

    I'm encountering classes compiled by the JDK's newer than 1.3 whose classes are version 48.0.  This is evidently not supported by JODE - I get this output:

    Jode (c) 1998-2001 Jochen Hoenicke <jochen@gnu.org>
    Can't read class a.a.a, types may be incorrect. (jode.bytecode.ClassFormatException: Wrong class version)
    jode.bytecode.ClassFormatException: Wrong class version
            at jode.bytecode.ClassInfo.read(ClassInfo.java:292)
            at jode.bytecode.ClassInfo.loadInfo(ClassInfo.java:614)
            at jode.bytecode.ClassInfo.getOuterClasses(ClassInfo.java:787)
            at jode.decompiler.Options.skipClass(Options.java:59)
            at jode.decompiler.Main.decompileClass(Main.java:160)
            at jode.decompiler.Main.decompile(Main.java:370)
            at jode.decompiler.Main.main(Main.java:203)
    a.a.a
    java.lang.NoClassDefFoundError: a.a.a
            at jode.bytecode.ClassInfo.loadInfo(ClassInfo.java:620)
            at jode.decompiler.ClassAnalyzer.<init>(ClassAnalyzer.java:86)
            at jode.decompiler.ClassAnalyzer.<init>(ClassAnalyzer.java:123)
            at jode.decompiler.ClassAnalyzer.<init>(ClassAnalyzer.java:128)
            at jode.decompiler.Main.decompileClass(Main.java:183)
            at jode.decompiler.Main.decompile(Main.java:370)
            at jode.decompiler.Main.main(Main.java:203)

    Anybody planning to upgrade JODE to handle newer class file formats?

    Thanks -
    -Dave

     
    • Chad McHenry

      Chad McHenry - 2003-09-22

      I'm also interested in this functionality. JODE was the best thing since sliced bread, until sun released 1.4.x.. now it doesn't decompile anything created with a current jdk :-(

      3-4 weeks from now I'll have a little time to apply to a new project.  Getting JODE up to speed with the latest jdk seems a more than worthy goal.

      Jochen, are you still working on the core decompiler?  Do you have notes, etc (I've yet to really start digging through your site). It's been a long time since my undergrad 'compilers' course, and getting up to speed could take a while.  But this sort of thing's always easier with multiple people involved, who's up for it?

      ...Chad

       

Log in to post a comment.