Say I have an interface with a single method
public interface Something {
Collection getItems(String userId);
}
And another class implements it.
public class SomethingImpl implements Something {
Collection getItems(String userId){
return null;
}
}
This doesn't compile in Eclipse but compiles in Unix with the same java 1.3 compiler.
I know it shouldn't compile but why does it compile in Unix with the same java 1.3.1 compiler?