Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

diegomarquezp
Copy link
Contributor

@diegomarquezp diegomarquezp commented Jun 18, 2025

oracle/graal#11429 confirms a behavior problem when calling Object.class.newInstance(). This is a temporary workaround while the GraalVM team looks into this.

Since Types relies on Class.newInstance(), we add a concrete case for java.lang.Object.class to avoid the mysterious SerializationSupport$StubForAbstractClass that comes instead of Object in Graal 24 compiled images.

More context and investigation in tracking doc.

@diegomarquezp diegomarquezp requested a review from a team as a code owner June 18, 2025 19:52
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Jun 18, 2025
@diegomarquezp diegomarquezp changed the title fix: add NULL_OBJECT to util.Data to work around Graal 24 issue fix: add special handling for Object in Types.newInstance() Jun 19, 2025
mpeddada1
mpeddada1 previously approved these changes Jun 20, 2025
Copy link
Contributor

@mpeddada1 mpeddada1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we can also create a follow-up issue here to remove this when GraalVM fixes the issue on their end?

@diegomarquezp diegomarquezp added the automerge Merge the pull request once unit tests and other checks pass. label Jun 23, 2025
@gcf-merge-on-green gcf-merge-on-green bot merged commit a855eca into main Jun 23, 2025
24 of 25 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Jun 23, 2025
@gcf-merge-on-green gcf-merge-on-green bot deleted the graalvm-24-new-object-workaround branch June 23, 2025 17:16
svc-squareup-copybara pushed a commit to cashapp/misk that referenced this pull request Jun 24, 2025
| Package | Type | Package file | Manager | Update | Change |
|---|---|---|---|---|---|
|
[com.google.http-client:google-http-client-jackson2](https://github.com/googleapis/google-http-java-client)
| dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`1.47.0` -> `1.47.1` |
|
[com.google.http-client:google-http-client](https://github.com/googleapis/google-http-java-client)
| dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`1.47.0` -> `1.47.1` |
| [software.amazon.awssdk:sdk-core](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.31.68` -> `2.31.69` |
| [software.amazon.awssdk:sqs](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.31.68` -> `2.31.69` |
|
[software.amazon.awssdk:dynamodb-enhanced](https://aws.amazon.com/sdkforjava)
| dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.31.68` -> `2.31.69` |
| [software.amazon.awssdk:dynamodb](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.31.68` -> `2.31.69` |
| [software.amazon.awssdk:aws-core](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.31.68` -> `2.31.69` |
| [software.amazon.awssdk:bom](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.31.68` -> `2.31.69` |
| [software.amazon.awssdk:auth](https://aws.amazon.com/sdkforjava) |
dependencies | misk/gradle/libs.versions.toml | gradle | patch |
`2.31.68` -> `2.31.69` |

---

### Release Notes

<details>
<summary>googleapis/google-http-java-client
(com.google.http-client:google-http-client-jackson2)</summary>

###
[`v1.47.1`](https://github.com/googleapis/google-http-java-client/blob/HEAD/CHANGELOG.md#1471-2025-06-23)

##### Bug Fixes

- Add special handling for `Object` in `Types.newInstance()`
([#&#8203;2102](googleapis/google-http-java-client#2102))
([a855eca](googleapis/google-http-java-client@a855eca))

</details>

---

### Configuration

πŸ“… **Schedule**: Branch creation - "after 6pm every weekday,before 2am
every weekday" in timezone Australia/Melbourne, Automerge - At any time
(no schedule defined).

🚦 **Automerge**: Enabled.

β™» **Rebasing**: Never, or you tick the rebase/retry checkbox.

πŸ‘» **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

GitOrigin-RevId: 6617ddfb3a7b11f7bdc6cdfbff92476285f94d0e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants