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

New constructor in sun.tools.java.ClassPath builds a path using File.separator instead of File.pathS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P5
    • 8
    • 6u2, 6u5
    • core-libs
    • None
    • b36
    • other, sparc
    • generic, solaris_2.5.1
    • Verified

    Backports

      Description

        New constructor in sun.tools.java.ClassPath builds a path using File.separator instead of File.pathSeparator.Char

        When Sun added support for fix 6473331, which adds support for Class-Path manifest entries in JAR files to rmic, they added a new constructor for sun.tools.java.ClassPath:

        public ClassPath(String[] patharray)

        which calls a new private method:

        private void init(String}[] patharray)

        The init method builds the String pathstr. The problem is that it separates the path entries by using File.separator instead of File.pathSeparatorChar. Any application that is using the pathstr as a search path will not be able to properly parse the entries. Such an application is the IBM ORB used by Websphere.
        Bug Workaround

        Attachments

          Issue Links

            Activity

              People

                alanb Alan Bateman
                elarsen Erik Larsen (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: