Community
Participate
Working Groups
I20080330-1350 Due to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6419926, JavaFileObject#toUri() happens to return non-absolute URIs on some systems, including Linux. First approach has been to avoid running those of our tests that were impacted by this behavior. After discussing with Jérôme, we decided that we'd better protect ourselves against the bug and run the test on all platforms.
Created attachment 95884 [details] Suggested fix + test enablement
Released for 3.4 M7. This is the suggested patch, less a few comment lines in the tests. Kent, pls yell if needed.
I think if we want toUri() to always return an absolute URI with the file protocol, we should fix the implementation, not the callers.
The problem is that the defective implementation is not in our hands. Or do I miss something?
You are right. The test should be renamed. testCompilerOneClassWithEclipseCompiler4 is not a good name since we are using the file manager from the system compiler to feed our compiler. So the patch seems to be fine.
Verified for 3.4M7 using I20080427-2000