Skip to content

JDK 24 support and Mockito #2460

@diegomarquezp

Description

@diegomarquezp

Seeing a PublisherImplTest.testShutDown:1035 » IllegalArgument Could not create type error that seems related to this dependency update as the referenced line is related to mocking the Publisher.

@michaelpri10 Easymock 5.6.0 actually has the fix for this very error (updating byte-buddy) - see easymock/easymock#673

However this transitive byte-buddy version was not picked up because mockito is declared before easymock in google-cloud-pubsub/pom.xml.

Flipping the order of these two dependencies did the trick.

Edit: this solution is not ideal. Let's look into upgrading mockito as well, in case it brings a later version of byte-buddy.

Originally posted by @diegomarquezp in #2069 (comment)

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the googleapis/java-pubsub API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions