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

findOwnMH in nashorn "objects" package should be cleaned up

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • None
    • core-libs
    • None
    • b82
    • generic
    • generic

      Classes in nashorn "objects" package are loaded by a different loader. Wherever we use MethodHandleFactory ("MH") in findOwnMH, we can not use create method handle of private methods (because of different loader). It is better to use MethodHandles.publicLookup() to be sure for public methods - so that we don't pass these under 'no security' mode but fail under security manager. Wherever we create method handles on private methods, we could use MethodHandles API directly.

            sundar Sundararajan Athijegannathan
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: