Skip to content

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

Merged
trask merged 4 commits into
open-telemetry:mainfrom
jaydeluca:internal-class-loader-tests
Sep 29, 2023
Merged

Convert internal-class-loader tests from groovy to java#9560
trask merged 4 commits into
open-telemetry:mainfrom
jaydeluca:internal-class-loader-tests

Conversation

@jaydeluca

Copy link
Copy Markdown
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

@laurit laurit left a comment

Copy link
Copy Markdown
Contributor

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