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 161177

Summary: Classpath providers shall be registered per "type"
Product: java Reporter: Jaroslav Tulach <jtulach>
Component: ClasspathAssignee: Vitezslav Stejskal <vstejskal>
Status: RESOLVED WONTFIX    
Severity: blocker CC: issues
Priority: P3 Keywords: API, PERFORMANCE
Version: 6.x   
Hardware: Other   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jaroslav Tulach 2009-03-25 17:44:05 UTC
A lot of classes is being loaded into the VM just to say "no". From the list of funny stacktraces (captured when 
starting with one open j2se project and one open java file in editor):

          org.netbeans.api.ruby.platform.RubyPlatformManager.getPlatforms(RubyPlatformManager.java:142)
          org.netbeans.modules.ruby.rubyproject.BootClassPathProvider.findClassPath(BootClassPathProvider.java:76)
          org.netbeans.api.java.classpath.ClassPath.getClassPath(ClassPath.java:545)
          org.netbeans.modules.java.source.tasklist.TaskCache.isInError(TaskCache.java:350)

Here is the list of classes loaded with allInstances in ClassPath.getClassPath: 

org.netbeans.modules.csl.core.ProjectClassPathProvider
org.netbeans.modules.javascript.editing.JsClassPathProvider
org.netbeans.modules.php.project.classpath.IncludePathClassPathProvider
org.netbeans.modules.php.project.ui.actions.support.CommandUtils
org.netbeans.modules.ruby.modules.project.rake.FileChangeSupport
Comment 1 Jaroslav Tulach 2009-03-25 17:44:52 UTC
Btw. the list is just sample from individual modules. The transitive closure is much wider.
Comment 2 David Strupl 2009-03-31 16:06:08 UTC
Resolving all issues with milestone "future" as LATER. If you feel strongly that
it should be implemented please reopen and set the target milestone to "next".
Comment 3 Quality Engineering 2009-11-02 11:17:56 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX