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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 8
    • Affects Version/s: 6u2, 6u5
    • Component/s: 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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: