groovy - @CompileStatic an entire package? -


i noticed groovy's @compilestatic annotation allows annotating entire package.

so create package-info.groovy file in com.somepackage package contains this:

package com.somepackage 

so far good. add annotation:

@compilestatic package com.somepackage  import groovy.transform.compilestatic 

and eclipse flags line 2 error: "groovy:[static type checking] - unimplemented node type @ line 2, column 9"

what mean? can apply static compilation entire package way or have continue annotating each individual class in package @compilestatic?

groovy's compilestatic not support operating @ package level. see this discussion. have opened groovy-7453 correct this.

you can use config script maven or gradle, apply compilestatic entire project, not single package. unfortunately, think there's no way entire package, except annotating classes in packages :(


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -