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

[lworld] Javac should accept __WithField operator only with -XDallowWithFieldOperator

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      This was requested by John Rose:

      "Excess (half-baked) functionality should be factored
      under a flag so users won't "bump into it" without knowing
      they are moving out of the central experience we want
      to test. That includes integration with generics and
      nullability control, also those extra modifiers.

      If we can get constructors working we can put __WithField
      and __DefaultValue under experimental flags also."

      Now that __MakeDefault went away with https://bugs.openjdk.java.net/browse/JDK-8207168, we have only
      __WithField still exposed to users that carries a bit of half baked and clunkier syntax.

      This ticket is to push that under an option: -XDallowWithFieldOperator

        Attachments

          Activity

            People

            • Assignee:
              sadayapalam Srikanth Adayapalam
              Reporter:
              sadayapalam Srikanth Adayapalam
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: