From 352f0929c43bbe118edc21e24c6bed997a2e780d01d01ed758eac62d8f7f0606 Mon Sep 17 00:00:00 2001 From: Gus Kenion Date: Wed, 27 Dec 2023 09:26:30 +0000 Subject: [PATCH] Accepting request 1134732 from home:urbic:branches:Java:packages - Update to version 6.8.0 * 6.8.0 (2023-12-08) Maintenance and bug fix release. + New features: ~ Add and use InvalidMethodSignatureException extending ClassFormatException. ~ Increase code coverage in Class2HTMLTestCase with new test input Java4Example #186. ~ Add verifier tests on some opcodes #180. ~ Added signature test cases for class/method, and bad signatures #182. ~ Add Const.MAJOR_20. ~ Add Const.MINOR_20. ~ Add Const.MAJOR_21. ~ Add Const.MINOR_21. ~ [Bcelifier] stackmap support to pass JDK verifier #177. ~ Fix SpotBugs [ERROR] Class org.apache.bcel.util.ClassVector defines non-transient non-serializable instance field vec [org.apache.bcel.util.ClassVector] In ClassVector.java SE_BAD_FIELD. ~ Fix SpotBugs [ERROR] Switch statement found in org.apache.bcel.util.BCELFactory.visitAllocationInstruction(AllocationInstruction) where one case falls through to the next case [org.apache.bcel.util.BCELFactory, org.apache.bcel.util.BCELFactory] At BCELFactory.java:[lines 188-191]Another occurrence at BCELFactory.java:[lines 192-196] SF_SWITCH_FALLTHROUGH. + Fixed bugs: ~ When parsing an class with an invalid constant reference, ensure ClassParser.parse() throws ClassFormatException, not NullPointerException. ~ Ensure that references to a constant pool entry with index zero trigger a ClassFormatException, not a NullPointerException. ~ Ensure that references to the unused constant pool entry after a long/double entry triggers a ClassFormatException, not a NullPointerException. ~ Test and coverage of InstructionFactory #190. ~ Verifier: test and coverage for SWAP instruction #188. ~ Exception parsing Kotlin class with 'fun `method name with () in it`()' #205. ~ Fix null pointers in AnnotationEntry #213. ~ Field not found, search field in both super class and implemented interfaces (5x duplicated code to find field by name and type is refactored to a new method and now supports package-private) #181. ~ BCEL-366: Use alternative name for broken classes under test #220. ~ BCEL-367: Fixes java.lang.IndexOutOfBoundsException for ATHROW on empty stack #223. ~ BCEL-368: Fixes java.lang.StackOverflowError in Select#toString(boolean) #229. ~ Fix for type.getType(...) use on non-signature type names #221. ~ Fix EmptyVisitorTestCase on Java 21. + Changes: ~ Bump commons-parent from 54 to 65 #189, #198, #222. ~ Bump jna.version from 5.12.1 to 5.13.0 #203. ~ Bump kotlin-stdlib from 1.8.10 to 1.9.21 #217, #219, #227, #231, #235, #245, #247. ~ Bump commons-io from 2.11.0 to 2.15.1. ~ Bump commons-lang3 from 3.12.0 to 3.14.0. ~ Bump org.codehaus.mojo:exec-maven-plugin from 3.1.0 to 3.1.1 #246. OBS-URL: https://build.opensuse.org/request/show/1134732 OBS-URL: https://build.opensuse.org/package/show/Java:packages/bcel?expand=0&rev=53 --- bcel-6.7.0-src.tar.gz | 3 -- bcel-6.8.0-src.tar.gz | 3 ++ bcel-build.xml | 4 +-- bcel.changes | 67 +++++++++++++++++++++++++++++++++++++++++++ bcel.spec | 2 +- 5 files changed, 73 insertions(+), 6 deletions(-) delete mode 100644 bcel-6.7.0-src.tar.gz create mode 100644 bcel-6.8.0-src.tar.gz diff --git a/bcel-6.7.0-src.tar.gz b/bcel-6.7.0-src.tar.gz deleted file mode 100644 index b87f680..0000000 --- a/bcel-6.7.0-src.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dbaa634f3fc39d90779d2fc3ad686fe494909ff305326c7d073f9f7cce9588ca -size 1053400 diff --git a/bcel-6.8.0-src.tar.gz b/bcel-6.8.0-src.tar.gz new file mode 100644 index 0000000..c5da313 --- /dev/null +++ b/bcel-6.8.0-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0adccf6b6709c43e2b2ca6265882fa817549bfdc7cb60f9bedd62c6e735d200c +size 1064680 diff --git a/bcel-build.xml b/bcel-build.xml index bac3349..20c705d 100644 --- a/bcel-build.xml +++ b/bcel-build.xml @@ -10,8 +10,8 @@ - - + + diff --git a/bcel.changes b/bcel.changes index a8d9583..d8a05ee 100644 --- a/bcel.changes +++ b/bcel.changes @@ -1,3 +1,70 @@ +------------------------------------------------------------------- +Sat Dec 23 11:24:26 UTC 2023 - Anton Shvetz + +- Update to version 6.8.0 + * 6.8.0 (2023-12-08) Maintenance and bug fix release. + + New features: + ~ Add and use InvalidMethodSignatureException extending + ClassFormatException. + ~ Increase code coverage in Class2HTMLTestCase with new test + input Java4Example #186. + ~ Add verifier tests on some opcodes #180. + ~ Added signature test cases for class/method, and bad + signatures #182. + ~ Add Const.MAJOR_20. + ~ Add Const.MINOR_20. + ~ Add Const.MAJOR_21. + ~ Add Const.MINOR_21. + ~ [Bcelifier] stackmap support to pass JDK verifier #177. + ~ Fix SpotBugs [ERROR] Class org.apache.bcel.util.ClassVector + defines non-transient non-serializable instance field vec + [org.apache.bcel.util.ClassVector] In ClassVector.java + SE_BAD_FIELD. + ~ Fix SpotBugs [ERROR] Switch statement found in + org.apache.bcel.util.BCELFactory.visitAllocationInstruction(AllocationInstruction) + where one case falls through to the next case + [org.apache.bcel.util.BCELFactory, + org.apache.bcel.util.BCELFactory] At + BCELFactory.java:[lines 188-191]Another occurrence at + BCELFactory.java:[lines 192-196] SF_SWITCH_FALLTHROUGH. + + Fixed bugs: + ~ When parsing an class with an invalid constant reference, + ensure ClassParser.parse() throws ClassFormatException, not + NullPointerException. + ~ Ensure that references to a constant pool entry with index + zero trigger a ClassFormatException, not a + NullPointerException. + ~ Ensure that references to the unused constant pool entry + after a long/double entry triggers a ClassFormatException, + not a NullPointerException. + ~ Test and coverage of InstructionFactory #190. + ~ Verifier: test and coverage for SWAP instruction #188. + ~ Exception parsing Kotlin class with 'fun `method name with + () in it`()' #205. + ~ Fix null pointers in AnnotationEntry #213. + ~ Field not found, search field in both super class and + implemented interfaces (5x duplicated code to find field by + name and type is refactored to a new method and now + supports package-private) #181. + ~ BCEL-366: Use alternative name for broken classes under + test #220. + ~ BCEL-367: Fixes java.lang.IndexOutOfBoundsException for + ATHROW on empty stack #223. + ~ BCEL-368: Fixes java.lang.StackOverflowError in + Select#toString(boolean) #229. + ~ Fix for type.getType(...) use on non-signature type names + #221. + ~ Fix EmptyVisitorTestCase on Java 21. + + Changes: + ~ Bump commons-parent from 54 to 65 #189, #198, #222. + ~ Bump jna.version from 5.12.1 to 5.13.0 #203. + ~ Bump kotlin-stdlib from 1.8.10 to 1.9.21 #217, #219, #227, + #231, #235, #245, #247. + ~ Bump commons-io from 2.11.0 to 2.15.1. + ~ Bump commons-lang3 from 3.12.0 to 3.14.0. + ~ Bump org.codehaus.mojo:exec-maven-plugin from 3.1.0 to + 3.1.1 #246. + ------------------------------------------------------------------- Thu Aug 31 08:38:22 UTC 2023 - Fridrich Strba diff --git a/bcel.spec b/bcel.spec index 1b98ad6..1c666e5 100644 --- a/bcel.spec +++ b/bcel.spec @@ -17,7 +17,7 @@ Name: bcel -Version: 6.7.0 +Version: 6.8.0 Release: 0 Summary: Byte Code Engineering Library License: Apache-2.0