After the problems for GeoTools caused by the recent osx java update I
filed a bug report with Apple. According to them, it's doing what it's
supposed to.

It seems that 'broken' is in the eye of the beholder...

---------- Forwarded message ----------
From:  <devb...@apple.com>
Date: 2009/8/4
Subject: Bug ID 7039665: File.toURI().toURL() workaround broken after
Java Update 4
To: michael.bedw...@gmail.com


Hi Michael,
This is a follow-up to Bug ID# 7039665.
Engineering has determined that this issue behaves as intended based
on the following information:
This issue reproduces in the exact same way on Java 1.6.0_13 on Linux,
so your expections of File.toURI().toURL() do not match the standard
UNIX platform behavior.
If you have any questions or concerns regarding this issue, please
update your report directly (http://bugreport.apple.com).
Thank you for taking the time to notify us of this issue.
Best Regards,
Akil King
Apple Developer Connection
Worldwide Developer Relations
**************************************************************************
THE INFORMATION CONTAINED IN THIS MESSAGE IS UNDER NON-DISCLOSURE
**************************************************************************
-------------------------------------------------------
Bug ID #: 7039665
Bug Title: File.toURI().toURL() workaround broken after Java Update 4
-------------------------------------------------------
<GMT08-Jul-2009 03:31:57GMT>
Summary
After installing Java Update 4 on OSX 10.5.7 the File.toURI().toURL()
workaround for correct treatment of special characters in file paths
no longer works correctly.
Steps to reproduce
import java.io.File;
import java.net.URL;
public class URIURLproblem {
    public static void main(String[] args) throws Exception {
        File file = new File("foo+++foo.bar");
        URL url = file.toURI().toURL();
        System.out.println(url);
    }
}
Expected results: correct output is "file:/path/foo%2B%2B%2Bfoo.bar"
Actual results: "file:/path/foo+++foo.bar"
Regression: problem appeared after installing Java Update 4
Notes:

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to