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 29595 - BeanInfo Editor does not always generate the same BeanInfo
Summary: BeanInfo Editor does not always generate the same BeanInfo
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Beans (show other bugs)
Version: -S1S-
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords: T9Y
: 30368 (view as bug list)
Depends on:
Blocks: 29596
  Show dependency tree
 
Reported: 2002-12-17 10:33 UTC by Jan Becicka
Modified: 2003-02-14 12:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
diff beaninfo_1 beaninfo_2 (472 bytes, text/plain)
2003-01-22 14:06 UTC, Jan Becicka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2002-12-17 10:33:38 UTC
[200212110100] [JDK1.4.1]
Although generated BeanInfo is correct, it is not
always the same.

E.g. let's have some class
Sometimes is generated this:
private static final int EVENT_itemListener = 1;
private static final int EVENT_actionListener = 2;
private static final int
EVENT_propertyChangeListener = 3;
private static final int
EVENT_vetoableChangeListener = 4;

but sometimes are these fields generated in
different order:
private static final int
EVENT_vetoableChangeListener = 1;
private static final int
EVENT_propertyChangeListener = 2;
private static final int EVENT_itemListener = 3;
private static final int EVENT_actionListener = 4;

The same problem is with eventSets.
Comment 1 Svata Dedic 2003-01-07 16:33:10 UTC
Fixed:

/cvs/beans/src/org/netbeans/modules/beans/beaninfo/BiAnalyser.java,v 
<--  BiAnalyser.java
new revision: 1.36; previous revision: 1.35
/cvs/beans/src/org/netbeans/modules/beans/beaninfo/BiFeature.java,v 
<--  BiFeature.java
new revision: 1.24; previous revision: 1.23
Comment 2 Jan Becicka 2003-01-21 10:28:44 UTC
VERIFIED
Comment 3 Jan Becicka 2003-01-22 14:05:26 UTC
Sorry I must reopen it.
eventSets are still unsorted. See attached diff.

BTW see issues 22247 and issue 18116.

Comment 4 Jan Becicka 2003-01-22 14:06:32 UTC
Created attachment 8644 [details]
diff beaninfo_1 beaninfo_2
Comment 5 Svata Dedic 2003-01-31 13:17:42 UTC
OKOK. Listener methods are not alphabetically sorted:

/cvs/beans/src/org/netbeans/modules/beans/beaninfo/BiFeature.java,v 
<--  BiFeature.java
new revision: 1.25; previous revision: 1.24
Comment 6 Jan Becicka 2003-02-04 09:41:34 UTC
I must reopen it again.
gui.BeanInfoGeneration.testGenerateNewBeanInfo failed again
[200302040100].

Comment 7 Jan Becicka 2003-02-04 09:42:04 UTC
*** Issue 30368 has been marked as a duplicate of this issue. ***
Comment 8 Jan Becicka 2003-02-11 14:00:30 UTC
It was probably kind of race condition. Automated test run too fast I
suppose. I probably compared BeanInfo before it was fully generated.
Those tests pass now.
Comment 9 Jan Becicka 2003-02-14 12:44:30 UTC
VERIFIED