ajwang / groovypptest

Automatically exported from code.google.com/p/groovypptest
0 stars 0 forks source link

Annotation declaration won't compile for .gpp #341

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. Create .gpp file for declaring an annotation

// C.gpp
@interface C {
}

2. $ groovyc C.gpp

This will produce:

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
C.gpp: -1: Annotation @groovy.lang.Typed is not allowed on element ANNOTATION

 @ line -1, column -1.

Original issue reported on code.google.com by chanwit on 23 Feb 2011 at 6:26

GoogleCodeExporter commented 8 years ago

Original comment by alex.tka...@gmail.com on 23 Feb 2011 at 6:42

GoogleCodeExporter commented 8 years ago
Fixed in 
https://github.com/roshandawrani/groovypp/commit/f1b5bd6e9cf9c3e249bea988d4a7018
00ddc52e0

Original comment by roshanda...@gmail.com on 23 Feb 2011 at 9:59

GoogleCodeExporter commented 8 years ago
https://github.com/alextkachman/groovypp/pull/4 that got applied today has 
incorporated this fix 
(https://github.com/roshandawrani/groovypp/commit/f1b5bd6e9cf9c3e249bea988d4a701
800ddc52e0).

I still locally verified again that it works.

Original comment by roshanda...@gmail.com on 24 May 2011 at 6:50