Bug 566696 - [Databinding] ObservableList#stream() is not considered as access in SideEffectFactory
Summary: [Databinding] ObservableList#stream() is not considered as access in SideEffe...
Status: CLOSED DUPLICATE of bug 566698
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 4.14   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-runtime-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-05 02:22 EDT by Christoph Laeubrich CLA
Modified: 2020-09-08 02:37 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Laeubrich CLA 2020-09-05 02:22:17 EDT
If one has an IObservableList/WritableList and uses SideEffectFactory then an access to stream() is not recognized as access and thus on changes the side effect does not occur.

Example:
> IObservableList<Object> list = new WritableList<>();
> ISideEffectFactory factory = WidgetSideEffects.createFactory(parent);
> factory.create(() -> list.stream(), stream -> {
>  //will only be called once on init and never again
>}

it seems that simply an override of that method is missing calling getterCalled(), the same apply for the parallelStream()/spliterator() method.
Comment 1 Christoph Laeubrich CLA 2020-09-08 02:37:31 EDT
Seems to be created twice while the bugzilla crash.

*** This bug has been marked as a duplicate of bug 566698 ***