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 239424 - [nashorn] Java object in JavaScript not expandable in Variables
Summary: [nashorn] Java object in JavaScript not expandable in Variables
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-12 16:08 UTC by Vladimir Riha
Modified: 2014-08-19 14:55 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 Vladimir Riha 2013-12-12 16:08:48 UTC
Please download project [1] and:
 - open Javascript_sample.java and change value of mode variable to "JSToJava"
 - add line breakpoint to SampleRunner.java:97
 - debug project
 - once debugger stops on line 97, keep pressing step into until debugger stops in JavaScript
 - add line breakpoint to the JS code on line 7 (containing " jackRunner.run();")
 - continue F5 so debugger stops on line 7

=> check jackRunner in Variables, its value is set to javascript_sample.Runner@1a2cb77 and it is not expandable. If I add a new watch for this property, it is expandable with property name and its value (the name's property) is displayed as [object Undefined]. Nothing suspicious in IDE log


[1] http://services.netbeans.org/synergy/server/api/attachment.php?id=123




Product Version: NetBeans IDE Dev (Build 201312120002)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b61
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b119
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Martin Entlicher 2014-07-30 16:58:33 UTC
The attachment is gone :-(
But I believe that the issue with wrong variables is fixed already.
Comment 2 Vladimir Riha 2014-08-05 13:38:19 UTC
I'm sorry, still reproducible. The project can be found at the end of page 
http://services.netbeans.org/synergy/client/app/#/specification/235/v/2
Comment 3 Martin Entlicher 2014-08-08 13:41:30 UTC
Reproduced.
Comment 4 Martin Entlicher 2014-08-08 18:35:12 UTC
Fixed by changeset:   277242:731badcd1c4d
http://hg.netbeans.org/core-main/rev/731badcd1c4d
Comment 5 Quality Engineering 2014-08-10 01:51:17 UTC
Integrated into 'main-silver', will be available in build *201408100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/731badcd1c4d
User: mentlicher@netbeans.org
Log: #239424: Show Java objects as expandable.
Comment 6 Vladimir Riha 2014-08-19 14:55:16 UTC
Thank you, verified


Product Version: NetBeans IDE Dev (Build 201408190001)
Java: 1.8.0_20; Java HotSpot(TM) Client VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b31
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)