Community
Participate
Working Groups
I have in default package class called "ExtendClass" public class ExtendClass { } In "mypkg" package I have class called "MyClass" package mypkg; import ExtendClass; public class MyClass extends ExtendClass{ } I get this in "Problems: Severity Description Resource In Folder Location Creation Time 2 The import ExtendClass cannot be resolved MyClass.java rtr/mypkg line 8 April 20, 2004 1:58:30 PM 2 ExtendClass cannot be resolved or is not a valid superclass MyClass.java rtr/mypkg line 9 April 20, 2004 1:58:30 PM
This is normal in 1.4 mode. It should work in 1.3. Import from the default package is forbidden in 1.4. See bug 45206.
Some one depended on this to work. Why break it?
I have changed the complience level for the project and it did not work anyway
We didn't break anything. This was a bug in javac that has been fixed. See http://developer.java.sun.com/developer/bugParade/bugs/4361575.html
Created attachment 9729 [details] Test case The code assist doesn't work, but you can add the import to a class in the default package when compliance is set to 1.3. See attached test case.
I would close as INVALID. Philippe, any comment?
Closing indeed.