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 270481 - Observing two properties on a single Proto object doesn't work
Summary: Observing two properties on a single Proto object doesn't work
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Html4j (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-25 03:49 UTC by Jaroslav Tulach
Modified: 2017-04-25 03:58 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 Jaroslav Tulach 2017-04-25 03:49:39 UTC
Writing code like:

        @ComputedProperty @Transitive(deep = true)
        static int sumPositive(Depends next, int value) {
            while (next != null && next.getValue() > 0) {
                value += next.getValue();
                next = next.getNext();
            }
            return value;
        }

- e.g. observing two properties at once (value & next) doesn't work in HTML/Java API version 1.4.
Comment 1 Jaroslav Tulach 2017-04-25 03:58:30 UTC
To be released in post 1.4 version:
https://github.com/jtulach/html-java-api/commit/43125c893fd2f862b8b40e09be6918d0bae22389