steelswing commented on issue #3688: URL: https://github.com/apache/netbeans/issues/3688#issuecomment-3505858164
> I found some bug which is at least part of the problem. With [b2fa5764338c5450bcd7f24005f5352d601c160d](https://github.com/asbachb/incubator-netbeans/commit/b2fa5764338c5450bcd7f24005f5352d601c160d) the reload class is triggered [SourcePathProviderImpl](https://github.com/apache/netbeans/blob/master/java/debugger.jpda.projects/src/org/netbeans/modules/debugger/jpda/projects/SourcePathProviderImpl.java#L1474) but there is still a problem why it's not applied. Java 8 projects not work because contains ';' separator in classpath Original: ```java tring listeningCP = (String) properties.get("listeningCP"); if (listeningCP != null) { boolean isSourcepath = false; if ("sourcepath".equalsIgnoreCase(listeningCP)) { listeningCP = ((ClassPath) properties.get ("sourcepath")).toString(ClassPath.PathConversionMode.SKIP); isSourcepath = true; } srcRootsToListenForArtifactsUpdates = new HashSet<FileObject>(); for (String cp : listeningCP.split(File.pathSeparator)) { logger.log(Level.FINE, "Listening cp = ''{0}''", cp); ``` My fix: ```java String sourcepathSeperator = ","; String listeningCP = (String) properties.get("listeningCP"); if (listeningCP != null) { boolean isSourcepath = false; if ("sourcepath".equalsIgnoreCase(listeningCP)) { sourcepathSeperator = File.pathSeparator; listeningCP = ((ClassPath) properties.get("sourcepath")).toString(ClassPath.PathConversionMode.SKIP); isSourcepath = true; } srcRootsToListenForArtifactsUpdates = new HashSet<FileObject>(); // fix List<String> paths = new ArrayList<>(); final String[] split = listeningCP.split(sourcepathSeperator); paths.addAll(Arrays.asList(split)); for (String string : listeningCP.split(";")) { list.add(string.replace(",", "")); } for (String cp : paths) { logger.log(Level.FINE, "Listening cp = ''{0}''", cp); ``` -- 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. To unsubscribe, e-mail: [email protected] 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
