support Boolean constants in constant pool

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@176 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent ca1416168d
commit 196f093c30
  1. 4
      jode/jode/bytecode/ConstantPool.java

@ -138,7 +138,9 @@ public class ConstantPool {
? Type.tInt
: (value < Byte.MIN_VALUE || value > Byte.MAX_VALUE)
? Type.tRange(Type.tInt, Type.tChar)
: Type.tUInt);
: (value == 0 || value == 1)
? Type.tBoolByte
: Type.tUInt);
}
case FLOAT : return Type.tFloat ;
case LONG : return Type.tLong ;

Loading…
Cancel
Save