SHA256
1
0
forked from pool/byte-buddy

Compare commits

..

20 Commits

Author SHA256 Message Date
Ana Guerrero
325435014d Accepting request 1243236 from Java:packages
1.17.0

OBS-URL: https://build.opensuse.org/request/show/1243236
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/byte-buddy?expand=0&rev=13
2025-02-05 11:41:39 +00:00
Anton Shvetz
05647a53ea - Update to v1.17.0
* Changes of v1.17.0
    + Assure that implicit choice for class reader and class writer
      are always symmetric with regard to internal representation.
    + Retrofit MemberSubstitution to also allow for intercepting
      invokedynamic instructions.
    + Introduce @Handle annotations to allow for injecting constant
      pool-stored method handle in Advice, MemberSubstitution and
      MethodDelegation.
    + Introduce @DynamicConstant annotations to allow for injecting
      constant pool-stored dynamic constants in Advice,
      MemberSubstitution and MethodDelegation.

OBS-URL: https://build.opensuse.org/package/show/Java:packages/byte-buddy?expand=0&rev=48
2025-01-29 22:27:37 +00:00
Anton Shvetz
5db9be7dac - Update to v1.16.1
* Changes of v1.16.1
    + Correct reflective activation of Class File API.
    + Reject array descriptors that are not well-formed in
      TypePool.

OBS-URL: https://build.opensuse.org/package/show/Java:packages/byte-buddy?expand=0&rev=47
2025-01-19 10:08:34 +00:00
Anton Shvetz
e4d7ee444e - Update to v1.16.0
* Changes of v1.16.0
    + Allow for erasure of types of bootstrapped methods in Advice
      within instrumented class.
    + Rework Advice post-processing to allow for erasure of
      bootstrapped methods.
    + Fix missing application of hashCode/equals plugin for Java 8
      code.
    + Include support for JDK Class File API.
    + Allow Plugin.Engine to retain folders.
- Rebase/update patch:
  * 0001-Avoid-bundling-asm.patch

OBS-URL: https://build.opensuse.org/package/show/Java:packages/byte-buddy?expand=0&rev=46
2025-01-18 11:15:58 +00:00
Ana Guerrero
05f3683125 Accepting request 1238526 from Java:packages
1.15.11

OBS-URL: https://build.opensuse.org/request/show/1238526
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/byte-buddy?expand=0&rev=12
2025-01-17 17:43:56 +00:00
Anton Shvetz
a80e537090 - Update to v1.15.11
* Changes of v1.15.11
    + Avoid dependency of CachedReturnPlugin on precompiled class
      files.
    + Add NOP instruction when Advice is used on void methods as
      those might be empty which results on a frame being written
      to the same offset, causing an exception.
    + Allow Plugin.Enging to link files instead of copying.
    + Adjust validator code to avoid compiler bug that was reported
      by multiple users.
    + Allow injection of class path as File[] to Plugin
      constructors.
    + Allow for configuring variants when using the Android Gradle
      plugin.

OBS-URL: https://build.opensuse.org/package/show/Java:packages/byte-buddy?expand=0&rev=44
2024-12-15 12:27:13 +00:00
Ana Guerrero
1a98b45899 Accepting request 1220514 from Java:packages
1.15.10

OBS-URL: https://build.opensuse.org/request/show/1220514
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/byte-buddy?expand=0&rev=11
2024-11-04 21:42:21 +00:00
Anton Shvetz
5ad6a06f14 - Update to v1.15.10
* Changes of v1.15.10
    + Fix Java 8 patterns for multi-release jars to avoid that
      inner classes are excluded.
  * Changes of v1.15.9
    + Additional release after time out during previous Gradle
      plugin release.

OBS-URL: https://build.opensuse.org/package/show/Java:packages/byte-buddy?expand=0&rev=42
2024-11-03 23:46:58 +00:00
Dominique Leuenberger
b8af66bacc Accepting request 1220321 from Java:packages
1.15.8

OBS-URL: https://build.opensuse.org/request/show/1220321
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/byte-buddy?expand=0&rev=10
2024-11-03 06:17:45 +00:00
Anton Shvetz
b6a0af5ddd - Update to v1.15.8
* Changes of v1.15.8
    + Extend ClassInjector API to support lazy resolution of class
      files.
    + Extend DynamicType API to support lazy resolution of
      auxiliary types.
    + Extend AgentBuilder.Transformer.ForAdvice to support
      injection of new classes by their name.

OBS-URL: https://build.opensuse.org/package/show/Java:packages/byte-buddy?expand=0&rev=40
2024-11-02 15:55:12 +00:00
Dominique Leuenberger
8d473f2852 Accepting request 1219036 from Java:packages
1.15.7

OBS-URL: https://build.opensuse.org/request/show/1219036
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/byte-buddy?expand=0&rev=9
2024-10-30 16:34:00 +00:00
Anton Shvetz
fb2c647900 - Update to v1.15.7
* Changes of v1.15.7
    + Additional release after time out during previous Gradle
      plugin release.
  * Changes of v1.15.6
    + Add ConstructorResolver to Super annotation for
      MethodDelegation to allow for dynamic constructor resolution.
    + Add Java 8 versions of shaded ASM to allow for faster class
      file validation and CDS support.

OBS-URL: https://build.opensuse.org/package/show/Java:packages/byte-buddy?expand=0&rev=38
2024-10-23 10:59:23 +00:00
Anton Shvetz
8e2ca4d9ba - Update to v1.15.5
* Changes of v1.15.5
    + Publish Byte Buddy and Byte Buddy agent artifacts as
      multi-release jars to support CDS and faster validation.
- Remove Windows-specific resources
- Update to v1.15.4

OBS-URL: https://build.opensuse.org/package/show/Java:packages/byte-buddy?expand=0&rev=37
2024-10-17 10:43:45 +00:00
Dominique Leuenberger
1458a18892 Accepting request 1207518 from Java:packages
1.15.4

OBS-URL: https://build.opensuse.org/request/show/1207518
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/byte-buddy?expand=0&rev=8
2024-10-14 11:06:33 +00:00
Fridrich Strba
4aa91e2174 OBS-URL: https://build.opensuse.org/package/show/Java:packages/byte-buddy?expand=0&rev=35 2024-10-13 05:47:21 +00:00
Anton Shvetz
ed89996ce5 - Update to v1.15.3
* Add non-experimental support for Java 24.

OBS-URL: https://build.opensuse.org/package/show/Java:packages/byte-buddy?expand=0&rev=34
2024-10-12 02:11:56 +00:00
Ana Guerrero
1692472220 Accepting request 1204132 from Java:packages
1.15.3

OBS-URL: https://build.opensuse.org/request/show/1204132
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/byte-buddy?expand=0&rev=7
2024-09-27 15:11:51 +00:00
Anton Shvetz
071a02219f - Update to v1.15.3
* Changes of v1.15.3
    + Treat multi-release class files that are newer than the
      supported version as regular resources.
    + Allow overriding the multi-release class file version from
      Maven and Gradle plugin.
    + Correctly resolve multi-release class files in Android.

OBS-URL: https://build.opensuse.org/package/show/Java:packages/byte-buddy?expand=0&rev=32
2024-09-26 22:48:35 +00:00
Ana Guerrero
1731eaee1b Accepting request 1203778 from Java:packages
1.15.1

OBS-URL: https://build.opensuse.org/request/show/1203778
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/byte-buddy?expand=0&rev=6
2024-09-26 16:54:16 +00:00
Anton Shvetz
04cf25068a - Update to v1.15.2
* Changes of v1.15.2
    + Add support for multi-release JAR files in ClassFileLocators
      and Plugin.Engine.Default.
    + Add Gradle task for transforming multiple jar files with
      ByteBuddyJarsTask.
    + Avoid validation of JarFile when extracting individual
      entries.
    + Rework discovery in ByteBuddyMojo.

OBS-URL: https://build.opensuse.org/package/show/Java:packages/byte-buddy?expand=0&rev=30
2024-09-25 21:47:49 +00:00
5 changed files with 191 additions and 44 deletions

View File

@ -1,42 +1,34 @@
From 68366dbea6762d338aaefa6d80caaf5abb05555a Mon Sep 17 00:00:00 2001 diff -up byte-buddy-byte-buddy-1.16.0/byte-buddy/pom.xml.p0001 byte-buddy-byte-buddy-1.16.0/byte-buddy/pom.xml
From: Marian Koncek <mkoncek@redhat.com> --- byte-buddy-byte-buddy-1.16.0/byte-buddy/pom.xml.p0001 2025-01-18 02:22:59.454207769 +0300
Date: Thu, 23 Feb 2023 13:59:25 +0100 +++ byte-buddy-byte-buddy-1.16.0/byte-buddy/pom.xml 2025-01-18 13:55:24.459735957 +0300
Subject: [PATCH 1/2] Avoid bundling asm @@ -26,10 +26,6 @@
---
byte-buddy/pom.xml | 56 +++++++++-------------------------------------
1 file changed, 11 insertions(+), 45 deletions(-)
diff --git a/byte-buddy/pom.xml b/byte-buddy/pom.xml
index 3a2c52000b..5372965676 100644
--- a/byte-buddy/pom.xml
+++ b/byte-buddy/pom.xml
@@ -26,8 +26,6 @@
--> -->
<properties> <properties>
- <shade.source>org.objectweb.asm</shade.source> - <shade.asm.source>org.objectweb.asm</shade.asm.source>
- <shade.target>net.bytebuddy.jar.asm</shade.target> - <shade.asm.target>net.bytebuddy.jar.asm</shade.asm.target>
- <shade.asmjdkbridge.source>codes.rafael.asmjdkbridge</shade.asmjdkbridge.source>
- <shade.asmjdkbridge.target>net.bytebuddy.jar.asmjdkbridge</shade.asmjdkbridge.target>
<packages.list.external> <packages.list.external>
net.bytebuddy, net.bytebuddy,
net.bytebuddy.agent.builder, net.bytebuddy.agent.builder,
@@ -62,10 +60,7 @@ @@ -64,11 +60,7 @@
net.bytebuddy.utility, net.bytebuddy.utility,
net.bytebuddy.utility.nullability, net.bytebuddy.utility.nullability,
net.bytebuddy.utility.privilege, net.bytebuddy.utility.privilege,
- net.bytebuddy.utility.visitor, - net.bytebuddy.utility.visitor,
- ${shade.target}, - ${shade.asm.target},
- ${shade.target}.signature, - ${shade.asm.target}.signature,
- ${shade.target}.commons - ${shade.asm.target}.commons,
- ${shade.asmjdkbridge.target}
+ net.bytebuddy.utility.visitor + net.bytebuddy.utility.visitor
</packages.list.external> </packages.list.external>
<packages.list.internal> <packages.list.internal>
net.bytebuddy.utility.dispatcher net.bytebuddy.utility.dispatcher
@@ -83,6 +78,16 @@ @@ -87,6 +79,16 @@
<groupId>${project.groupId}</groupId>
<artifactId>byte-buddy-dep</artifactId> <artifactId>byte-buddy-dep</artifactId>
</dependency> </dependency>
+ <dependency> <dependency>
+ <groupId>org.ow2.asm</groupId> + <groupId>org.ow2.asm</groupId>
+ <artifactId>asm</artifactId> + <artifactId>asm</artifactId>
+ <version>${version.asm}</version> + <version>${version.asm}</version>
@ -46,17 +38,27 @@ index 3a2c52000b..5372965676 100644
+ <artifactId>asm-commons</artifactId> + <artifactId>asm-commons</artifactId>
+ <version>${version.asm}</version> + <version>${version.asm}</version>
+ </dependency> + </dependency>
<dependency> + <dependency>
<groupId>net.java.dev.jna</groupId> <groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId> <artifactId>jna</artifactId>
@@ -254,45 +259,6 @@ <version>${version.jna}</version>
@@ -257,64 +259,6 @@
<createDependencyReducedPom>true</createDependencyReducedPom> <createDependencyReducedPom>true</createDependencyReducedPom>
<createSourcesJar>${bytebuddy.extras}</createSourcesJar> <createSourcesJar>${bytebuddy.extras}</createSourcesJar>
<shadeSourcesContent>true</shadeSourcesContent> <shadeSourcesContent>true</shadeSourcesContent>
- <relocations> - <relocations>
- <relocation> - <relocation>
- <pattern>${shade.source}</pattern> - <pattern>${shade.asm.source}</pattern>
- <shadedPattern>${shade.target}</shadedPattern> - <shadedPattern>${shade.asm.target}</shadedPattern>
- </relocation>
- <relocation>
- <pattern>${shade.asmjdkbridge.source}</pattern>
- <shadedPattern>${shade.asmjdkbridge.target}</shadedPattern>
- </relocation>
- <relocation>
- <pattern>codes/rafael/asmjdkbridge</pattern>
- <shadedPattern>net/bytebuddy/jar/asmjdkbridge</shadedPattern>
- <rawString>true</rawString>
- </relocation> - </relocation>
- </relocations> - </relocations>
- <filters> - <filters>
@ -77,6 +79,16 @@ index 3a2c52000b..5372965676 100644
- </excludes> - </excludes>
- </filter> - </filter>
- <filter> - <filter>
- <artifact>codes.rafael.asmjdkbridge:*</artifact>
- <includes>
- <include>META-INF/versions/**</include>
- </includes>
- <excludes>
- <exclude>META-INF/MANIFEST.MF</exclude>
- <exclude>**/module-info.class</exclude>
- </excludes>
- </filter>
- <filter>
- <artifact>org.ow2.asm:asm-commons</artifact> - <artifact>org.ow2.asm:asm-commons</artifact>
- <includes> - <includes>
- <include>org/objectweb/asm/commons/AnnotationRemapper.**</include> - <include>org/objectweb/asm/commons/AnnotationRemapper.**</include>
@ -95,6 +107,3 @@ index 3a2c52000b..5372965676 100644
<transformers> <transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>net.bytebuddy.build.Plugin$Engine$Default</mainClass> <mainClass>net.bytebuddy.build.Plugin$Engine$Default</mainClass>
--
2.45.1

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:74129de1641d7d4090535b775ecb01bdd6fca4d44044f0844c875494fcfb6957
size 2042176

3
byte-buddy-1.17.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7ef19d9c4a465a2a6cd08a05a44e7db24be08602c949b6dc99c0dc2af5e79a3b
size 2082140

View File

@ -1,3 +1,137 @@
-------------------------------------------------------------------
Wed Jan 29 22:22:17 UTC 2025 - Anton Shvetz <shvetz.anton@gmail.com>
- Update to v1.17.0
* Changes of v1.17.0
+ Assure that implicit choice for class reader and class writer
are always symmetric with regard to internal representation.
+ Retrofit MemberSubstitution to also allow for intercepting
invokedynamic instructions.
+ Introduce @Handle annotations to allow for injecting constant
pool-stored method handle in Advice, MemberSubstitution and
MethodDelegation.
+ Introduce @DynamicConstant annotations to allow for injecting
constant pool-stored dynamic constants in Advice,
MemberSubstitution and MethodDelegation.
-------------------------------------------------------------------
Sun Jan 19 10:07:34 UTC 2025 - Anton Shvetz <shvetz.anton@gmail.com>
- Update to v1.16.1
* Changes of v1.16.1
+ Correct reflective activation of Class File API.
+ Reject array descriptors that are not well-formed in
TypePool.
-------------------------------------------------------------------
Sat Jan 18 10:59:07 UTC 2025 - Anton Shvetz <shvetz.anton@gmail.com>
- Update to v1.16.0
* Changes of v1.16.0
+ Allow for erasure of types of bootstrapped methods in Advice
within instrumented class.
+ Rework Advice post-processing to allow for erasure of
bootstrapped methods.
+ Fix missing application of hashCode/equals plugin for Java 8
code.
+ Include support for JDK Class File API.
+ Allow Plugin.Engine to retain folders.
- Rebase/update patch:
* 0001-Avoid-bundling-asm.patch
-------------------------------------------------------------------
Sun Dec 15 12:21:44 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
- Update to v1.15.11
* Changes of v1.15.11
+ Avoid dependency of CachedReturnPlugin on precompiled class
files.
+ Add NOP instruction when Advice is used on void methods as
those might be empty which results on a frame being written
to the same offset, causing an exception.
+ Allow Plugin.Enging to link files instead of copying.
+ Adjust validator code to avoid compiler bug that was reported
by multiple users.
+ Allow injection of class path as File[] to Plugin
constructors.
+ Allow for configuring variants when using the Android Gradle
plugin.
-------------------------------------------------------------------
Sun Nov 3 23:45:15 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
- Update to v1.15.10
* Changes of v1.15.10
+ Fix Java 8 patterns for multi-release jars to avoid that
inner classes are excluded.
* Changes of v1.15.9
+ Additional release after time out during previous Gradle
plugin release.
-------------------------------------------------------------------
Sat Nov 2 15:49:57 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
- Update to v1.15.8
* Changes of v1.15.8
+ Extend ClassInjector API to support lazy resolution of class
files.
+ Extend DynamicType API to support lazy resolution of
auxiliary types.
+ Extend AgentBuilder.Transformer.ForAdvice to support
injection of new classes by their name.
-------------------------------------------------------------------
Wed Oct 23 10:55:21 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
- Update to v1.15.7
* Changes of v1.15.7
+ Additional release after time out during previous Gradle
plugin release.
* Changes of v1.15.6
+ Add ConstructorResolver to Super annotation for
MethodDelegation to allow for dynamic constructor resolution.
+ Add Java 8 versions of shaded ASM to allow for faster class
file validation and CDS support.
-------------------------------------------------------------------
Thu Oct 17 10:23:16 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
- Update to v1.15.5
* Changes of v1.15.5
+ Publish Byte Buddy and Byte Buddy agent artifacts as
multi-release jars to support CDS and faster validation.
- Remove Windows-specific resources
-------------------------------------------------------------------
Sat Oct 12 00:15:26 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
- Update to v1.15.4
* Add non-experimental support for Java 24.
-------------------------------------------------------------------
Thu Sep 26 22:46:31 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
- Update to v1.15.3
* Changes of v1.15.3
+ Treat multi-release class files that are newer than the
supported version as regular resources.
+ Allow overriding the multi-release class file version from
Maven and Gradle plugin.
+ Correctly resolve multi-release class files in Android.
-------------------------------------------------------------------
Wed Sep 25 21:44:53 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
- Update to v1.15.2
* Changes of v1.15.2
+ Add support for multi-release JAR files in ClassFileLocators
and Plugin.Engine.Default.
+ Add Gradle task for transforming multiple jar files with
ByteBuddyJarsTask.
+ Avoid validation of JarFile when extracting individual
entries.
+ Rework discovery in ByteBuddyMojo.
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Sep 1 16:25:12 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com> Sun Sep 1 16:25:12 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package byte-buddy # spec file for package byte-buddy
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,7 +17,7 @@
Name: byte-buddy Name: byte-buddy
Version: 1.15.1 Version: 1.17.0
Release: 0 Release: 0
Summary: Runtime code generation for the Java virtual machine Summary: Runtime code generation for the Java virtual machine
License: Apache-2.0 License: Apache-2.0
@ -39,7 +39,7 @@ BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api) BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.eclipse.aether:aether-api) BuildRequires: mvn(org.eclipse.aether:aether-api)
BuildRequires: mvn(org.eclipse.aether:aether-util) BuildRequires: mvn(org.eclipse.aether:aether-util)
BuildRequires: mvn(org.ow2.asm:asm) >= 9.7 BuildRequires: mvn(org.ow2.asm:asm) >= 9.7.1
BuildRequires: mvn(org.ow2.asm:asm-commons) BuildRequires: mvn(org.ow2.asm:asm-commons)
BuildRequires: mvn(org.sonatype.plexus:plexus-build-api) BuildRequires: mvn(org.sonatype.plexus:plexus-build-api)
BuildArch: noarch BuildArch: noarch
@ -76,15 +76,18 @@ API documentation for %{name}.
%prep %prep
%setup -q -n %{name}-%{name}-%{version} %setup -q -n %{name}-%{name}-%{version}
%patch -P 0 -p1 %patch -P0 -p1
# Remove Windows-specific resources
rm -rf %{name}-agent/src/main/resources/win32-x86{,-64}
# Don't ship android or benchmark modules # Don't ship android or benchmark modules
%pom_disable_module byte-buddy-android %pom_disable_module %{name}-android
%pom_disable_module byte-buddy-android-test %pom_disable_module %{name}-android-test
%pom_disable_module byte-buddy-benchmark %pom_disable_module %{name}-benchmark
# Don't ship gradle plugin # Don't ship gradle plugin
%pom_disable_module byte-buddy-gradle-plugin %pom_disable_module %{name}-gradle-plugin
# Remove check plugins unneeded by RPM builds # Remove check plugins unneeded by RPM builds
%pom_remove_plugin :jacoco-maven-plugin %pom_remove_plugin :jacoco-maven-plugin
@ -97,16 +100,17 @@ API documentation for %{name}.
%pom_remove_plugin :nexus-staging-maven-plugin %pom_remove_plugin :nexus-staging-maven-plugin
# Avoid circular dependency # Avoid circular dependency
%pom_remove_plugin :byte-buddy-maven-plugin byte-buddy-dep %pom_remove_plugin :byte-buddy-maven-plugin %{name}-dep
# Not interested in shading sources (causes NPE on old versions of shade plugin) # Not interested in shading sources (causes NPE on old versions of shade plugin)
%pom_xpath_set "pom:createSourcesJar" "false" byte-buddy %pom_xpath_set pom:createSourcesJar false %{name}
# Drop build dep on findbugs annotations, used only by the above check plugins # Drop build dep on findbugs annotations, used only by the above check plugins
%pom_remove_dep -r :findbugs-annotations %pom_remove_dep -r :findbugs-annotations
%{java_remove_annotations} byte-buddy-agent byte-buddy-dep byte-buddy-maven-plugin -n SuppressFBWarnings %{java_remove_annotations} %{name}-{agent,dep,maven-plugin} -n SuppressFBWarnings
%pom_remove_dep org.ow2.asm:asm-deprecated %pom_remove_dep org.ow2.asm:asm-deprecated
%pom_remove_dep codes.rafael.asmjdkbridge:asm-jdk-bridge %{name}-dep
%pom_remove_plugin -r :maven-shade-plugin %pom_remove_plugin -r :maven-shade-plugin