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

Non-serializable fields in serializable classes

XMLWordPrintable

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

        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.

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

                Created:
                Updated:
                Resolved: