Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6271793

com.sun.org.apache.bcel missing LocalVariableTypeTable Code Attribute (version 49 classfiles)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 6
    • xml

        The JDK 5.0 release created version 49 classfiles and introduced the Code Attribute
        LocalVariableTypeTable (which looks alot like a LocalVariableTable) that contains
        byte code offsets.
        The version of com.sun.org.apache.bcel in the JDK (5.0 and 6.0) does not deal with this
        attribute.
        Any java source file containing generics and compiled with 'javac -g -target 1.5' will
        have this Attribute:

        public class HelloWorld {
            public static void main(String args[]) {
                java.util.List<String> l = new java.util.ArrayList<String>();
                String.format("%s", "");
           }
        }

        javap -verbose | tail -12
          LineNumberTable:
           line 3: 0
           line 4: 8
           line 5: 23
          LocalVariableTable:
           Start Length Slot Name Signature
           0 24 0 args [Ljava/lang/String;
           8 16 1 l Ljava/util/List;
          LocalVariableTypeTable: length = 0xC
           00 01 00 08 00 10 00 14 00 17 00 01

        The LocalVariableTypeTable has the same format as the LocalVariableTable.


        ###@###.### 2005-05-17 16:53:16 GMT

              jsuttorsunw Jeff Suttor (Inactive)
              ohair Kelly Ohair (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: