]
George Gastaldi closed FORGE-2299.
----------------------------------
Fix Version/s: 2.15.3.Final
(was: 2.x Future)
Resolution: Done
No such child when doing a --targetClass
----------------------------------------
Key: FORGE-2299
URL:
https://issues.jboss.org/browse/FORGE-2299
Project: Forge
Issue Type: Bug
Components: UI - API
Affects Versions: 2.15.2.Final
Reporter: Antonio Goncalves
Assignee: George Gastaldi
Priority: Critical
Fix For: 2.15.3.Final
The {{JavaAddAnnotationCommandImpl}} command adds an annotation to an existing class :
{code}
@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;
{code}
But when the parameter {{targetClass}} is used, there is a {{no such child}}
{code}
[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)
{code}