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

Proxy::newProxyInstance spec should specify the behavior if a given proxy interface is hidden

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 16
    • 15
    • core-libs
    • None

      `Proxy::newProxyInstance` throws IAE if a given proxy interface is hidden since a hidden interface can't be named in another class. The current implementation does throw IAE:

      java.lang.IllegalArgumentException: HiddenInterface/0x0000000800c8f840 referenced from a method is not visible from class loader

      The spec should be updated to specify that IAE will be thrown if a proxy interface is hidden. In addition, the exception message can be improved and indicates a proxy interface can't be hidden.

            mchung Mandy Chung (Inactive)
            mchung Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: