This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 20830 - Better calculation of jar: URLs
Summary: Better calculation of jar: URLs
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords:
Depends on:
Blocks: 20997 27330
  Show dependency tree
 
Reported: 2002-02-25 12:31 UTC by Jesse Glick
Modified: 2008-12-23 08:37 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
Suggested patch (1.09 KB, patch)
2002-02-25 12:32 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2002-02-25 12:31:40 UTC
Check the patch. I think it should be an improvement. Currently on Windows, the
JarClassLoader makes URLs like:

jar:file:c:\foo\bar.jar!/foo/bar.gif

which is wrong; should be:

jar:file:c:/foo/bar.jar!/foo/bar.gif
Comment 1 Jesse Glick 2002-02-25 12:32:19 UTC
Created attachment 4810 [details]
Suggested patch
Comment 2 Jesse Glick 2002-03-04 09:48:54 UTC
Note that on JDK 1.4 on Windows, new File(new
URI(currentURL.toExternalForm()) throws an exception because of the
backslash. Disabling part of #20997 fix until this patch is applied.
Comment 3 Petr Nejedly 2002-03-04 12:39:29 UTC
Seems reasonable, applying
Comment 4 Jan Zajicek 2002-03-05 10:39:27 UTC
verified