JDK-6416031 : Wrong usage of URI.getPath()
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2006-04-20
  • Updated: 2011-03-01
  • Resolved: 2006-04-26
Related Reports
Duplicate :  
Description
The Old199.getPath () uses jfo.toUri().getPath(), which returns null in the case when URI has a jar protocol. It can be workarounded by jfo.toUri().toURL().getPath(), but it is better not to use this method at all when the URI protocol isn't "file".

Comments
EVALUATION You shouldn't use Old199. In b81 we have almost removed it except for some references in JavacFiler (JSR 269). This will be addressed in 6410636.
21-04-2006