I am writing a simple custom annotation in Java and running into a problem with it. Here is the main parts of my code.
LogMeCustomAnnotation.java
I've encountered this error, in particular
Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: Provider com.iviz.schemarestriction.processor.SchemaRestrictionCompilationProcessor could not be instantiated
when migrating maven project from JDK 1.8 (1.8.0_201) to OpenJDK 11(11.0.2).
It was fixed by adding dependency on (2.3.1 was the latest stable version)
javax.xml.bind
jaxb-api
2.3.1