-
Bug
-
Resolution: Fixed
-
P2
-
5.0
-
b08
-
x86
-
windows_xp
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2171460 | 7 | Unassigned | P2 | Closed | Cannot Reproduce | |
JDK-2168690 | 5.0u17 | Abhijit Saha | P3 | Resolved | Fixed | b02 |
JDK-2166157 | 5.0u16-rev | Vaibhav Choudhary | P2 | Resolved | Fixed | b07 |
FULL PRODUCT VERSION :
java 1.5.0.12
A DESCRIPTION OF THE PROBLEM :
run javadoc against the following class:
package bug;
import java.util.List;
public class JavaDocGenerics {
public void a(List<String> s){}
public void a(List<StringBuffer> s){}
}
No warning or error will be reported. The html will be generated, although anchors for both methods will be the same.
However,
Run the javadoc against the following class
package bug;
public class JavaDocNoneGenerics {
public void b(int a){}
public void b(int a){}
}
The javadoc will report:
" b(int) is already defined in bug.JavaDocGenerics
public void b(int a){}
^
"
and the html file will be generated will one method in it.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
run javadoc against the following class:
package bug;
import java.util.List;
public class JavaDocGenerics {
public void a(List<String> s){}
public void a(List<StringBuffer> s){}
}
No warning or error will be reported. The html will be generated, although anchors for both methods will be the same.
However,
Run the javadoc against the following class
package bug;
public class JavaDocNoneGenerics {
public void b(int a){}
public void b(int a){}
}
The javadoc will report:
" b(int) is already defined in bug.JavaDocGenerics
public void b(int a){}
^
"
and the html file will be generated will one method in it.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
package bug;
import java.util.List;
public class JavaDocGenerics {
public void a(List<String> s){}
public void a(List<StringBuffer> s){}
}
package bug;
public class JavaDocNoneGenerics {
public void b(int a){}
public void b(int a){}
}
---------- END SOURCE ----------
java 1.5.0.12
A DESCRIPTION OF THE PROBLEM :
run javadoc against the following class:
package bug;
import java.util.List;
public class JavaDocGenerics {
public void a(List<String> s){}
public void a(List<StringBuffer> s){}
}
No warning or error will be reported. The html will be generated, although anchors for both methods will be the same.
However,
Run the javadoc against the following class
package bug;
public class JavaDocNoneGenerics {
public void b(int a){}
public void b(int a){}
}
The javadoc will report:
" b(int) is already defined in bug.JavaDocGenerics
public void b(int a){}
^
"
and the html file will be generated will one method in it.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
run javadoc against the following class:
package bug;
import java.util.List;
public class JavaDocGenerics {
public void a(List<String> s){}
public void a(List<StringBuffer> s){}
}
No warning or error will be reported. The html will be generated, although anchors for both methods will be the same.
However,
Run the javadoc against the following class
package bug;
public class JavaDocNoneGenerics {
public void b(int a){}
public void b(int a){}
}
The javadoc will report:
" b(int) is already defined in bug.JavaDocGenerics
public void b(int a){}
^
"
and the html file will be generated will one method in it.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
package bug;
import java.util.List;
public class JavaDocGenerics {
public void a(List<String> s){}
public void a(List<StringBuffer> s){}
}
package bug;
public class JavaDocNoneGenerics {
public void b(int a){}
public void b(int a){}
}
---------- END SOURCE ----------
- backported by
-
JDK-2166157 javadoc does not get compilation errors after type erasure
- Resolved
-
JDK-2168690 javadoc does not get compilation errors after type erasure
- Resolved
-
JDK-2171460 javadoc does not get compilation errors after type erasure
- Closed
- relates to
-
JDK-6908806 JDK 1.5.0 Update 17 javac fails to compile java code using generics
- Closed
-
JDK-7098750 JCK-compiler: compilation of 32 tests did not fail as expected
- Closed
-
JDK-7111601 javac/api/DiagnosticTest/DiagnosticTest03 fails with java.lang.Exception: Stack trace
- Closed
(1 relates to)