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

Summary: [Safe delete] remove of package does not remove imports
Product: java Reporter: Petr Dvorak <joshis>
Component: RefactoringAssignee: Jan Pokorsky <jpokorsky>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 131944    
Bug Blocks: 152192    
Attachments: ZIP with a sample project - try to safely remove the "ui" package

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. :)