Community
Participate
Working Groups
Javac 1.5.0_02 happily compiles this pair of source files. Eclipse 3.2RC2 initially compiles them fine. But add some whitespace to MMTPProtocol.java and save it (with autobuilding) and this falsely causes a "name clash ... same erasure" compile error. -------------------------- MMTPProtocol.java ------------------ import java.io.InputStream; import java.util.HashSet; import bug.ProtocolManager; abstract class AbstractProtocol<R, O> implements ProtocolManager<R, O> { public AbstractProtocol(HashSet<O> manager, String group) {} AbstractProtocol(){} public void connect(ConnectType type) { } } public abstract class MMTPProtocol extends AbstractProtocol<InputStream, String> { public void connect(ConnectType type) {} } ---------------------------------- bug/ProtocolManager.java -------------- public interface ProtocolManager<R, O>{ public enum ConnectType {Client,Server} public void connect(ConnectType type) ; public boolean receive(R input) throws Exception; }
Oops, please add a "package bug;" statement to ProtocolManager.java.
Reproduced with RC2.
Maybe related to bug 139525.
Looks like a dup of bug 139525
Added regression test: GenericTypeTest#test0977 *** This bug has been marked as a duplicate of 139525 ***
Verified using N20060503-0010 for 3.2RC3