Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 188381 Details for
Bug 282379
[plan] spaces in file names causes AspectJ weaver to fail
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch
AspectJ_spaces.patch (text/plain), 1.40 KB, created by
Kris De Volder
on 2011-02-04 21:27:34 EST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Kris De Volder
Created:
2011-02-04 21:27:34 EST
Size:
1.40 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P util >Index: src/org/aspectj/util/FileUtil.java >=================================================================== >RCS file: /cvsroot/tools/org.aspectj/modules/util/src/org/aspectj/util/FileUtil.java,v >retrieving revision 1.31 >diff -u -r1.31 FileUtil.java >--- src/org/aspectj/util/FileUtil.java 15 Jul 2010 15:47:56 -0000 1.31 >+++ src/org/aspectj/util/FileUtil.java 5 Feb 2011 02:09:39 -0000 >@@ -34,6 +34,7 @@ > import java.io.StringReader; > import java.io.Writer; > import java.net.MalformedURLException; >+import java.net.URISyntaxException; > import java.net.URL; > import java.util.ArrayList; > import java.util.Arrays; >@@ -1387,12 +1388,24 @@ > List<String> ret = new LinkedList<String>(); > if (urls != null) { > for (int i = 0; i < urls.length; i++) { >- ret.add(urls[i].getPath()); >+ ret.add(toPathString(urls[i])); > } > } > return ret; > } > >+ private static String toPathString(URL url) { >+ try { >+ return url.toURI().getPath(); >+ } catch (URISyntaxException e) { >+ System.err.println("Warning!! Malformed URL may cause problems: "+url); // TODO: Better way to report this? >+ //In this case it was likely not using >+ //properly escaped characters so we just use the 'bad' method that doesn't decode >+ //special chars. >+ return url.getPath(); >+ } >+ } >+ > /** > * A pipe when run reads from an input stream to an output stream, optionally sleeping between reads. > *
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
aclement
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 282379
: 188381