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

ConstantPoolBuilder::loadableConstantEntry and constantValueEntry should throw NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • 25
    • core-libs
    • None

      The methods java.lang.classfile.constantpool.ConstantPoolBuilder::loadableConstantEntry and constantValueEntry currently throw IllegalArgumentException for incoming null arguments. This is problematic because these factory methods are used to process nested constant descriptors, such as the List<ConstantDesc> for bsmEntry; it creates confusion when users see IAE but find it ultimately coming from nested nulls in lists.

            liach Chen Liang
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: