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 165058 - RubyAttachType and URLAttachType classes are loaded on 1st and 2nd NetBeans startup
Summary: RubyAttachType and URLAttachType classes are loaded on 1st and 2nd NetBeans s...
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Martin Entlicher
URL: http://wiki.netbeans.org/FitnessViaWh...
Keywords: PERFORMANCE, REGRESSION, TEST
Depends on:
Blocks:
 
Reported: 2009-05-13 12:49 UTC by Oleg Khokhlov
Modified: 2010-04-29 09:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stacktrace (16.31 KB, text/plain)
2009-05-13 12:51 UTC, Oleg Khokhlov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Khokhlov 2009-05-13 12:49:14 UTC
Performance test reports there is regression in 1st and 2nd NetBeans startup which is caused by the loading of following
classes:

>     org.netbeans.modules.ruby.debugger.ui.RubyAttachType
> > org.netbeans.modules.web.client.javascript.debugger.attach.URLAttachType

comment from jtulach:
"Bug for debugger to prevent loading these types just to find out whether 
connect action shall be enabled. Imho it can be turned into alwaysEnabledAction.

 org.netbeans.spi.debugger.ContextAwareService
 org.netbeans.spi.debugger.ContextAwareSupport
 org.netbeans.spi.debugger.ui.AttachType$ContextAware
Probably related to the previous problem."
Comment 1 Oleg Khokhlov 2009-05-13 12:51:08 UTC
Created attachment 82044 [details]
stacktrace
Comment 2 Martin Entlicher 2009-05-13 18:17:07 UTC
We do not load the service classes: changeset:   131287:26d8cdc783bc
http://hg.netbeans.org/main/rev/26d8cdc783bc

ContextAwareService and AttachType$ContextAware are loaded from layer filesystem, ContextAwareSupport is just a support
class used in instance creation. Their loading is O.K. IMHO.
Comment 3 Jaroslav Tulach 2009-05-14 09:08:58 UTC
Re: "Their loading is O.K. IMHO.", I also think it is unpreventable.

Please also add the *AttachType classes into ide.kit/test/qa-functional/data/blacklist.txt and run 
ide.kit/test/qa-functional/src/org/netbeans/test/editor/GeneralSanityTest.java
to really check they are not loaded now and will not be loaded in future.
Comment 4 Quality Engineering 2010-04-29 09:51:03 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.