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

"int not-equal int" compiled using slow path in static complation mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.7
    • Static compilation
    • None

    Description

      @groovy.transform.CompileStatic
      boolean foo(int i, int j) {
        return i!=j
      }
      

      In this code the i!=j is done using the runtime code even though it should be done directly using the jvm codes for compares

      Attachments

        Activity

          People

            melix Cédric Champeau
            blackdrag Jochen Theodorou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: