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 60509 - FakeSOMETHINGPeer classes cannot be compiled with Mustang
Summary: FakeSOMETHINGPeer classes cannot be compiled with Mustang
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2005-06-25 04:27 UTC by Antonin Nebuzelsky
Modified: 2011-06-09 09:51 UTC (History)
1 user (show)

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 Antonin Nebuzelsky 2005-06-25 04:27:34 UTC
When compiling the IDE with Mustang b40 I came across several FakeSOMETHINGPeer
classes in org.netbeans.modules.form.fakepeer package that must implement new
abstract method

public boolean requestFocus(java.awt.Component c1, boolean b1, boolean b2, long
l1, sun.awt.CausedFocusEvent.Cause c2)

to be able to compile with Mustang. The classes are:

FakeButtonPeer
FakeCanvasPeer
FakeCheckboxPeer
FakeChoicePeer
FakeLabelPeer
FakeListPeer
FakePanelPeer
FakeScrollPanePeer
FakeScrollbarPeer
FakeTextComponentPeer
FakeTextAreaPeer
FakeTextFieldPeer
Comment 1 Jesse Glick 2005-06-25 23:17:21 UTC
Rather than adding more implementing methods, use Proxy and be done with it forever.
Comment 2 Tomas Stupka 2005-09-12 17:46:15 UTC
Fixed in trunk.

Added files:
org/netbeans/modules/form/fakepeer/FakePeerInvocationHandler.java

Modified files:
org/netbeans/modules/form/fakepeer/FakeTextComponentPeer.java
org/netbeans/modules/form/fakepeer/FakeTextAreaPeer.java
org/netbeans/modules/form/fakepeer/FakeComponentPeer.java
org/netbeans/modules/form/fakepeer/FakeChoicePeer.java
org/netbeans/modules/form/fakepeer/FakeCanvasPeer.java
org/netbeans/modules/form/fakepeer/FakeListPeer.java
org/netbeans/modules/form/fakepeer/FakeCheckboxPeer.java
org/netbeans/modules/form/fakepeer/FakePeerSupport.java
org/netbeans/modules/form/fakepeer/FakeTextFieldPeer.java
org/netbeans/modules/form/fakepeer/FakeScrollbarPeer.java
org/netbeans/modules/form/fakepeer/FakeScrollPanePeer.java
org/netbeans/modules/form/fakepeer/FakeContainerPeer.java
org/netbeans/modules/form/fakepeer/FakePanelPeer.java
org/netbeans/modules/form/fakepeer/FakeButtonPeer.java
org/netbeans/modules/form/fakepeer/FakeLabelPeer.java

the FakeSOMETHINGPeer classes don't implement the SOMETHINGPeer interfaces
anymore and the instances which implement SOMETHINGPeer are created at runtime
in FakePeerSupport via Proxy.
Comment 3 Marian Mirilovic 2011-06-09 09:51:31 UTC
v/c