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
This commit is contained in:
Roger Sayle 2005-01-24 14:34:19 +00:00 committed by Roger Sayle
parent e930780c1e
commit d5f625555a
4 changed files with 45 additions and 9 deletions

View file

@ -0,0 +1,16 @@
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;
}