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

bad example in comment of SourceAwareCustomizerFactory(source(basenameVaidator:{}))

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.3
    • 2.1.4
    • Documentation
    • None

    Description

      In groovy-2.1.3/src/main/org/codehaus/groovy/control/customizers/builder/SourceAwareCustomizerFactory.java, I found following error:

      omizers/builder% diff -p SourceAwareCustomizerFactory.java SourceAwareCustomizerFactory.java~
      *** SourceAwareCustomizerFactory.java	2013-05-02 13:44:59.000000000 +0900
      --- SourceAwareCustomizerFactory.java~	2013-04-12 15:01:58.000000000 +0900
      *************** import java.util.Map;
      *** 55,61 ****
         *     }
         *
         *     // apply CompileStatic AST annotation on files whose name is 'foo' or 'bar'
      !  *     builder.source(basenameValidator: { it in ['foo', 'bar'] }) {
         *         ast(CompileStatic)
         *     }
         *
      --- 55,61 ----
         *     }
         *
         *     // apply CompileStatic AST annotation on files whose name is 'foo' or 'bar'
      !  *     builder.source(basenames: { it in ['foo', 'bar'] }) {
         *         ast(CompileStatic)
         *     }
         *
      

      Following document has the same error and other errors, i fixed.
      http://docs.codehaus.org/display/GROOVY/Advanced+compiler+configuration

      Attachments

        Activity

          People

            melix Cédric Champeau
            uehaj UEHARA Junji
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: