1 Reply Latest reply: Aug 19, 2007 11:03 AM by 843810 RSS

    GetLineNumberTable start_location

    843810
      I have an agent that performs class disassembly of bytecodes in memory similar to how javap does for .class files. However when I print line_numbers and start_location via GetLineNumberTable, the start_location differs from the javap output. There seems to be an offset of 5. Below is the output from my agent and from javap:

      agent:

      public static void main(java.lang.String[]);
      LineNumberTable:
      line 8: 0
      line 9: 15
      line 10: 19

      javap:

      public static void main(java.lang.String[]);
      LineNumberTable:
      line 8: 0
      line 9: 10
      line 10: 14

      The start_location (except for the first line - start_loc = 0) is always off by 5 for all classes/methods.

      Any idea why this is?

      Thanx
      JJ