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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 9, 10
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: