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.
NetBeans IDE Dev (Build 060920) 1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b98 Linux version 2.6.5-1.358 running on i386 en_US (nb); UTF-8 Casting hins is suggested when undefined method is used to get a value. Steps to reproduce: 1) create class 2) inside some method type: int i = undefined(); -> hint suggesting casting undefined() to int is provided, but it will not help to solve compiler error
Should be fixed: http://java.netbeans.org/source/browse/java/hints/src/org/netbeans/modules/java/hints/AddCastCreator.java?r1=1.1.2.2&r2=1.1.2.3 http://java.netbeans.org/source/browse/java/hints/test/unit/data/org/netbeans/test/java/hints/AddCastDoNotPropose.java?rev=1.1.2.1&content-type=text/vnd.viewcvs-markup http://java.netbeans.org/source/browse/java/hints/test/unit/data/goldenfiles/org/netbeans/modules/java/hints/JavaHintsTest/testAddCastHintDoNotPropose-hints.pass?rev=1.1.2.1&content-type=text/vnd.viewcvs-markup http://java.netbeans.org/source/browse/java/hints/test/unit/src/org/netbeans/modules/java/hints/JavaHintsTest.java?r1=1.1.2.1&r2=1.1.2.2
verified