Skip to content

build: bump version.byte-buddy from 1.15.11 to 1.16.1#3946

Closed
dependabot[bot] wants to merge 2 commits intomainfrom
dependabot/maven/version.byte-buddy-1.16.1
Closed

build: bump version.byte-buddy from 1.15.11 to 1.16.1#3946
dependabot[bot] wants to merge 2 commits intomainfrom
dependabot/maven/version.byte-buddy-1.16.1

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 20, 2025

Bumps version.byte-buddy from 1.15.11 to 1.16.1.
Updates net.bytebuddy:byte-buddy from 1.15.11 to 1.16.1

Release notes

Sourced from net.bytebuddy:byte-buddy's releases.

Byte Buddy 1.16.1

  • Correct reflective activation of Class File API.
  • Reject array descriptors that are not well-formed in TypePool.

Byte Buddy 1.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.
Changelog

Sourced from net.bytebuddy:byte-buddy's changelog.

19. January 2025: version 1.16.1

  • Correct reflective activation of Class File API.
  • Reject array descriptors that are not well-formed in TypePool.

17. January 2025: version 1.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.
Commits
  • a38dac3 [maven-release-plugin] prepare release byte-buddy-1.16.1
  • 0ba0e55 [Release] Release new version.
  • 4fb2f5b [release] Release new version
  • 3d6bb2d Extend release notes.
  • 425bd7d [release] Release new version
  • 481f2d8 Undo internal update.
  • 0ee5790 Add explicit check for well-formed array descriptor.
  • 5904a74 Update internal Byte Buddy.
  • dd9178c [release] Release new version
  • 5f94c17 Fix use of ASM class reader and writer.
  • Additional commits viewable in compare view

Updates net.bytebuddy:byte-buddy-agent from 1.9.16 to 1.16.1

Release notes

Sourced from net.bytebuddy:byte-buddy-agent's releases.

Byte Buddy 1.16.1

  • Correct reflective activation of Class File API.
  • Reject array descriptors that are not well-formed in TypePool.

Byte Buddy 1.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.

Byte Buddy 1.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.Engine 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.

Byte Buddy 1.15.10

  • Fix Java 8 patterns for multi-release jars to avoid that inner classes are excluded.

Byte Buddy 1.15.9

  • Additional release after time out during previous Gradle plugin release.

Byte Buddy 1.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.

Byte Buddy 1.15.7

  • Additional release after time out during previous Gradle plugin release.

Byte Buddy 1.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.

Byte Buddy 1.15.5

  • Publish Byte Buddy and Byte Buddy agent artifacts as multi-release jars to support CDS and faster validation.

Byte Buddy 1.15.4

  • Add non-experimental support for Java 24.

Byte Buddy 1.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.

Byte Buddy 1.15.2

  • Add support for multi-release JAR files in ClassFileLocators and Plugin.Engine.Default.

... (truncated)

Changelog

Sourced from net.bytebuddy:byte-buddy-agent's changelog.

19. January 2025: version 1.16.1

  • Correct reflective activation of Class File API.
  • Reject array descriptors that are not well-formed in TypePool.

17. January 2025: version 1.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.

15. December 2024: version 1.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.Engine 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.

4. November 2024: version 1.15.10

  • Fix Java 8 patterns for multi-release jars to avoid that inner classes are excluded.

3. November 2024: version 1.15.9

  • Additional release after time out during previous Gradle plugin release.

1. November 2024: version 1.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.

23. October 2024: version 1.15.7

  • Additional release after time out during previous Gradle plugin release.

21. October 2024: version 1.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.

17. October 2024: version 1.15.5

  • Publish Byte Buddy and Byte Buddy agent artifacts as multi-release jars to support CDS and faster validation.

9. October 2024: version 1.15.4

... (truncated)

Commits
  • a38dac3 [maven-release-plugin] prepare release byte-buddy-1.16.1
  • 0ba0e55 [Release] Release new version.
  • 4fb2f5b [release] Release new version
  • 3d6bb2d Extend release notes.
  • 425bd7d [release] Release new version
  • 481f2d8 Undo internal update.
  • 0ee5790 Add explicit check for well-formed array descriptor.
  • 5904a74 Update internal Byte Buddy.
  • dd9178c [release] Release new version
  • 5f94c17 Fix use of ASM class reader and writer.
  • Additional commits viewable in compare view

Updates net.bytebuddy:byte-buddy-dep from 1.15.11 to 1.16.1

Release notes

Sourced from net.bytebuddy:byte-buddy-dep's releases.

Byte Buddy 1.16.1

  • Correct reflective activation of Class File API.
  • Reject array descriptors that are not well-formed in TypePool.

Byte Buddy 1.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.
Changelog

Sourced from net.bytebuddy:byte-buddy-dep's changelog.

19. January 2025: version 1.16.1

  • Correct reflective activation of Class File API.
  • Reject array descriptors that are not well-formed in TypePool.

17. January 2025: version 1.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.
Commits
  • a38dac3 [maven-release-plugin] prepare release byte-buddy-1.16.1
  • 0ba0e55 [Release] Release new version.
  • 4fb2f5b [release] Release new version
  • 3d6bb2d Extend release notes.
  • 425bd7d [release] Release new version
  • 481f2d8 Undo internal update.
  • 0ee5790 Add explicit check for well-formed array descriptor.
  • 5904a74 Update internal Byte Buddy.
  • dd9178c [release] Release new version
  • 5f94c17 Fix use of ASM class reader and writer.
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps `version.byte-buddy` from 1.15.11 to 1.16.1.

Updates `net.bytebuddy:byte-buddy` from 1.15.11 to 1.16.1
- [Release notes](https://github.com/raphw/byte-buddy/releases)
- [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
- [Commits](raphw/byte-buddy@byte-buddy-1.15.11...byte-buddy-1.16.1)

Updates `net.bytebuddy:byte-buddy-agent` from 1.9.16 to 1.16.1
- [Release notes](https://github.com/raphw/byte-buddy/releases)
- [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
- [Commits](raphw/byte-buddy@byte-buddy-1.9.16...byte-buddy-1.16.1)

Updates `net.bytebuddy:byte-buddy-dep` from 1.15.11 to 1.16.1
- [Release notes](https://github.com/raphw/byte-buddy/releases)
- [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md)
- [Commits](raphw/byte-buddy@byte-buddy-1.15.11...byte-buddy-1.16.1)

---
updated-dependencies:
- dependency-name: net.bytebuddy:byte-buddy
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: net.bytebuddy:byte-buddy-agent
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: net.bytebuddy:byte-buddy-dep
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Jan 20, 2025
@dependabot dependabot bot requested a review from a team January 20, 2025 17:46
@JonasKunz
Copy link
Contributor

This PR currently fails because this bytebuddy version now comes with support for the new ClassFile-API. These classes are compiled for Java 24 (Classfile Version 68) and packaged as Multi-Release-Jar. However, unfortunately the shade plugin seems to come with a too old ASM version, which doesn't support this Classfile version yet:

Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.3.0:shade (default) on project apm-agent-builds: Error creating shaded jar: Problem shading JAR /home/runner/.m2/repository/codes/rafael/asmjdkbridge/asm-jdk-bridge/0.0.2/asm-jdk-bridge-0.0.2.jar entry META-INF/versions/24/codes/rafael/asmjdkbridge/JdkClassReader.class: java.lang.IllegalArgumentException: Unsupported class file major version 68 -> [Help 1]

I tried upgrading the maven-shade plugin to the latest version (3.6.0), but that one was released in May 24 and also doesn't support Java 24 classes yet.

Imo it is best to wait with this version bump until the next shade plugin version is released, which hopefully should come with Java 24 support. We can revisit if we see the need for a more urgent bytebuddy upgrade and possibly tinker then with the shade configuration instead.

@SylvainJuge
Copy link
Member

Imo it is best to wait with this version bump until the next shade plugin version is released, which hopefully should come with Java 24 support. We can revisit if we see the need for a more urgent bytebuddy upgrade and possibly tinker then with the shade configuration instead.

I agree, is there an issue already opened we could subscribe to on the shade plugin to keep an eye on it ?

@JonasKunz
Copy link
Contributor

There is this kind of old bump-PR moving to ASM 9.7.1, which includes the classfile version 68 constant. However, even if that is merged it doesn't mean it is soon released. I'd just leave this PR with the "blocked" label around as reminder to ocassionally check for a new release.

@SylvainJuge
Copy link
Member

This is now fixed with the #3967 PR that I just merged, by forcing the ASM version dependency in the shade plugin we can get it working for Java 24 bytecode.

@SylvainJuge SylvainJuge closed this Feb 4, 2025
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Feb 4, 2025

OK, I won't notify you again about this release, but will get in touch when a new version is available. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/maven/version.byte-buddy-1.16.1 branch February 4, 2025 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-java blocked dependencies Pull requests that update a dependency file java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants