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

boolean local variable is compiled as Boolean

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.2
    • Component/s: class generator
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: