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.
This bug was originally marked as duplicate of bug 252883, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 201509010002) VM: Java HotSpot(TM) Client VM, 24.85-b07, Java(TM) SE Runtime Environment, 1.7.0_85-b33 OS: SunOS User Comments: soldatov: push Preview button in "Intoduce Function" window Stacktrace: java.lang.NegativeArraySizeException at org.netbeans.modules.cnd.refactoring.support.ModificationResult.commit(ModificationResult.java:195) at org.netbeans.modules.cnd.refactoring.support.ModificationResult.getResultingSource(ModificationResult.java:262) at org.netbeans.modules.cnd.refactoring.elements.DiffElement.getNewFileContent(DiffElement.java:141) at org.netbeans.modules.refactoring.spi.AccessorImpl.getNewFileContent(AccessorImpl.java:82) at org.netbeans.modules.refactoring.spi.impl.PreviewManager.refresh(PreviewManager.java:134) at org.netbeans.modules.refactoring.spi.SimpleRefactoringElementImplementation.showPreview(SimpleRefactoringElementImplementation.java:133)
Created attachment 155807 [details] stacktrace
test file: https://bugzilla-attachments-254909.netbeans.org/bugzilla/attachment.cgi?id=155804
fixed, change set: http://hg.netbeans.org/cnd-main/rev/50798dc06f42
Integrated into 'main-silver', will be available in build *201509020320* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/50798dc06f42 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #254912 NegativeArraySizeException at org.netbeans.modules.cnd.refactoring.support.ModificationResult.commit