dragome / dragome-sdk

Dragome is a tool for creating client side web applications in pure Java (JVM) language.
http://www.dragome.com
Other
80 stars 20 forks source link

Annotation empty Array crash #180

Open xpenatan opened 7 years ago

xpenatan commented 7 years ago

Having a empty annotation array and trying to get the array from the field to check if the array contains something is crashing

    @Retention(RetentionPolicy.RUNTIME)
    @Target({ ElementType.FIELD, ElementType.METHOD })
    public @interface TestAnnotation
    {
        int [] test() default {};
    }
    @TestAnnotation() // or  @TestAnnotation( test = {} )
    float testVar= 1.0f;

image