Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-10286

Set target bytecode by JDK

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-beta-2
    • None
    • None

    Description

      Currently Groovy's target bytecode version is JDK8, which can not leverage the power of native features, e.g. sealed type, record type, etc.

      Setting target bytecode by JDK can help us use native features as much as possible.

      BTW, Setting target bytecode by JDK is aligned with the behaviour of Java:
      Java 1.2 uses major version 46
      Java 1.3 uses major version 47
      Java 1.4 uses major version 48
      Java 5 uses major version 49
      Java 6 uses major version 50
      Java 7 uses major version 51
      Java 8 uses major version 52
      Java 9 uses major version 53
      Java 10 uses major version 54
      Java 11 uses major version 55
      Java 12 uses major version 56
      Java 13 uses major version 57
      Java 14 uses major version 58
      Java 15 uses major version 59
      Java 16 uses major version 60
      Java 17 uses major version 61

      Attachments

        Activity

          People

            daniel_sun Daniel Sun
            daniel_sun Daniel Sun
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m