#2 Line #s of line in original source


It would be really handy to have the line # of the
decompiled bit of source as it was in the original

I.e. if jode produces:

public PeerGroupID getPeerGroupID() {
PeerGroupID peergroupid = new
PeerGroupID(new UUID(0L, 0L));
return peergroupid;

I would like to see:

public PeerGroupID getPeerGroupID() {
/* 280 */ PeerGroupID peergroupid = new
PeerGroupID(new UUID(0L, 0L));
/* 282 */ return peergroupid;

This will make the jode output 10x more useful
when using jode to analyze exception


  • Jochen Hoenicke

    Jochen Hoenicke - 2001-07-18

    Logged In: YES

    I will do it, but I can't promise how quickly I get to it.
    It needs a bit of coding to propagate the line number
    information from the bytecode opcodes to the java

  • Jochen Hoenicke

    Jochen Hoenicke - 2001-07-18
    • assigned_to: nobody --> hoenicke
  • Cay Horstmann

    Cay Horstmann - 2003-03-04

    Logged In: YES

    I'd like to second this request. I used JODE to reverse
    engineer the code from the Java Server Faces reference
    implementation. It has been a lifesaver.

    However, the servlet container throws exceptions all the
    time, at the slightest provocation. Having to use javap in
    conjunction with the JODE disassembly is a pain.

  • Aaron Optimizer Digulla

    Logged In: YES

    Please put the line number at the end! This wouldn't disrupt
    the formatting.

    Adding a # in front of the line number would make it easy to
    search for it.

    Even more interesting would be to reorder the source when
    you find line numbers (adding empty lines when
    necessary).For a simple and good result, first sort the
    methods by line number and then check if each of them "fits"
    into it's space (number of lines upto next method). If it
    doesn't, move this method after the last one (so the least
    amount of methods is moved).


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks