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 131846 - [Safe delete] remove of package does not remove imports
Summary: [Safe delete] remove of package does not remove imports
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
Depends on: 131944
Blocks: 152192
  Show dependency tree
 
Reported: 2008-04-02 16:32 UTC by Petr Dvorak
Modified: 2009-12-14 06:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ZIP with a sample project - try to safely remove the "ui" package (51.04 KB, application/x-compressed)
2008-04-02 16:33 UTC, Petr Dvorak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Dvorak 2008-04-02 16:32:50 UTC
Product Version: NetBeans IDE Dev (Build 200803311426)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)

I have created a sample anagram game. Then I moved (ctrl+c/ctrl+v) files "About.java" and "Anagrams.java" from package
"com.toy.anagrams.ui" to package "com.toy.anagrams.lib". I tried to safely remove/refactor the "com.toy.anagrams.ui"
package, but the project does not build then - it says:


C:\Documents and Settings\Administrator\My
Documents\NetBeansProjects\AnagramGame1\src\com\toy\anagrams\lib\Anagrams.java:34: package com.toy.anagrams.ui does not
exist
import com.toy.anagrams.ui.*;
1 error
BUILD FAILED (total time: 2 seconds)
Comment 1 Petr Dvorak 2008-04-02 16:33:53 UTC
Created attachment 59566 [details]
ZIP with a sample project - try to safely remove the "ui" package
Comment 2 Jiri Prox 2008-04-03 10:57:43 UTC
Reproducible, it happens for unused star imports
Comment 3 Jan Pokorsky 2008-04-03 15:22:27 UTC
Unfortunately it is not possible to find package.* references with present API. I have filed issue #131944 for this.
Comment 4 Jan Pokorsky 2008-11-13 17:16:59 UTC
Resolving as LATER since the requested API support still does not exist.
Comment 5 Quality Engineering 2009-11-02 11:15:10 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX
Comment 6 Petr Dvorak 2009-12-14 06:54:35 UTC
Verified - fixed. :)