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 250760 - [nashorn] Missing variables in Variables window with JDK8u40
Summary: [nashorn] Missing variables in Variables window with JDK8u40
Status: RESOLVED WONTFIX
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-27 09:58 UTC by Vladimir Riha
Modified: 2015-04-13 14:08 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 2015-02-27 09:58:24 UTC
Please check project [1] and:
 - open test1.js 
 - add line breakpoint to 79
 - debug project
 - once debugger stops on line 79, check the Variables
 => variables x,y,f,a,nn etc. are missing and their tooltip shows "null"

In 8.0.2, it works with JDK8u31 (In trunk - Build 201502260001 - it does not) 


Thank you


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

Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 1
Java: 1.7.0_75; Java HotSpot(TM) Client VM 24.75-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_75-b13
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Comment 1 Martin Entlicher 2015-04-13 14:08:51 UTC
I've tested the project on 
1.8.0_40; Java HotSpot(TM) 64-Bit Server VM 25.40-b25
and
1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b10

It consistently shows null values for unused variables and the correct values for variables that are used in the program. If it worked differently in the past, they probably stopped assignments of unused variables in Nashorn. IMHO this is an acceptable behavior, since values of unused variables do not matter.