Test name: nsk/regression/b4253260 execute_positive quick,regression,jdk
Java doc specification: http://www.oracle.com/technetwork/java/javase/documentation/index-137868.html#throwstag
Java code looks like /**
* Compares this Byte to another Object. If the Object is a Byte,
* this function behaves like <code>compareTo(Byte)</code>. Otherwise,
* it throws a <code>ClassCastException</code> (as Bytes are comparable
* only to other Bytes).
*
* @param o the <code>Object</code> to be compared.
* @return the value <code>0</code> if the argument is a Byte
* numerically equal to this Byte; a value less than
* <code>0</code> if the argument is a Byte numerically
* greater than this Byte; and a value greater than
* <code>0</code> if the argument is a Byte numerically
* less than this Byte.
* @exception <code>ClassCastException</code> if the argument is not a
* <code>Byte</code>.
* @see java.lang.Comparable
* @since 1.2
*/
public int compareTo(Object o) {
return compareTo((Byte)o);
}
It passed in JDK7 and JDK8 b74
but fails in JDK8 b75 with error
[2013-02-06T05:39:51.62] /export/local/aurora/sandbox/results/ResultDir/b4253260/java/lang/Byte.java:258: error: unexpected text
[2013-02-06T05:39:51.62] * @exception <code>ClassCastException</code> if the argument is not a
[2013-02-06T05:39:51.62] ^