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.
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.
Reproduced...
This is a regression caused by fix of issue #203717. The fix needs to be corrected...
Fixed by changeset: 205652:9e01be116291 http://hg.netbeans.org/main/rev/9e01be116291