JDK-4429674 : single-type import declaration problem
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 1.4.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2001-03-23
  • Updated: 2001-03-23
  • Resolved: 2001-03-23
Related Reports
Duplicate :  
Description
Customer report:

I have "c:\src" and "c:\src\nopackage" in the classpath.  Files within "c:\src\mypackage" are in the "mypackage" package.  Files in "c:\src\nopackage" are in no explicit package.   Suppose class Foo is in nopackage -- therefore we use "import Foo;" in other classes.  Merlin javac barks at these import statements.  So the bottom line is:  cannot compile classes that import other classes that are not in packages -- unless the spec has changed in some way that I'm not aware of.  



Comments
PUBLIC COMMENTS see 4361575
10-06-2004

EVALUATION See the public summary of 4361575. This is not a bug. neal.gafter@Eng 2001-03-23
23-03-2001