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.
Let's have a code block like the following one: final Callable<String> callable = new Callable<String>() { @Override public String call() throws Exception { return "test"; } }; Hints suggest to use diamond inference, so above code would be changed to: final Callable<String> callable = new Callable<>() { @Override public String call() throws Exception { return "test"; } }; But the lattest code will not compile, due to: error: cannot infer type arguments for Callable; final Callable<String> callable = new Callable<>() { reason: cannot use '<>' with anonymous inner classes
Forgot to include system info; System Info: Product Version = NetBeans IDE 7.0 (Build 201104080000) (#a693229ccdbb) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.7.0; Java HotSpot(TM) Client VM 21.0-b17; Oracle Corporation Runtime = Java(TM) SE Runtime Environment 1.7.0-b147
Yes, NetBeans 7.0 is still based on javac that still proposes this conversion. The newly released NetBeans 7.0.1 uses an up-to-date javac and fixes this problem. Thanks for the report.