mbien commented on code in PR #5091:
URL: https://github.com/apache/netbeans/pull/5091#discussion_r1049102697


##########
java/maven/src/org/netbeans/modules/maven/api/output/OutputUtils.java:
##########
@@ -241,8 +258,12 @@ public ProjectStacktraceOutputListener(Project project) {
         protected ClassPath getClassPath() {
             Project prj = ref.get();
             if(prj != null) {
-                ClassPath[] cp = 
prj.getLookup().lookup(ProjectSourcesClassPathProvider.class).getProjectClassPaths(ClassPath.EXECUTE);
-                return ClassPathSupport.createProxyClassPath(cp);
+                ProjectSourcesClassPathProvider prov = 
prj.getLookup().lookup(ProjectSourcesClassPathProvider.class);
+                List<ClassPath> cp = Stream.concat(
+                        Stream.of(prov.getProjectClassPaths(ClassPath.BOOT)),
+                        
Stream.of(prov.getProjectClassPaths(ClassPath.EXECUTE)))
+                    .collect(Collectors.toList());

Review Comment:
   the result has also just a handful of classpath objects.



-- 
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: notifications-unsubscr...@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to