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

Missing type checks for assignment to array

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.2
    • Component/s: Static Type Checker
    • Labels:
      None

      Description

      In this code

      def foo(Object o) {
        int[] i = o
      }
      

      The static compiler won't perform any type checks

        Attachments

          Activity

            People

            • Assignee:
              melix C├ędric Champeau
              Reporter:
              blackdrag Jochen Theodorou
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: