Skip to content

Conversation

@mcculls
Copy link
Collaborator

@mcculls mcculls commented Dec 29, 2025

What Does This Do

There's no simple equivalent to findLoadedClass when loading boot classes. Instead, if we get a failure when defining a boot class then we fall back to Class.forName to check if it already exists. If the Class.forName check fails then we return the original error, which describes why the initial attempt to define the boot class failed.

Motivation

Makes the class-inject API easier to use when defining boot classes which might have already been defined.

Contributor Checklist

Jira ticket: [PROJ-IDENT]

@mcculls mcculls requested a review from a team as a code owner December 29, 2025 00:58
@mcculls mcculls added the enhancement New feature or request label Dec 29, 2025
@mcculls mcculls merged commit 85ec17a into main Dec 30, 2025
8 checks passed
@mcculls mcculls deleted the mcculls/boot-injection-recovery branch December 30, 2025 10:55
@github-actions github-actions bot added this to the 0.1.0 milestone Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants