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:
parent
e930780c1e
commit
d5f625555a
4 changed files with 45 additions and 9 deletions
16
libjava/testsuite/libjava.compile/PR19295.java
Normal file
16
libjava/testsuite/libjava.compile/PR19295.java
Normal 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;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue