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

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

        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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: