Title: JDK 24 support and Mockito · Issue #2460 · googleapis/java-pubsub · GitHub
Open Graph Title: JDK 24 support and Mockito · Issue #2460 · googleapis/java-pubsub
X Title: JDK 24 support and Mockito · Issue #2460 · googleapis/java-pubsub
Description: 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...
Open Graph Description: 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. @...
X Description: 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. @...
Opengraph URL: https://github.com/googleapis/java-pubsub/issues/2460
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JDK 24 support and Mockito","articleBody":"\u003e Seeing a `PublisherImplTest.testShutDown:1035 » IllegalArgument Could not create type` error that seems related to this dependency update as the [referenced line](https://github.com/googleapis/java-pubsub/blob/11ccef38a5c006b3810cff03d4030bfebbff66ea/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java#L1035) is related to mocking the Publisher.\r\n\r\n@michaelpri10 Easymock 5.6.0 actually has the fix for this very error (updating byte-buddy) - see https://github.com/easymock/easymock/issues/673\r\n\r\nHowever this transitive byte-buddy version was not picked up because `mockito` is declared _before_ `easymock` in `google-cloud-pubsub/pom.xml`.\r\n\r\nFlipping the order of these two dependencies did the trick.\r\n\r\nEdit: this solution is not ideal. Let's look into upgrading mockito as well, in case it brings a later version of byte-buddy.\r\n\r\n_Originally posted by @diegomarquezp in https://github.com/googleapis/java-pubsub/issues/2069#issuecomment-2963891932_\r\n ","author":{"url":"https://github.com/diegomarquezp","@type":"Person","name":"diegomarquezp"},"datePublished":"2025-06-17T18:30:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2460/java-pubsub/issues/2460"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9eae23db-83f4-db43-08ba-eed99720f169 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9DC0:226374:B6656D:EC39BC:699086F7 |
| html-safe-nonce | 436a1479b38f4072e2370af89eb3235c06ee4d22c6f24140a8f25ea71b9e2789 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REMwOjIyNjM3NDpCNjY1NkQ6RUMzOUJDOjY5OTA4NkY3IiwidmlzaXRvcl9pZCI6Ijg0MDA4Mzc5NDY5MTYyNDMxOTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bb014229db1bf1e8350f75d52a1273245a7e004de0c654d237373c0f8820e0c4 |
| hovercard-subject-tag | issue:3154402710 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/java-pubsub/2460/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7b14c203db591ab5a0e2a9c920a190f136835f62dd9be328e033d22810e2bcb0/googleapis/java-pubsub/issues/2460 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7b14c203db591ab5a0e2a9c920a190f136835f62dd9be328e033d22810e2bcb0/googleapis/java-pubsub/issues/2460 |
| og:image:alt | 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. @... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | diegomarquezp |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/java-pubsub git https://github.com/googleapis/java-pubsub.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 203461480 |
| octolytics-dimension-repository_nwo | googleapis/java-pubsub |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 203461480 |
| octolytics-dimension-repository_network_root_nwo | googleapis/java-pubsub |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width