Title: Improves MessageBuffer support for Java 11 by ppkarwasz · Pull Request #514 · msgpack/msgpack-java · GitHub
Open Graph Title: Improves MessageBuffer support for Java 11 by ppkarwasz · Pull Request #514 · msgpack/msgpack-java
X Title: Improves MessageBuffer support for Java 11 by ppkarwasz · Pull Request #514 · msgpack/msgpack-java
Description: Switches the MessageBuffer implementation to MessageBufferU for Java versions at least 9, which solves a couple of problems: On Java 11 (OpenJDK) jdk.internal.ref.Cleaner#clean is not open to reflection and the static initializer of DirectBufferAccess throws an IllegalAccessException. Access to java.nio.DirectByteBuffer may suffer the same problem in the future. For now we just get a warning. Since MessageBufferU overrides almost all methods of MessageBuffer, while direct ByteBuffers register a cleaner by themself, I don't see why MessageBufferU(ByteBuffer) shouldn't accept direct buffers. This should also solve bug number #482.
Open Graph Description: Switches the MessageBuffer implementation to MessageBufferU for Java versions at least 9, which solves a couple of problems: On Java 11 (OpenJDK) jdk.internal.ref.Cleaner#clean is not open to ref...
X Description: Switches the MessageBuffer implementation to MessageBufferU for Java versions at least 9, which solves a couple of problems: On Java 11 (OpenJDK) jdk.internal.ref.Cleaner#clean is not open to ref...
Opengraph URL: https://github.com/msgpack/msgpack-java/pull/514
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9d7f5602-3293-6ce9-4a81-b0762ea3f346 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DD58:2F3AB6:1C911B9:253241D:6A5C7D58 |
| html-safe-nonce | f4c97a1f87449cada05f0948cc38b57a94b489cb2c17b08826ac6b5efd225ac8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDU4OjJGM0FCNjoxQzkxMUI5OjI1MzI0MUQ6NkE1QzdENTgiLCJ2aXNpdG9yX2lkIjoiMzE1NzQ0Nzc5NTAwOTE1ODQ4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0d641880b640896d80775671dbb7b95f07369761dee39da7b1cdaed8de9a889b |
| hovercard-subject-tag | pull_request:317453413 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/msgpack/msgpack-java/pull/514/files |
| twitter:image | https://avatars.githubusercontent.com/u/12533274?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/12533274?s=400&v=4 |
| og:image:alt | Switches the MessageBuffer implementation to MessageBufferU for Java versions at least 9, which solves a couple of problems: On Java 11 (OpenJDK) jdk.internal.ref.Cleaner#clean is not open to ref... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/msgpack/msgpack-java git https://github.com/msgpack/msgpack-java.git |
| octolytics-dimension-user_id | 198264 |
| octolytics-dimension-user_login | msgpack |
| octolytics-dimension-repository_id | 1971346 |
| octolytics-dimension-repository_nwo | msgpack/msgpack-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1971346 |
| octolytics-dimension-repository_network_root_nwo | msgpack/msgpack-java |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width