diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/javassist/bytecode/ConstPool.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/javassist/bytecode/ConstPool.java b/src/main/javassist/bytecode/ConstPool.java index b5113e42..e8434dce 100644 --- a/src/main/javassist/bytecode/ConstPool.java +++ b/src/main/javassist/bytecode/ConstPool.java @@ -1433,7 +1433,7 @@ public final class ConstPool */ public void write(DataOutputStream out) throws IOException { - if (numOfItems < 0 || Short.MAX_VALUE < numOfItems) + if (numOfItems < 0 || ((1 << 16) - 1) < numOfItems) throw new IOException("too many constant pool items " + numOfItems); out.writeShort(numOfItems); |