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 85962 - for-like abbreviations adds 'import java.lang.Object'
Summary: for-like abbreviations adds 'import java.lang.Object'
Status: RESOLVED DUPLICATE of bug 88755
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 86544 87502 (view as bug list)
Depends on:
Blocks: 87136
  Show dependency tree
 
Reported: 2006-09-27 22:22 UTC by Petr Hrebejk
Modified: 2007-01-17 10:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Hrebejk 2006-09-27 22:22:15 UTC
Using for-like abbreviations (fori, forc,..) and using of enter to move
between categories results in import statement for java.lang.Object being added
(which is weird, java.lang.* is imported by default in all java files). This can
be repeated multiple times, resulting in multiple imports.

Steps to reproduce:
-----------------------------------
1) Open a java file
2) Inside of a method, type 'fori'
3) Press enter few times
=>import added
4) Goto 2
...

---
netbeans-retouche-200606280000
JDK 1.6.0 64b rc, b89
Solaris 10 / sparcv9


Lahoda -------------------

Will be fixed once we use jackpot's import management, I think.
Comment 1 Petr Hrebejk 2006-10-09 11:58:35 UTC
Does not seem to happen any more. Is it really still reproducible.
Comment 2 Max Sauer 2006-10-09 16:02:34 UTC
Yes, it is still valid.

---
JDK 1.5.0_05
Retouche build 061009
Linux/PC
Comment 3 Jan Lahoda 2006-10-16 07:49:17 UTC
*** Issue 86544 has been marked as a duplicate of this issue. ***
Comment 4 Jan Lahoda 2006-10-23 09:15:21 UTC
*** Issue 87502 has been marked as a duplicate of this issue. ***
Comment 5 Dusan Balek 2006-10-31 09:59:42 UTC
Reassigning.
Comment 6 Dusan Balek 2006-11-07 09:55:30 UTC
Should be fixed by the #88755 fix. Code completion was rewritten to use the
Retouche write API when adding imports.



*** This issue has been marked as a duplicate of 88755 ***