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

Implement temporary alternative IDE-compatible annotation for "value" keyword

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: tools
    • Labels:

      Description

      Early experimenters with with value types are finding
      that the "codes like a class" aspect works well.

      One difficulty is that the "value" keyword confuses
      IDEs and editors.

      If the javac parser were to accept "@__value__"
      as a *temporary* alias for the "value" quasi-keyword,
      IDE and editors would be able to process the syntax
      more easily.

      It's a shallow change, and one we'd want to remove
      as IDEs adopt the "value" keyword, but it might help
      reduce friction for early experimenters.

        Attachments

          Activity

            People

            Assignee:
            sadayapalam Srikanth Adayapalam
            Reporter:
            jrose John Rose
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: