Bug 561076 - Copy/Paste Class in same package throws exception
Summary: Copy/Paste Class in same package throws exception
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.15   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-12 15:21 EDT by Wim Jongman CLA
Modified: 2024-02-22 02:49 EST (History)
0 users

See Also:


Attachments
Full stacktrace (11.29 KB, text/plain)
2020-03-12 15:21 EDT, Wim Jongman CLA
no flags Details
Movie (1.76 MB, video/mp4)
2020-03-12 15:31 EDT, Wim Jongman CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wim Jongman CLA 2020-03-12 15:21:24 EDT
Created attachment 282105 [details]
Full stacktrace

I copy and paste a class and get the following error:


java.lang.StringIndexOutOfBoundsException: String index out of range: 1903
	at java.lang.String.<init>(String.java:205)
	at org.eclipse.jdt.internal.core.Buffer.getText(Buffer.java:191)
	at org.eclipse.jdt.internal.corext.refactoring.rename.TypeOccurrenceCollector.acceptSearchMatch2(TypeOccurrenceCollector.java:53)
	at org.eclipse.jdt.internal.corext.refactoring.reorg.CreateCopyOfCompilationUnitChange$1.acceptSearchMatch(CreateCopyOfCompilationUnitChange.java:116)


Eclipse SDK
Version: 2020-03 (4.15)
Build id: I20200305-0155
OS: Windows 10, v.10.0, x86_64 / win32
Java version: 1.8.0_201
Comment 1 Wim Jongman CLA 2020-03-12 15:31:39 EDT
Created attachment 282106 [details]
Movie
Comment 2 Eclipse Genie CLA 2022-03-03 01:59:03 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 Eclipse Genie CLA 2024-02-22 02:49:36 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.