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 255758 - Arrays evaluation in watches broken (regression)
Summary: Arrays evaluation in watches broken (regression)
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P1 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords: 81_HR_FIX
Depends on:
Blocks:
 
Reported: 2015-10-07 08:56 UTC by sreimers
Modified: 2015-10-14 11:31 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patched lexer (1.95 MB, application/x-java-archive)
2015-10-08 15:26 UTC, Vladimir Voskresensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sreimers 2015-10-07 08:56:50 UTC
Using example code:

Int x[] = {1, 2, 3, 4, 5};
Int* pointer = &x[1] ;

x is correctly displayed as an Array without having to create a watch.

If you want to display "pointer" as an array of length 4 in the debugging session, the solution for NetBeans 8.0.2 was to create a watch (*pointer@4).

This does not work in 8.1 beta/rc. The error displayed is "OUT OF SCOPE".
Comment 1 soldatov 2015-10-07 09:05:53 UTC
In GDB log I see:
45-var-create - @ (*pointer4)
Comment 2 soldatov 2015-10-07 09:07:36 UTC
Workaround: restart debugger
Comment 3 henk89 2015-10-07 12:40:09 UTC
ClankFileInfoQuerySupport.expand(fileImpl, code, handler, base, offset) transforms '@' into ''

Workaround is to set -Dapt.use.clank=false
Comment 4 Vladimir Voskresensky 2015-10-08 15:26:00 UTC
Created attachment 156628 [details]
patched lexer

Could you replace, please, your jar with mine.
Comment 5 Quality Engineering 2015-10-09 01:22:25 UTC
Integrated into 'main-silver', will be available in build *201510090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/99942eb0d6b7
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: binaries update:
fixed #255758 Arrays evaluation in watches broken (regression)
fixing #255804 - AssertionError: already initialized normalized file?
Comment 7 Alexander Simon 2015-10-12 16:33:29 UTC
The fix is safe and resolves the issue.
Comment 8 ilia 2015-10-13 13:42:42 UTC
Transplanted status:
  Changesets which modified only binaries-list were skipped except the latest one.
  Changeset http://hg.netbeans.org/cnd-main/rev/99942eb0d6b7 may be considered as a "transplanted" one
Comment 9 Alexander Pepin 2015-10-14 11:31:49 UTC
verified in RC2 build.