Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5.2
-
None
Description
The stub compiler seems to get confused with package-info.groovy, which may need special-casing. This source:
package-info.groovy
@org.hibernate.annotations.GenericGenerator(name = "random-uuid", strategy = "org.hibernate.id.UUIDGenerator") package my.application.domain.annotation
results in the stub
package-info.java
package my.application..domain.annotation; import java.lang.*; import java.io.*; import java.net.*; import java.util.*; import groovy.lang.*; import groovy.util.*; interface package-info { ; }
which predictably fails because package-info is not a valid identifier. Given the semantics of package-info.java (and especially that imports aren't allowed), it might make sense to special-case this and just repeat the input file with a trailing semicolon.
Attachments
Issue Links
- links to