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 36446 - IllegalStateException "Already connected" when getting property renderer
Summary: IllegalStateException "Already connected" when getting property renderer
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 3.x
Hardware: PC All
: P2 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: T9Y
: 36486 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-10-06 12:42 UTC by Jiri Skrivanek
Modified: 2008-12-22 19:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (5.29 KB, text/plain)
2003-10-06 12:43 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2003-10-06 12:43:00 UTC
For testing purposes I call 

tableCellRenderer.getTableCellRendererComponent()

But it throws ISE (see attachment) and property
sheet is unusable because it shows the message of
the exception instead of value.
Comment 1 Jiri Skrivanek 2003-10-06 12:43:29 UTC
Created attachment 11800 [details]
Stack trace
Comment 2 _ tboudreau 2003-10-09 10:36:44 UTC
Argh, I added this detection code to make it impossible for anybody
who modifies the propertysheet package to create a memory leak, by
making editors/renderers scream and yell if they find they were
abandoned while holding a reference to a property or its value.

Looks like I probably will have to delete this code - it would of
course cause problems for tests that just want to look at the renderer
component (the references will actually get cleared at the end of
paint()).

Comment 3 _ tboudreau 2003-10-14 10:31:55 UTC
*** Issue 36486 has been marked as a duplicate of this issue. ***
Comment 4 _ tboudreau 2003-10-22 10:17:21 UTC
Checking in AutoGridLayout.java;
/cvs/openide/src/org/openide/explorer/propertysheet/AutoGridLayout.java,v
 <--
AutoGridLayout.java
new revision: 1.3; previous revision: 1.2
done
Checking in CheckboxInplaceEditor.java;
/cvs/openide/src/org/openide/explorer/propertysheet/CheckboxInplaceEditor.java,v
  <--  CheckboxInplaceEditor.java
new revision: 1.5; previous revision: 1.4
done
Checking in ComboInplaceEditor.java;
/cvs/openide/src/org/openide/explorer/propertysheet/ComboInplaceEditor.java,v
 <
--  ComboInplaceEditor.java
new revision: 1.9; previous revision: 1.8
done
Checking in StringInplaceEditor.java;
/cvs/openide/src/org/openide/explorer/propertysheet/StringInplaceEditor.java,v
<--  StringInplaceEditor.java
new revision: 1.7; previous revision: 1.6
done
Processing log script arguments...
Mailing the commit message to cvs@openide.netbeans.org (from
tboudreau@netbeans.
org)
Comment 5 Jiri Skrivanek 2003-10-23 18:09:50 UTC
Verified in build 200310230100.