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

Deprecated Class::newInstance does not emit illegal reflective access warning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 9, 10
    • core-libs
    • None

      If public classes in non-exported packages are instantiated with Class::newInstance then an illegal reflective access warning is not printed.

      This is an oversight in the original implementation, no issue with Constructor newInstance.

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: