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 168931 - [68cat] Empty package is mistaken as non-existing
Summary: [68cat] Empty package is mistaken as non-existing
Status: REOPENED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-21 20:32 UTC by matthies
Modified: 2016-07-18 20:19 UTC (History)
0 users

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 matthies 2009-07-21 20:32:52 UTC
Repro:
1) Add a new package "foo".
2) In a java source file outside the new package, add the import "import foo.*;".
-> The editor shows an error "package foo does not exist", although the "foo" package is shown under the projects 
Source Packages node and the external compiler does successfully compile the import.
Comment 1 Max Sauer 2009-07-22 10:18:46 UTC
This is in fact a duplicate of issue 128830. We know about this problem -- it is caused by not indexed packages. We index sourceroots, which means a 
package is not visible to infrastructure until there is a class inside. 

Solving this problem would require large changes which are not likely to happen in this release, sorry.

*** This issue has been marked as a duplicate of 128830 ***
Comment 2 Max Sauer 2009-07-22 13:36:43 UTC
I've realized that this is not a duplicate, sorry. Reopening.
Comment 3 Martin Balin 2016-07-07 07:18:05 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 4 matthies 2016-07-18 20:19:10 UTC
Still reproducable in current dev build.