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.
Whenever I have lambda code like: button.setOnAction(t -> { // some code here }); and apply Introduce Method/Field refactoring to some code inside, I end up with doubled opening brace which breaks code compilation: button.setOnAction(t -> {{ // newMethod/newVariable here });
Actually when lambda contents is somehow changed + class changed so that the lambda tree itself is diffed, curly braces double for lambdas without parenthesis around their parameter. Fixed in http://hg.netbeans.org/jet-main/rev/0922840b6b2c
Integrated into 'main-silver', will be available in build *201312050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/0922840b6b2c User: Svata Dedic <sdedic@netbeans.org> Log: #238075: patching lambda stops copying at arrow for lambdas without parenthesis