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 30606 - NPE from BasicInternalFrameTitlePane.addSystemMenuItems under JDK 1.3
Summary: NPE from BasicInternalFrameTitlePane.addSystemMenuItems under JDK 1.3
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2003-02-03 15:23 UTC by Jesse Glick
Modified: 2008-12-23 09:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (5.20 KB, text/plain)
2003-02-03 15:24 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2003-02-03 15:23:38 UTC
[dev feb 03] Reproducible for me easily. Just
start IDE w/ fresh userdir under JDK 1.3 and this
NPE is thrown and main window does not show. You
failed to set a value for windowMenu or to
override addSystemMenuItems etc. in
NbInternalFrameUI.NbTitlePane.
Comment 1 Jesse Glick 2003-02-03 15:24:37 UTC
Created attachment 8767 [details]
Stack trace
Comment 2 Jesse Glick 2003-02-03 15:25:21 UTC
Note that this exception has been thrown repeatedly during the
projects continuous build, causing it to fail.
Comment 3 _ tboudreau 2003-02-03 18:03:46 UTC
Fixed in trunk.
Comment 4 Jesse Glick 2003-02-03 18:08:10 UTC
Please don't forget to:

- set target milestone when fixing

- include info on affected files (at least NbInternalFrameUI.java 1.5)

- give a better change log comment than:

    Fix to issue 30606

which will be useless to anyone reading the log for this file later
unless they go running to IZ; suggest more like

    #30606: NPE during startup under JDK 1.3 from addSystemMenuItems
Comment 5 dnoyeB 2003-02-04 04:00:57 UTC
i get same error in dev build 200302030100
jdk 1.3.1_06

But I do not get it when I start with WindowsLookAndFeel.  If I try
starting without WLF I get the NPE.
Comment 6 Jesse Glick 2003-02-04 04:20:07 UTC
Please try in the next published dev build, which should have the fix.
Comment 7 Vitezslav Stejskal 2003-02-04 12:51:29 UTC
It still fails (at least in projects build and on my machine). I have
latest sources of core and openide from main trunk.
Comment 8 _ tboudreau 2003-02-04 14:26:51 UTC
I checked in a fix for this last night - overriding addSystemMenuItems
in NbTitlePane, so an NPE can't possibly be being thrown
there.  Tested it on JDK 1.3 & 1.4 and everything was fine.  Are
you getting a different exception?  Have you done a CVS update 
this morning?  The class in question is
org.netbeans.core.windows.frames.NbInternalFrameUI$NbTitlePane

(I should have never done the favor to QA and switched this back to
subclassing BasicInternalFrameTitlePane - none of this would be 
happening now!)
Comment 9 _ tboudreau 2003-02-04 15:04:40 UTC
My apologies, the method signature on the fix from last night was
not accurate.  Fixed now.
Comment 10 dnoyeB 2003-02-04 16:00:05 UTC
Dont some languages have a flag you can add that says this is an
override, and if its determined to not be one at compile time, a
compiler error is thrown?  might be a nice optional feature, but I
know it wouldnt solve every problem.
Comment 11 Marian Mirilovic 2003-02-27 18:57:25 UTC
verified in [nb_dev](20030227)