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

Non-serializable fields in serializable classes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 9
    • None
    • core-libs
    • b32
    • generic
    • generic

    Backports

      Description

        There are various non-transient fields containing MethdHandles or Switchpoints that break serialization for persistent code caching. These fields are usually not initialized when storing persistent script classes. They should be defined as transient.

        Also, the new Parser.ParseState class is stored in a RecompilableScriptFunctionData field and should be serializable.

        Attachments

          Issue Links

            Activity

              People

                hannesw Hannes Wallnoefer
                hannesw Hannes Wallnoefer
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: