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

Summary: @OnReceive cannot accept plain text value if it is parseable as JSON
Product: platform Reporter: Jaroslav Tulach <jtulach>
Component: Html4jAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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:
https://hg.netbeans.org/html4j/rev/50ee036959f5