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

boolean local variable is compiled as Boolean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2.2
    • class generator
    • None

    Description

      the following code uses internally a Boolean instead of a boolean for the local variable. Since a boolean cannot hold null, this is an important difference. Slightly modified code seems to not have the problem.

      def foo(Boolean o) {
        boolean b = o
        println b
      }

      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: