Bug 163700 - [imports on paste] Pasting cu code inside string quotes add imports to the enclosing type
Summary: [imports on paste] Pasting cu code inside string quotes add imports to the en...
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-07 13:41 EST by Olivier Thomann CLA
Modified: 2014-05-14 03:50 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2006-11-07 13:41:04 EST
Using 3.3M3, if you paste some code inside an empty string, this adds import to the type.
I cannot reproduce it right now, but I got this problem many times.
Comment 1 Martin Aeschlimann CLA 2006-11-08 17:24:15 EST
Not sure if we should be cleverer here. We don't really know what the result of the paste will be. maybe the paste closes the string and continues with code that needs the imports again.
The algorithm just creates the imports that were required when copying ans assumes that these are required again when pasting.

No changes planed.