Skip to content

Convert internal-class-loader tests from groovy to java #9560

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

Merged
merged 4 commits into from
Sep 29, 2023

Conversation

jaydeluca
Copy link
Member

Related to #7195

Note:

  • In OSGIClassloadingTest the groovy test invoked a loadClass(String, Boolean) that is not accessible in java, therefore I omitted it, but if there is another way I should approach it, please let me know and I can revisit.

@jaydeluca jaydeluca requested a review from a team September 26, 2023 12:52
Copy link
Contributor

@laurit laurit left a comment

Choose a reason for hiding this comment

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

In OSGIClassloadingTest the groovy test invoked a loadClass(String, Boolean) that is not accessible in java, therefore I omitted it, but if there is another way I should approach it, please let me know and I can revisit.

You could test the 2 arg loadClass variant in ClassLoadingTest. The test class loader there extends URLClassLoader which has a public 2 arg loadClass.

@trask trask merged commit e69d1c2 into open-telemetry:main Sep 29, 2023
@jaydeluca jaydeluca deleted the internal-class-loader-tests branch October 11, 2023 10:50
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.

3 participants