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.
For this lambda: field.getAnnotationMirrors().stream().anyMatch(mirror -> ((QualifiedNameable)mirror.getAnnotationType().asElement()).getQualifiedName().contentEquals(INJECT)) If I select: ((QualifiedNameable)mirror.getAnnotationType().asElement()).getQualifiedName() and Introduce variable..., the variable is declared *outside* the lambda, which breaks the code. Product Version = NetBeans IDE Dev (Build 20150721-1f9bde712944) Operating System = Windows 8 version 6.2 running on amd64 Java; VM; Vendor = 1.8.0_40 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.40-b25
Created attachment 154981 [details] IDE log
Fixed in jet-main#825f308c62f3
Integrated into 'main-silver', will be available in build *201508050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/825f308c62f3 User: Svata Dedic <sdedic@netbeans.org> Log: #253914: introduce variable is able to convert lambda expression into lambda with a body