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 8.0 RC1 (Build 201402242200) Operating System = Windows 8 version 6.2 running on amd64 Java; VM; Vendor = 1.8.0 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.0-b70 For lambda expressions returning the identity (i.e. x -> x) NetBeans raises the warning "Parameter x not used". Custom examples: IntStream.empty().map(i -> i); // primitive identity IntStream.empty().mapToObj(i -> i); // autoboxing Stream.empty().map(o -> o); // reference identity Stream.<Integer>empty().mapToInt(i -> i); // unboxing JDK example: java.util.function.IntUnaryOperator.identity()
fixed in jet-main#eb693fe43af0
Integrated into 'main-silver', will be available in build *201509300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/eb693fe43af0 User: Svata Dedic <sdedic@netbeans.org> Log: #242751: identifier expression in lambda body treated as read