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 - Classpath providers shall be registered per "type"
Summary: Classpath providers shall be registered per "type"
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Classpath (show other bugs)
Version: 6.x
Hardware: Other All
: P3 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords: API, PERFORMANCE
Depends on:
Blocks:
 
Reported: 2009-03-25 17:44 UTC by Jaroslav Tulach
Modified: 2009-11-02 11:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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