Community
Participate
Working Groups
build 2002-06-17 When we import preferences for a plug-in, we send out the appropriate property change event. There was a case where the property change event listner was using == instead of equals() to check and see if the property that was changed was one in which they were interested. Since the importer does not have access to the constants to which it is comparing, perhaps the importer should look at interning the property name strings that it is setting.
Please consider this as a candidate for F4. Without this, the import feature will not work properly since several listeners assume they can use ==. See bug 20471 for a list.
After discussions we have decided that interning strings is the wrong answer and that people should not be relying on String identity in their property change listeners. Closing.
Re-opening bug report.
Applied fix. We now intern all strings on preference import. Test case added. Released.