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 100056 - "Cannot find symbol" occurs if developer uses <default-package> class
Summary: "Cannot find symbol" occurs if developer uses <default-package> class
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-05 08:11 UTC by dmitry_cherepanov
Modified: 2007-05-11 07:26 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Netbeans project which helps to reproduce the issue (1.57 MB, application/octet-stream)
2007-04-05 08:12 UTC, dmitry_cherepanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmitry_cherepanov 2007-04-05 08:11:42 UTC
Trying to reuse any <default-package> class from imported jar will cause to
compilation error: "cannot find symbol".

Steps to reproduce:
1) Create Java application project
2) Add jar to imported libraries,
the jar should contain <default-package> classes
3) Declare a variable whose type is any of <default-package> classes
4) Try to build project

"Cannot find symbol" error will occur.
Comment 1 dmitry_cherepanov 2007-04-05 08:12:57 UTC
Created attachment 40473 [details]
Netbeans project which helps to reproduce the issue
Comment 2 Tomas Zezula 2007-05-11 07:26:37 UTC
According to the Java Language Specification (paragraph 7.4.2 and 7.5.*) you are
not allowed to use types declared in the default (unnamed) package in named package.