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 50022 - [tests] Redundant events after modifying of constructor
Summary: [tests] Redundant events after modifying of constructor
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-06 15:09 UTC by ehucka
Modified: 2007-09-26 09:14 UTC (History)
0 users

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 ehucka 2004-10-06 15:09:18 UTC
Automated test java/qa-functional
org.netbeans.test.java.eventfiring.ConstructorChanged
 shows that there are thrown some events after the
costructor modyfying is finished:

TYPE_CONSTRUCTORS_CHANGE
TYPE_CONSTRUCTORS_REMOVE
TYPE_CONSTRUCTORS_ADD
Comment 1 Martin Matula 2004-10-07 08:07:56 UTC
Dan, please look at it.
Comment 2 Daniel Prusa 2004-10-11 16:24:36 UTC
This problem has roots in javacore - matcher. When parameters of a
constructor are modified and the modification is commited, the matcher
does not match the changed (jmi) constructor with the original one.
The old constructor is deleted and a new one is created. It causes
additional events to be generated.

As a temporal solution, I suggest to adjust golden files in java
tests, since this bug has not a direct connection to the src hierarchy.
Comment 3 ehucka 2005-01-11 13:27:29 UTC
i repaired golden files, resolving it as fixed
Comment 4 ehucka 2005-05-04 11:36:44 UTC
v