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

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

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

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 
Comment 5 Exceptions Reporter 2017-07-15 06:28:47 UTC
Created attachment 164772 [details]

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

Diff-ing 2 files and deleting one of them