garydgregory commented on PR #157: URL: https://github.com/apache/commons-bcel/pull/157#issuecomment-1279836384
I do not see what you are seeing, if I create a class org.apache.bcel.classfile.ClassWithNullConstantPoolItem and run javap I get: ``` javap -v target/test-classes/org/apache/bcel/classfile/ClassWithNullConstantPoolItem.class Classfile /C:/Users/ggregory/git/a/commons-bcel/target/test-classes/org/apache/bcel/classfile/ClassWithNullConstantPoolItem.class Last modified Oct 15, 2022; size 414 bytes SHA-256 checksum dde65254ff1d0d604c9abee4a13dc34e31fc45c7fec0487e00ba6209cbb1e52d Compiled from "ClassWithNullConstantPoolItem.java" public class org.apache.bcel.classfile.ClassWithNullConstantPoolItem minor version: 0 major version: 52 flags: (0x0021) ACC_PUBLIC, ACC_SUPER this_class: #1 // org/apache/bcel/classfile/ClassWithNullConstantPoolItem super_class: #3 // java/lang/Object interfaces: 0, fields: 1, methods: 1, attributes: 1 Constant pool: #1 = Class #2 // org/apache/bcel/classfile/ClassWithNullConstantPoolItem #2 = Utf8 org/apache/bcel/classfile/ClassWithNullConstantPoolItem #3 = Class #4 // java/lang/Object #4 = Utf8 java/lang/Object #5 = Utf8 d #6 = Utf8 D #7 = Utf8 <init> #8 = Utf8 ()V #9 = Utf8 Code #10 = Methodref #3.#11 // java/lang/Object."<init>":()V #11 = NameAndType #7:#8 // "<init>":()V #12 = Double 42.0d #14 = Fieldref #1.#15 // org/apache/bcel/classfile/ClassWithNullConstantPoolItem.d:D #15 = NameAndType #5:#6 // d:D #16 = Utf8 LineNumberTable #17 = Utf8 LocalVariableTable #18 = Utf8 this #19 = Utf8 Lorg/apache/bcel/classfile/ClassWithNullConstantPoolItem; #20 = Utf8 SourceFile #21 = Utf8 ClassWithNullConstantPoolItem.java { double d; descriptor: D flags: (0x0000) public org.apache.bcel.classfile.ClassWithNullConstantPoolItem(); descriptor: ()V flags: (0x0001) ACC_PUBLIC Code: stack=3, locals=1, args_size=1 0: aload_0 1: invokespecial #10 // Method java/lang/Object."<init>":()V 4: aload_0 5: ldc2_w #12 // double 42.0d 8: putfield #14 // Field d:D 11: return LineNumberTable: line 20: 0 line 21: 4 line 20: 11 LocalVariableTable: Start Length Slot Name Signature 0 12 0 this Lorg/apache/bcel/classfile/ClassWithNullConstantPoolItem; } SourceFile: "ClassWithNullConstantPoolItem.java" ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org