Skip to content

VM warning: Sharing is only supported for boot loader classes #3111

@StefanMuellerCH

Description

@StefanMuellerCH

Hi

Since upgrading from Mockito 4 to 5.3 (which is the default by latest spring-boot now) we have lots of Warnings in all our builds and IDEs (test are running fine):

OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended

Reason for this warning is the InlineDelegateByteBuddyMockMaker, which currently patches the boot-classpath. Would it be possible to implement Mock-Maker without patching the boot-classpath?

I know that it's just warning, but we don't like warnings in the long run to prevent broken-window-effects.

Thank you guys so much for providing such a great tool.

Kind Regards,
Stefan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions