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.
[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.
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
VERIFIED
Sorry I must reopen it. eventSets are still unsorted. See attached diff. BTW see issues 22247 and issue 18116.
Created attachment 8644 [details] diff beaninfo_1 beaninfo_2
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
I must reopen it again. gui.BeanInfoGeneration.testGenerateNewBeanInfo failed again [200302040100].
*** Issue 30368 has been marked as a duplicate of this issue. ***
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.