how does Java think here?

I have code:

Speciality[] spObjects = sp.getAll();

It's ok when I import core.Speciality

But when I import core.* it says:

found: core.Speciality[]

required: GUI.Elements.Speciality[]

Speciality[] spO = sp.getAll();

1 error

BUILD FAILED (total time: 1 second)

Speciality[] spObjects = sp.getAll(); is in class MyComboBoxModelSpeciality which is in package GUI.Elements

So what gives? * doesn't work some times?

[479 byte] By [hkirsmana] at [2007-11-27 2:06:25]
# 1
So you have two classes with the same name in different packages...You probably imported the wrong one. If you need both, use the fuly qualified name without an import.
CeciNEstPasUnProgrammeura at 2007-7-12 1:53:31 > top of Java-index,Java Essentials,New To Java...
# 2

> So you have two classes with the same name in

> different packages...

>

> You probably imported the wrong one. If you need

> both, use the fuly qualified name without an import.

ha. got it. I thought I didn't have two classes with the same name in the different packages because I deleted them. But netbeans ide doesn't actually delete anything if you don't clean and compile (shitf+F11)

tx

hkirsmana at 2007-7-12 1:53:31 > top of Java-index,Java Essentials,New To Java...