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 214898 - IllegalArgumentException: skip value is negative
Summary: IllegalArgumentException: skip value is negative
Status: REOPENED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 224540 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-06-28 09:53 UTC by yyq2008
Modified: 2016-03-16 11:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 190211


Attachments
stacktrace (2.19 KB, text/plain)
2012-06-28 09:53 UTC, yyq2008
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yyq2008 2012-06-28 09:53:38 UTC
This bug was originally marked as duplicate of bug 210198, 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 201206270002)
VM: Java HotSpot(TM) Client VM, 23.1-b03, Java(TM) SE Runtime Environment, 1.7.0_05-b05
OS: Windows 7

Stacktrace: 
java.lang.IllegalArgumentException: skip value is negative
   at java.io.Reader.skip(Reader.java:178)
   at org.netbeans.api.java.source.ModificationResult.commit(ModificationResult.java:306)
   at org.netbeans.api.java.source.ModificationResult.getResultingSource(ModificationResult.java:452)
   at org.netbeans.modules.refactoring.java.spi.DiffElement.getNewFileContent(DiffElement.java:146)
   at org.netbeans.modules.refactoring.spi.AccessorImpl.getNewFileContent(AccessorImpl.java:82)
   at org.netbeans.modules.refactoring.spi.impl.PreviewManager.refresh(PreviewManager.java:134)
Comment 1 yyq2008 2012-06-28 09:53:42 UTC
Created attachment 121486 [details]
stacktrace
Comment 2 Ralph Ruijs 2013-01-08 13:41:19 UTC
*** Bug 224540 has been marked as a duplicate of this bug. ***
Comment 3 Svata Dedic 2014-08-29 21:00:26 UTC
Sorry, not enough data. Probably the exact source would be needed. Additional diagnostics added - jet-main#fd31a9188f9e
Comment 4 Quality Engineering 2014-09-19 15:52:10 UTC
Integrated into 'main-silver', will be available in build *201409191429* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/fd31a9188f9e
User: Svata Dedic <sdedic@netbeans.org>
Log: #214898: diagnostics added
Comment 5 jomu 2016-03-16 11:35:58 UTC
Reopening this bug based on new exception report: http://statistics.netbeans.org/exceptions/exception.do?id=813196