From 196f093c30ce072d62311f4b5b158e4fde59b7b8 Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 5 Feb 1999 12:47:46 +0000 Subject: [PATCH] support Boolean constants in constant pool git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@176 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/bytecode/ConstantPool.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jode/jode/bytecode/ConstantPool.java b/jode/jode/bytecode/ConstantPool.java index f2ff70d..884d986 100644 --- a/jode/jode/bytecode/ConstantPool.java +++ b/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 ;