Even more strangely, I can use Byte.MAX_VALUE as an argument, but if I try to use a const declared as
public static final byte BAR = 1; Im getting the following error: Error:Groovyc: Attribute 'value' should have type 'java.lang.Byte'; but found type 'java.lang.Integer' in @Version What am I missing? Thanks, p On Wed, Jan 15, 2020 at 6:26 PM Paolo Di Tommaso <paolo.ditomm...@gmail.com> wrote: > Hello folks, > > Is there any way to specify an inline byte literal with groovy? I'm asking > because I'm stuck trying to specify a byte parameter into an > annotation declared as such > > public @interface Version { > byte value(); > } > > > I was unable to find a solution. > > Thanks a lot. > > p > > >