-
Bug
-
Resolution: Done
-
Critical
-
2.15.2.Final
-
None
The JavaAddAnnotationCommandImpl command adds an annotation to an existing class :
@FacetConstraint(JavaSourceFacet.class) public class JavaAddAnnotationCommandImpl extends AbstractProjectCommand implements JavaAddAnnotationCommand { @Inject @WithAttributes(label = "Target Class", description = "The class where the annotation will be added", required = true, type = InputType.DROPDOWN) private UISelectOne<JavaResource> targetClass;
But when the parameter targetClass is used, there is a no such child
[bin]$ project-new --named test ***SUCCESS*** Project named 'test' has been created. [test]$ java-new-class --named MyClass ***SUCCESS*** Class org.test.MyClass was created [MyClass.java]$ java-add-annotation --annotation java.lang.annotation.Documented --targetClass org.test.MyClass Exception when parsing/running: java-add-annotation --annotation java.lang.annotation.Documented --targetClass org.test.MyClass , no such child: org.test.MyClass ***INFO*** (type "export VERBOSE=true" to enable stack traces)