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

Groovy compilation results in warnings in generated code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.8-rc-2, 1.7.9, 1.9-beta-1
    • None
    • None
    • Ubuntu Maverick, OpenJDK, Groovy 1.7.5, Gradle

    Description

      The Groovy compilation is creating generated files that contain code that generates warning. This leads to an impossible situation for those who want warning free compilation.

      e.g. from the GPars code:

      /tmp/groovy-generated-2342688056285823602-java-source/groovyx/gpars/dataflow/operator/DataFlowProcessor.java:18: warning: [cast] redundant cast to boolean
      protected  boolean shouldBeMultiThreaded(java.util.Map channels) { return (boolean)false;}
      

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            russel Dr. Russel Winder
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: