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

getBlackListMap() - unable to retrieve map of all entries

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 8
    • deploy
    • None

      Issue:
      Field f = BlackList.class.getDeclaredField("entries"); in the getBlackListMap() in SetupHelpers.java is supposed to retrieve an object with a map of all the entries of the blacklist.
      Since there is no attribute defined in BlackList.java under entries, it is unable to retrieve any information and returns null which causes a NoSuchFieldException to be thrown.

      Suggested fix:
      The entries list is an enumeration and is not a field that can be retrieved.
      Either a new field can be created in the Blacklist.java file or entries can be used as enumeration and the method of parsing should be changed in the SetupHelpers.java class to accept enumeration.

            vrao Vivek Rao (Inactive)
            vrao Vivek Rao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: