New constructor in sun.tools.java.ClassPath builds a path using File.separator instead of File.pathSeparatorChar (original) (raw)
Alan Bateman Alan.Bateman at oracle.com
Mon Apr 9 09:03:56 UTC 2012
- Previous message: New constructor in sun.tools.java.ClassPath builds a path using File.separator instead of File.pathSeparatorChar
- Next message: New constructor in sun.tools.java.ClassPath builds a path using File.separator instead of File.pathSeparatorChar
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 09/04/2012 08:01, Deven You wrote:
Hi core-libs-devs,
There are 2 sun bugs related to this issue: http://bugs.sun.com/viewbug.do;jsessionid=663548580556affffffffe43f50bf92c75b5?bugid=6695325^and http://bugs.sun.com/viewbug.do;jsessionid=663548580556affffffffe43f50bf92c75b5?bugid=6610897^
The basic problem is that the new constructor public ClassPath(String[] patharray) which calls new private method private void init(String}[] patharray) The init method builds a pathstr using File.separator instead of File.pathSeparatorChar. Since it is really a bug and the fix is simple, I have made a patch[1] for this issue and a test case[2] to recreated this issue. The patch just uses File.pathSeparatorChar to replace File.separator. Please anyone can review it? No issue with the proposed change but I'm curious how you ran into this. Is it with rmic or something else?
-Alan
- Previous message: New constructor in sun.tools.java.ClassPath builds a path using File.separator instead of File.pathSeparatorChar
- Next message: New constructor in sun.tools.java.ClassPath builds a path using File.separator instead of File.pathSeparatorChar
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]