-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
23
-
generic
-
generic
-
Not verified
ADDITIONAL SYSTEM INFORMATION :
This bug can be replicated in all Java distributions versions.
A DESCRIPTION OF THE PROBLEM :
The compiler should report a "name clash" on the following code:
```java
public abstract class A0<T> {
public abstract Object func(A0<Object> arg0, T arg1);
}
public abstract class A1 extends A0<A1> {
public void func(A0<A1> arg1, A1 arg2) {
}
}
```
If you change "extends A0<A1>" into "extends A0<Object>", the bug disappear (which means compiler reported a "name clash" as we expected).
FREQUENCY : always
This bug can be replicated in all Java distributions versions.
A DESCRIPTION OF THE PROBLEM :
The compiler should report a "name clash" on the following code:
```java
public abstract class A0<T> {
public abstract Object func(A0<Object> arg0, T arg1);
}
public abstract class A1 extends A0<A1> {
public void func(A0<A1> arg1, A1 arg2) {
}
}
```
If you change "extends A0<A1>" into "extends A0<Object>", the bug disappear (which means compiler reported a "name clash" as we expected).
FREQUENCY : always