Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!doctype html>
<!--
Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2013, 2026, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.

This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -65,6 +65,10 @@ <h1 id="ValueBased">{@index "Value-based Classes"}</h1>
because the programmer cannot guarantee exclusive ownership of the
associated monitor.</p>

<p>Use of instances of value-based classes as referents in {@linkplain
java.lang.ref.Reference reference objects} is strongly discouraged,
because these instances do not have reliable identity.</p>

<p>Identity-related behavior of value-based classes may change in a future release.
For example, synchronization may fail.</p>
Comment on lines 72 to 73

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would have expanded this part as well:

For example, synchronization may fail, or use as a referent object may throw an exception.

but it isn't critical.


Expand Down