« * K @bellsoft.bsky.social

BellSoft @bellsoft.bsky.social

2026-10-29 13:40 UTC

What happens when a value object reaches `synchronized` through an `Object` reference? With JDK 28 preview enabled, only identity objects have monitors. If the reference points to a value object, monitor acquisition throws `IdentityException`. Use a separate identity object when you need a lock.

1 picture (not shown on this phone)

1 likes, 0 reposts, 0 replies

3 Next post4 More from @bellsoft.bsky.socialBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup