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.
[1098] For example: MethodElement me = clazz.getMethod(... me.setExceptions(... Two ProperyChangeEvents with "exceptions" as propertyName are fired.
I guess that (some of) identifier(s) you are passing to setExceptions() has not its FQN filled in advance (e.g. its getSourceName() and getFullName() yields the same value). If so, then e-mail me a confirmation because this is the intended behaviour.
Your guess is right. I didn't fill FQN. If FQN is filled, only one PropertyChangeEvent is fired.
OK, I'm setting INVALID for _now_. Explanation: If a partially qualified identifier is used in source text operations, the IDE has no idea what exactly that identifier means. The IDE gathers that semantic value from background reparse that is scheduled at the time the change is written into the source. So, the first property change event carries the identifiers as they are passed to the setExceptions(). The second one is fired after the parser processes the text, because the identifiers in the source model are DIFFERENT from the ones produced by the parser, since those are fully qualified. While this is (probably) the only one way how to satisfy general Java Bean's property change listener concept, it _will_ change in the future. I'm fiddling with some API/implementation of name resolution right now.
Resolved for 3.3.x or earlier, no new info since then -> closing.
Resolved for 3.4.x or earlier, no new info since then -> closing.