Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362709 - [DataBinding] WorkbenchProperties.SelectionServiceListener ignores arguments given to selectionChanged() when delegating to NativePropertyListener.fireChanged()
Summary: [DataBinding] WorkbenchProperties.SelectionServiceListener ignores arguments ...
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.1.2   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 349297
Blocks: 357568
  Show dependency tree
 
Reported: 2011-11-02 14:09 EDT by Paul Webster CLA
Modified: 2011-12-13 04:34 EST (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Webster CLA 2011-11-02 14:09:13 EDT
+++ This bug was initially created as a clone of Bug #358920 +++

Backport request for bug bug 349297.

The inner class SelectionServiceListener always calls its inherited method fireChanged() with arguments (null, null) ignoring the part and selection passed to selectionChanged(). The super class NativePropertyListener creates a new SimplePropertyEvent in fireChanged() and passes through the null values. This results in an IllegalArgumentException ("null source") in the constructor of SimplePropertyEvent/EventObject. Due to this fact the provided WorkbenchProperties are unusable.
Comment 1 Dani Megert CLA 2011-11-08 08:39:39 EST
See bug 358920 comment 3 for Paul's +1.

Fixed in R4_1_maintenance: 6cf361285e0159b626cfd96cf7102222b5427ad5
Comment 2 Dani Megert CLA 2011-11-08 08:39:48 EST
.
Comment 3 Dani Megert CLA 2011-12-13 04:34:08 EST
Verified in 4.1.2-M20111202-0815.