Compiler cannot distinguish between the same class name in different packages, when
the ambiguous class name has been imported into this package. Receive error message:
Class name Vector clashes with imported class java.util.Vector
Steps to reproduce:
Compile the attached code
/* Ambiguous class name */
package pkg;
import java.util.*;
public class Vector
{
private int i;
public Vector()
{
i = 1;
}
}
the ambiguous class name has been imported into this package. Receive error message:
Class name Vector clashes with imported class java.util.Vector
Steps to reproduce:
Compile the attached code
/* Ambiguous class name */
package pkg;
import java.util.*;
public class Vector
{
private int i;
public Vector()
{
i = 1;
}
}