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

Eliminate dependency on java.naming/com.sun.jndi.toolkit.url

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: other-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b150
    • Verification:
      Verified

      Description

      The java.corba module includes the JNDI CosNaming Service Provider and currently makes use of types in java.naming/com.sun.jndi.toolkit.url. We need to eliminate this dependency so that a java.corba module outside of the JDK does not rely on JDK internal APIs.

      To demonstrate the issue then simply remove the qualified export from java.naming and the build will fail. The simplest thing might be for java.corba to take a copy of com.sun.jndi.toolkit.url.UrlUtil and com.sun.jndi.toolkit.url.GenericURLContext and put them in its own package.

      While we are at it then we should move the code in jdk/src/java.corba to the corba repo so that the code is not split between two repos.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                prappo Pavel Rappo
                Reporter:
                alanb Alan Bateman
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: