Repository navigation
Ignore JVM array descriptors when packaging HiveMQ extensions - #11928
Closed
sci-jvm-study wants to merge 1 commit into
Closed
sci-jvm-study wants to merge 1 commit into
sci-jvm-study wants to merge 1 commit into
Conversation
kiview
added a commit
that referenced
this pull request
Nov 15, 2026
HiveMQExtension only skipped object array descriptors ("[L") from the Javassist constant pool. Primitive and multi-dimensional array descriptors such as "[B" were passed to JavaArchive.addClass and failed with a PatternSyntaxException. Skip every array descriptor instead, and add a regression test.
Takes over #11928.
Fixes #10074
Co-authored-by: Dhawaj Kumar Tomar <dhawaj@tritv65.com>
Member
|
Thanks @sci-jvm-study, I took this into #12168, since CI was hanging here, but kept your commit and authorship. |
Author
Thanks @kiview for taking care of this. Happy to contribute more to the project. Looking forward to working on more issues. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes #10074.
'HiveMQExtension' currently ignores only object array descriptors ('[L') when collecting classes from Javassist's constant pool.
However, 'ConstPool#getClassNames()' may also return primitive array descriptors such as '[B'. These are JVM descriptors rather than fully qualified class names, so passing them to 'JavaArchive.addClass(String)' results in a 'PatternSyntaxException'.
This change ignores all JVM array descriptors by checking for '[' instead of only '[L'.
Changes
Testing