Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve muzzle check for constructors #4591

Conversation

mateuszrzeszutek
Copy link
Member

Muzzle should fail if our helper class references a library base class constructor that's absent on the classpath. For example imagine that muzzle codegen has captured references to the following class hierarchy: Helper extends LibraryBaseClass extends Object, all with default no-arg constructors. Now, if the actual LibraryBaseClass on the application classpath had a constructor that requires a long the muzzle check would still pass - because it would find the default constructor in the Object class. This PR fixes muzzle so that it recognizes this situation.

Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@mateuszrzeszutek mateuszrzeszutek merged commit 59c1ce1 into open-telemetry:main Nov 5, 2021
@mateuszrzeszutek mateuszrzeszutek deleted the muzzle-constructor-improvement branch November 5, 2021 07:40
RashmiRam pushed a commit to RashmiRam/opentelemetry-auto-instr-java that referenced this pull request May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants