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 250503 - @OnReceive cannot accept plain text value if it is parseable as JSON
Summary: @OnReceive cannot accept plain text value if it is parseable as JSON
Alias: None
Product: platform
Classification: Unclassified
Component: Html4j (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jaroslav Tulach
Depends on:
Reported: 2015-02-18 16:24 UTC by Jaroslav Tulach
Modified: 2015-02-18 18:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2015-02-18 16:24:00 UTC
With version 1.1:

    @OnReceive(url = "{url}")
    static void plainRead(Data model, String data) {
        assert data.contains("Hello");

doest not work if the URL passed to: model.plainRead("http:....") points to value which represents JSON text:

{ "value" : "Hello World!" }

the data value is then empty.
Comment 1 Jaroslav Tulach 2015-02-18 18:15:11 UTC
Should be part of 1.2 release: