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

usage of DTT#castToBoolean in indy

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 2.3.0-beta-1
    • Compiler, groovy-runtime
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: