Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8201793

(ref) Reference object should not support cloning

    XMLWordPrintable

Details

    • b13

    Backports

      Description

        Reference objects cannot be meaningfully cloned. For example when cloning a WeakReference object that is pending for enqueuing, what state should the cloned reference object be? Should the referent of the newly cloned reference be considered as a strongly reference?

        A new Reference object can be created via its constructor and a newly reference object has no relationship with any existing reference objects with the same referent.

        This proposes not to support cloning of Reference object.

        Attachments

          Issue Links

            There are no Sub-Tasks for this issue.

            Activity

              People

                mchung Mandy Chung
                mchung Mandy Chung
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: