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 204237 - Variables tab refuses to evaluate method invocation
Summary: Variables tab refuses to evaluate method invocation
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1
Hardware: All All
: P1 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2011-10-25 21:00 UTC by _ gtzabari
Modified: 2011-10-27 10:04 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 _ gtzabari 2011-10-25 21:00:21 UTC
Product Version: NetBeans IDE Dev (Build 201110240600)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
User directory: C:\Users\g.tzabari\.netbeans\dev
Cache directory: C:\Users\g.tzabari\.netbeans\dev\var\cache

1. Create this testcase:

public class JavaApplication2 {

    public static void main(String[] args) {
        String name = "test";
        Charset cs = Charset.forName("UTF-8");
        CharsetEncoder encoder = cs.newEncoder();
        ByteBuffer nameBuffer;
        try {
            nameBuffer = encoder.encode(CharBuffer.wrap(name));
        } catch (CharacterCodingException e) {
            throw new IllegalArgumentException("Cannot convert name to UTF8", e);
        }
        System.out.println("breakpoint here: " + nameBuffer.get(0));
    }
}

2. Place a breakpoint on the last line.
3. Enter the following expression in the Variables tab: "nameBuffer.get(0)"
4. Netbeans complains: ">None of the "get" methods in class "java.nio.ByteBuffer" takes parameters of types "(int)".<" which is simply not true.
Comment 1 Martin Entlicher 2011-10-26 12:18:12 UTC
Reproduced...
Comment 2 Martin Entlicher 2011-10-26 15:43:33 UTC
This is a regression caused by fix of issue #203717.
The fix needs to be corrected...
Comment 3 Martin Entlicher 2011-10-27 10:04:14 UTC
Fixed by changeset:   205652:9e01be116291
http://hg.netbeans.org/main/rev/9e01be116291