JDK-6958902 : Regression: NPE - Could not launch SwingSet2 with JDk7 - b97 - PIT build
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P1
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2010-06-07
  • Updated: 2011-01-19
  • Resolved: 2010-06-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7Resolved
Related Reports
Duplicate :  
Description
To Reproduce:

Run SwingSet2, throws the NPE, stack trace is attached

D:\test-JDK\7-b97-PIT\demo\jfc\SwingSet2>..\..\..\bin\java -jar SwingSet2.jar
Exception in thread "main" java.lang.NullPointerException
        at javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.propertyChange(Basic
TabbedPaneUI.java:3530)
        at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)

        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSup
port.java:327)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSup
port.java:263)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSup
port.java:283)
        at java.awt.Component.firePropertyChange(Component.java:8347)
        at javax.swing.JComponent.firePropertyChange(JComponent.java:4510)
        at javax.swing.JTabbedPane.setTitleAt(JTabbedPane.java:1321)
        at SwingSet2.setDemo(SwingSet2.java:720)
        at SwingSet2.preloadFirstDemo(SwingSet2.java:672)
        at SwingSet2.<init>(SwingSet2.java:208)
        at SwingSet2.main(SwingSet2.java:229)

Comments
EVALUATION This is a known problem, see #6888130 the fix will be forward ported to JDK 7
08-06-2010