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

AccessFlag::locations(ClassFileFormatVersion cffv) does not throw NPEx when parameter is null

XMLWordPrintable

      As per the spec:
      https://download.java.net/java/early_access/jdk20/docs/api/java.base/java/lang/reflect/AccessFlag.html#locations(java.lang.reflect.ClassFileFormatVersion)
      "Throws:
      NullPointerException - if the parameter is null

      Observed that NPE is not thrown when parameter is null.

      Attached the snippet to demonstrate this.

        1. TestLocationNPEx.java
          0.6 kB
          Krushnareddy Ganapureddy

            darcy Joe Darcy
            kganapureddy Krushnareddy Ganapureddy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: