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

Avoid module dependency from jdk.dynalink to jdk.internal.module of java.base module

XMLWordPrintable

    • b141
    • generic
    • generic

      jdk.internal.module.Modules class is used by jdk.dynalink module. It'd better to avoid this dependency.

      Modules.addReads is used add read edge from a caller module to a user module.

      When handling CallerSensitive methods, jdk.dynalink tries to automatically add read edges as needed and try lookup unreflect again. But, this should actually be the responsibility of the user of jdk.dynalink module. [for eg. nashorn].

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

              Created:
              Updated:
              Resolved: