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

SC: !in compiled to ScriptBytecodeAdapter#isNotCase

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-rc-2
    • Static compilation
    • None

    Description

      Consider the following:

      @groovy.transform.CompileStatic
      boolean test(a,b) {
        a !in b
      }
      

      "a !in b" requires similar compiler optimizations as "a in b" while still maintaining null safety (GROOVY-6137) and single evaluation of its operands (GROOVY-7473).

      Attachments

        Activity

          People

            emilles Eric Milles
            emilles Eric Milles
            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 - 10m
                10m