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.

Bug 254912 - NegativeArraySizeException at org.netbeans.modules.cnd.refactoring.support.ModificationResult.commit
Summary: NegativeArraySizeException at org.netbeans.modules.cnd.refactoring.support.Mo...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-01 14:24 UTC by soldatov
Modified: 2015-09-02 05:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 219599


Attachments
stacktrace (2.18 KB, text/plain)
2015-09-01 14:24 UTC, soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2015-09-01 14:24:34 UTC
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)
Comment 1 soldatov 2015-09-01 14:24:36 UTC
Created attachment 155807 [details]
stacktrace
Comment 3 Alexander Simon 2015-09-01 15:41:45 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/50798dc06f42
Comment 4 Quality Engineering 2015-09-02 05:16:28 UTC
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