-
Bug
-
Resolution: Fixed
-
P3
-
6
-
1.4
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2127037 | 1.3.1 | Jeff Suttor | P3 | Closed | Won't Fix |
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
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
- backported by
-
JDK-2127037 com.sun.org.apache.bcel missing LocalVariableTypeTable Code Attribute (version 49 classfiles)
-
- Closed
-