-
Notifications
You must be signed in to change notification settings - Fork 992
Open
Description
We use the translated jackson-annotation and it seems that the translated code of the inner annotation does not generated correctly. (It was ok in earlier release) All inner annotation types becomes missing in translated code (in below example, value and name are missing from translated code). Also, the create_XXXX method (in this case, create_ComFasterxmlJacksonAnnotationJsonSubTypes_Type) also went missing. Here is a java file you can try to see the problem. (It is a modified version of original file from jackson-annotation lib to allow translation as single file) Also, I have attached a translated .h and .m translated with older release (with _old suffix) and the latest j2objc code (with _new suffix).
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE, ElementType.FIELD,
ElementType.METHOD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface JsonSubTypes {
public Type[] value();
public @interface Type {
public Class value();
public String name() default "";
}
}
Metadata
Metadata
Assignees
Labels
No labels