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 147224 - 'Exit' doesn't work in license dialog
Summary: 'Exit' doesn't work in license dialog
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: REGRESSION
Depends on:
Blocks: 145936
  Show dependency tree
 
Reported: 2008-09-15 07:07 UTC by Oleg Khokhlov
Modified: 2008-12-22 14:55 UTC (History)
0 users

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 Oleg Khokhlov 2008-09-15 07:07:12 UTC
- Start unzipped netbeans without userdir;
- license dialog appears with 'I Agree' and 'Exit' buttons;
- Press 'Exit';
Instead of exiting IDE starts.

Build 200809150201
Windows XP SP2
JDK 1.6.0_10
Comment 1 Lukas Hasik 2008-09-15 10:20:55 UTC
cause by fix of issue 145936

Exception in console:
java.io.IOException: Could not delete: F:\netbeans\userdir\nb65-0912-2\var\log\messages.log
        at org.netbeans.core.startup.Main.deleteRec(Main.java:349)
        at org.netbeans.core.startup.Main.deleteRec(Main.java:345)
        at org.netbeans.core.startup.Main.deleteRec(Main.java:345)
        at org.netbeans.core.startup.Main.deleteRec(Main.java:345)
[catch] at org.netbeans.core.startup.Main.start(Main.java:282)
        at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:110)
        at java.lang.Thread.run(Thread.java:619)

-----
when the exception appears then the exit is skiped :))

            if (!handleLicenseCheck()) {
  ->              deleteRec(new File(CLIOptions.getUserDir())); // #145936
                TopLogging.exit(0);
            }


reassigning to Jesse who caused it
Comment 2 Jesse Glick 2008-09-15 12:49:03 UTC
Windows problem - does not let you delete the log file since it is in use. For Windows users, sorry - can just not
delete this file (and its parent dirs) but delete the rest.

core-main #318c70b7108a
Comment 3 Quality Engineering 2008-09-17 06:01:54 UTC
Integrated into 'main-golden', will be available in build *200809170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/318c70b7108a
User: Jesse Glick <jglick@netbeans.org>
Log: #147224: decling license dialog on Windows throws exception & aborts exit.
Comment 4 Oleg Khokhlov 2008-09-18 14:06:15 UTC
verified in 200809170201