dragome/dragome-sdk

Support default keyword in declaring an annotation type

Closed this issue · 3 comments

This code

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.TYPE})
@Documented
public @interface Wire {
	boolean injectInherited() default false;
	boolean failOnNull() default true;
}

https://github.com/junkdog/artemis-odb/blob/master/artemis/src/main/java/com/artemis/annotations/Wire.java#L47

return null when ask undefined failOnNull or injectInherited from here:

https://github.com/dragome/dragome-sdk/blob/master/dragome-js-jre/src/main/java/java/lang/AnnotationInvocationHandler.java#L46

I add test for this case nicolaichuk@c8ff0c3

@fpetrola, сan you please fix this bug priority?

ok, I think it could be related to #144 so we can fix both