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 252741

Summary: NoSuchMethodError: java.awt.Component.getPeer()Ljava/awt/peer/ComponentPeer;
Product: guibuilder Reporter: Jiri Kovalsky <jkovalsky>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED FIXED    
Severity: normal Keywords: JDK_9
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 217682
Attachments: stacktrace

Description Jiri Kovalsky 2015-06-02 09:44:20 UTC
Build: NetBeans IDE Dev (Build 201506020405)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.9.0-ea-b66, Java(TM) SE Runtime Environment, 1.9.0-ea-b66
OS: Linux

User Comments:
jkovalsky: Removed unused import from About.java file in Maven based AnagramGame application, scrolled down which caused unexpected removal of grey background of guarded code in initComponents() method, then closed the file and reopen again by double clicking it which tried to open form editor but only I see is grey panel with "Loading ..." message.




Stacktrace: 
java.lang.NoSuchMethodError: java.awt.Component.getPeer()Ljava/awt/peer/ComponentPeer;
   at org.netbeans.modules.form.fakepeer.FakePeerContainer.paintFakePeersRecursively(FakePeerContainer.java:104)
   at org.netbeans.modules.form.fakepeer.FakePeerContainer.paint(FakePeerContainer.java:90)
   at javax.swing.JComponent.paintChildren(JComponent.java:900)
   at javax.swing.JComponent.paint(JComponent.java:1062)
   at org.netbeans.modules.form.ComponentLayer$DesignerPanel.paint(ComponentLayer.java:190)
   at javax.swing.JComponent.paintChildren(JComponent.java:886)
Comment 1 Jiri Kovalsky 2015-06-02 09:44:21 UTC
Created attachment 154007 [details]
stacktrace
Comment 2 Jiri Kovalsky 2015-06-02 10:31:29 UTC
Just for the record, when the same build is launched using JDK 1.8.0_45, this exception is not thrown.
Comment 3 Jan Stola 2015-06-02 11:41:30 UTC
Fixed already by https://hg.netbeans.org/web-main/rev/54be89c42ead
Comment 4 Tomas Zezula 2015-06-02 17:01:43 UTC
Merged into JDK9 branch.