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

Serializable implementations should be provided for ConstantDescs.

    XMLWordPrintable

    Details

      Description

      ADDITIONAL SYSTEM INFORMATION :
      openjdk version "12-ea" 2019-03-19
      OpenJDK Runtime Environment (build 12-ea+30)
      OpenJDK 64-Bit Server VM (build 12-ea+30, mixed mode, sharing)

      A DESCRIPTION OF THE PROBLEM :
      The ConstantDesc interface is a new feature in JDK 12 for describing more types of data in a static and nominal manner. This means it should be inherently simple to give Serializable implementations for most if not all ConstantDesc . This feature would be very useful when reworking a design to use Serializable instead of ConstantDescs embedded in class files (ConstantDesc are not "lazy" enough for certain purposes such as templating) or vice-versa.

      This might be inappropriate for DynamicConstantDesc by default and some cases such as VarHandleDesc though.


        Attachments

          Activity

            People

            • Assignee:
              vromero Vicente Arturo Romero Zaldivar
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: