WASdev / standards.jsr352.jbatch

Home of 'jbatch', a compatible implementation of the Jakarta Batch specification (and the former Reference Implementation for the JSR 352, Batch Applications for the Java Platform specification).
Other
21 stars 18 forks source link

jBatch crashes with CDI 4/Weld 5 #74

Closed arjantijms closed 2 years ago

arjantijms commented 2 years ago
java.lang.NoSuchMethodError: 'void jakarta.enterprise.inject.spi.BeforeBeanDiscovery.addAnnotatedType(jakarta.enterprise.inject.spi.AnnotatedType)'
        at com.ibm.jbatch.container.cdi.BatchCDIInjectionExtension.beforeBeanDiscovery(BatchCDIInjectionExtension.java:37)

This is because the long deprecated method taking only 1 parameter is used. In CDI 4 this has finally been removed.

See https://github.com/WASdev/standards.jsr352.jbatch/blob/master/com.ibm.jbatch.container/src/main/java/com/ibm/jbatch/container/cdi/BatchCDIInjectionExtension.java#L36