Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 439135

Summary: import of private classes
Product: [Eclipse Project] JDT Reporter: David Reddy <reddyd>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: minor    
Priority: P3 CC: manju656
Version: 3.8   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description David Reddy CLA 2014-07-08 10:17:59 EDT
When copying and pasting code from one class to another, Eclipse saw fit to auto-add an import to a private class. Of course, since the class was private, the import caused an error when attempting to compile. I just think imports should be checked for validity before being auto-added.
Comment 1 Martin Mathew CLA 2014-07-14 02:02:26 EDT
Even without the import the user will end up with compiler errors as the private class will not be resolved. Nevertheless, Eclipse can avoid adding the import in this case.
Comment 2 Eclipse Genie CLA 2020-04-24 20:34:18 EDT
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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.