Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6508981
Votes 0
Synopsis cleanup file separator handling in JavacFileManager
Category java:compiler
Reported Against
Release Fixed 7(b36)
State 10-Fix Delivered, request for enhancement
Priority: 3-Medium
Related Bugs 6570242 , 6714364 , 6714365 , 6878069
Submit Date 03-JAN-2007
Description
Internally, JavacFileManager uses Strings to represent paths, and is inconsistent whether such paths should be system-independent (e.g. always use /) or system-dependent (e.g. use File.separatorChar).

We should replace the use of String with some other class that enforces a consistent invariant.

We should also provide better unit tests of JavacFileManager.
Posted Date : 2007-01-03 00:05:22.0
Work Around
N/A
Evaluation
Yes.

Add RelativePath/RelativeFile/RelativeDir to encapsulate system independent relative paths, with methods to translate to the file system as needed.
Posted Date : 2007-01-03 00:06:59.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang