]
Viacheslav Kabanovich updated JBIDE-22036:
------------------------------------------
Fix Version/s: 4.4.0.Alpha1
(was: 4.4.x)
batch property is incorrectly renamed in job.xml when refactoring
-----------------------------------------------------------------
Key: JBIDE-22036
URL:
https://issues.jboss.org/browse/JBIDE-22036
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: batch
Affects Versions: 4.3.1.CR1
Reporter: Rastislav Wagner
Assignee: Viacheslav Kabanovich
Fix For: 4.4.0.Alpha1
my job.xml:
{code}
<?xml version="1.0" encoding="UTF-8"?>
<job id="myJob"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/jobXML_1_0.xsd"
version="1.0">
<step id="step1" >
<batchlet ref="myBatchlet">
<properties>
<property name="namedProperty" value="A"/>
</properties>
</batchlet>
</step>
</job>
{code}
my batchlet:
{code}
package batch;
import javax.batch.api.AbstractBatchlet;
import javax.batch.api.BatchProperty;
import javax.inject.Inject;
import javax.inject.Named;
@Named
public class MyBatchlet extends AbstractBatchlet {
@Inject
@BatchProperty(name = "namedProperty") String myProp;
public MyBatchlet() {
// TODO Auto-generated constructor stub
}
@Override
public String process() throws Exception {
// TODO Auto-generated method stub
return null;
}
}
{code}
When I rename myProp in MyBatchelet to let's say myProp1 the value in job.xml will
get changed to myProp1. This will result in warning because Im using @BatchProperty(name
="namedProperty")