jtulach commented on a change in pull request #2761:
URL: https://github.com/apache/netbeans/pull/2761#discussion_r577377164
##########
File path: platform/o.n.bootstrap/src/org/netbeans/StandardModuleData.java
##########
@@ -78,7 +80,12 @@ public StandardModuleData(Manifest mf, StandardModule
forModule) throws InvalidE
if (classPath != null) {
StringTokenizer tok = new StringTokenizer(classPath);
while (tok.hasMoreTokens()) {
- String ext = tok.nextToken().replace("%20", " "); // NOI18N
+ String ext;
+ try {
+ ext = URLDecoder.decode(tok.nextToken(), "UTF-8");
+ } catch (UnsupportedEncodingException ex) {
+ throw new IllegalStateException(ex);
+ }
File extfile;
if (ext.equals("${java.home}/lib/ext/jfxrt.jar")) { // NOI18N
Review comment:
Alas, I cannot. That method has been added in JDK10! While it seems
available in the editor, when compiling with the new `--release 8` the
compilation fails. I tried and had to revert back to specifying the encoding as
string and catching the exception.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists