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

usage of DTT#castToBoolean in indy

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0-beta-1
    • Component/s: Compiler, groovy-runtime
    • Labels:
      None

      Description

      castToBoolean does basically this: if object is null return false, if object is a Boolean, return its value and otherwise call asBoolean(). The later call is done dynamically and uncached.

      Indy now can take the role of that method and emit the asBoolean call as handle to have that cached or a cached constant

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              blackdrag Jochen Theodorou
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: