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 44288

Summary: Don't show Scan dialog if netbeans.close=true
Product: editor Reporter: Marian Mirilovic <mmirilovic>
Component: RefactoringAssignee: issues@java <issues>
Status: CLOSED FIXED    
Severity: blocker CC: issues
Priority: P1 Keywords: PERFORMANCE, T9Y
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Exceptions from console

Description Marian Mirilovic 2004-06-03 14:59:21 UTC
[nb_dev](200406021800), [jdk1.5.0](b51)

Performance team has tests for measuring startup
time of IDE with ten opened files .... test case  is :
- run IDE with clean userdir
- open jEdit project
- open 10 files
- restart IDE (with -J-Dnetbeans.close)
-> now we grab last paint event as the stop for
timer, and report measured time

To test it run measure startup time tests from
performance module :
ant
-Dnetbeans.dest.dir=/path_to_local_copy_of_netbeans
_dir -Dxtest.testtype=unit
-Dxtest.attribs=measure_startup_opened_files

PROBLEM :
- after restart IDE , Scan dialog is shown and
it's never finished!, because IDE is closed and
exception are loogged (see attached stack traces)
- it means last paint event comes from dialog !

COMMAND LINE :
bin/netbeans -userdir Userdir_tiger_close -jdkhome
j2sdk1_5_0 -J-Dnetbeans.close=true
-J-Dnetbeans.full.hack=true
-J-Dorg.netbeans.log.startup.logfile=/tmp/log.txt
-J-Xbootclasspath/p:hack_jdk150.zip

hack_jdk can be found in close source cvs
qa/performance module..
Comment 1 Marian Mirilovic 2004-06-03 15:00:15 UTC
Created attachment 15461 [details]
Exceptions from console
Comment 2 Martin Matula 2004-06-03 16:06:57 UTC
Fixed.

Checking in src/org/netbeans/modules/javacore/JavaCoreModule.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/JavaCoreModule.java,v
 <--  JavaCoreModule.java
new revision: 1.3; previous revision: 1.2
done
Comment 3 Marian Mirilovic 2004-06-09 10:15:35 UTC
verified in [nb_dev](200406082045)