gcc/libjava/testsuite/libjava.compile/PR19295.java
Roger Sayle d5f625555a re PR java/19295 (Incorrect bytecode produced for bitwise AND)
PR java/19295
	* jcf-write.c (generate_bytecode_insns): Conversions between
	integer types of the same precision shouldn't generate widening
	or narrowing conversion bytecodes.

	* testsuite/libjava.compile/PR19295.java: New test case.

From-SVN: r94162
2005-01-24 14:34:19 +00:00

17 lines
314 B
Java

public class PR19295 implements myInterface {
public long tagBits = 0;
public final boolean isArrayType() {
return (tagBits & IsArrayType) != 0;
}
}
abstract class blah {
public final static int Bit1 = 0x2;
}
interface myInterface {
long IsArrayType = blah.Bit1;
}