This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-bcel.git
from b23da0ef Exception message in Args.requireU2() refers to the wrong
upper range value
new 177bbacb Code.Code(int, int, DataInput, ConstantPool) now throws a
ClassFormatException if the code array is greater than the JVM specification
allows
new f3fb875e Code.Code(int, int, int, int, byte[], CodeException[],
Attribute[], ConstantPool) now throws a ClassFormatException if the code array
is greater than the JVM specification allows
new b576aa05 Code.setCode(byte[]) now throws a ClassFormatException if the
code array is greater than the JVM specification allows.
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/changes/changes.xml | 3 ++
src/main/java/org/apache/bcel/classfile/Code.java | 42 ++++++++++++---------
src/main/java/org/apache/bcel/util/Args.java | 19 +++++++++-
src/test/java/org/apache/bcel/ConstTest.java | 8 ++++
...CodeExceptionTest.java => ClassParserTest.java} | 17 +++++----
.../apache/bcel/classfile/CodeExceptionTest.java | 14 +------
.../classfile/{StackMapTest.java => CodeTest.java} | 17 ++++-----
.../org/apache/bcel/classfile/ConstantTest.java | 1 +
.../apache/commons/bcel/classfile/CodeCtor.class | Bin 0 -> 86 bytes
9 files changed, 73 insertions(+), 48 deletions(-)
copy src/test/java/org/apache/bcel/classfile/{CodeExceptionTest.java =>
ClassParserTest.java} (74%)
copy src/test/java/org/apache/bcel/classfile/{StackMapTest.java =>
CodeTest.java} (67%)
create mode 100644
src/test/resources/org/apache/commons/bcel/classfile/CodeCtor.class