Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-20147

Batch Property mapping issue with reference

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.3.0.Beta2
    • 4.3.0.Beta1
    • batch
    • None

      After upgrading to Mars and JBT I started getting a validation warning on my batch configuration

      If I have the following I get an error Property "INVOICE_JOB_ID" is not found in artifact "invoiceCreateBatchlet" and is not used in other properties.

      @Inject
      @BatchProperty(name = InvoiceCreatePartitionMapper.INVOICE_JOB_ID_KEY)
          private String invoiceJobId;
      

      In a different class

      public static final String INVOICE_JOB_ID_KEY = "INVOICE_JOB_ID";
      

      However if have the following there is no warning.

      @Inject
      @BatchProperty(name = "INVOICE_JOB_ID")
          private String invoiceJobId;
      

      It appears that the validation logic cannot follow the reference

            scabanovich Viacheslav Kabanovich (Inactive)
            cody.lerum@gmail.com Cody Lerum
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: