I'm using docker payara/server-full:5.2020.5-jdk11 image
. I deployed the java ee app built with JDK 11
. I have some DTOs, in which I have annotations like:
@XmlJavaTypeAdapter(DateTimeAdapter.class)
private Date creationDate;
private SomeEnum enumm;
@XmlEnum
public enum SomeEnum {
@XmlEnumValue("U")
USER;
}
and these annotations are not working (while making rest requests). There is no error in runtime. Annotations are just ignored. I tested adding ie throw exception in adapter and nothing happened.
I read about that in JDK 11 this package is excluded, and I also added the recommended dependencies to the pom
, but still no difference. And, as I said, I have no error.