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 258908 - @JavaScriptBody returning undefined should yield null in Java
Summary: @JavaScriptBody returning undefined should yield null in Java
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Html4j (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-19 18:20 UTC by Jaroslav Tulach
Modified: 2016-04-19 18:32 UTC (History)
1 user (show)

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 2016-04-19 18:20:01 UTC
Common error of people using @JavaScriptBody is that they return "undefined" instead of "null". The representation of undefined then differs in various presenters. Sometimes it yields class cast exceptions, sometimes unknown symbols. Better to avoid it altogether.
Comment 1 Jaroslav Tulach 2016-04-19 18:32:06 UTC
http://hg.netbeans.org/html4j/rev/b49546d64269

Will be part of 1.4 release.