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 259063

Summary: IllegalArgumentException: Illegal difference number: 8
Product: utilities Reporter: Exceptions Reporter <exceptions_reporter>
Component: DiffAssignee: Ondrej Vrabec <ovrabec>
Status: NEW ---    
Severity: normal CC: riksoft, rudyment, scanti, vercinstex, vv159170
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 223803
Attachments: stacktrace
stacktrace
stacktrace
stacktrace

Description Exceptions Reporter 2016-04-29 14:06:21 UTC
This bug was originally marked as duplicate of bug 155306, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Linux

User Comments:
GUEST: 8 is illegal




Stacktrace: 
java.lang.IllegalArgumentException: Illegal difference number: 8
   at org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffView.setDifferenceImpl(EditableDiffView.java:564)
   at org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffView.access$2500(EditableDiffView.java:112)
   at org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffView$3.run(EditableDiffView.java:462)
   at org.netbeans.modules.diff.builtin.visualizer.editable.DiffViewManager.runWithSmartScrollingDisabled(DiffViewManager.java:118)
   at org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffView.setLocation(EditableDiffView.java:459)
   at org.netbeans.api.diff.DiffController.setLocation(DiffController.java:135)
Comment 1 Exceptions Reporter 2016-04-29 14:06:23 UTC
Created attachment 159478 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2016-06-06 09:41:11 UTC
Created attachment 159967 [details]
stacktrace

clean & build
Comment 3 Vladimir Voskresensky 2016-06-06 09:52:12 UTC
I think it occurs when Tools->Diff view was left in between opened files (even not active one) and I changed one of files externally
Comment 4 Exceptions Reporter 2017-03-28 10:55:09 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=223803
Comment 5 Exceptions Reporter 2017-07-15 06:28:47 UTC
Created attachment 164772 [details]
stacktrace

Diff 2 files
Comment 6 scanti 2017-07-26 09:19:52 UTC
Created attachment 164834 [details]
stacktrace

Diff-ing 2 files and deleting one of them