IntelliJ shows type hints for local variables in Kotlin as shown here: This makes it easy to see the type of variables even if their types are inferred. Java 10 introduces type inference for Java with the var keyword. However, IntelliJ does not show any type hints by default: After searching the internet for a bit, I was unable to
Tag: java-10
JAXB not available on Tomcat 9 and Java 9/10
TLDR: On Java 9/10, a web app in Tomcat has no access to JAXB even though its reference implementation is present on the class path. Edit: No, this is not a duplicate of How to resolve java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException in Java 9 – as you can tell by the What I tried section, I already tried the proposed solutions. The Situation
Proper fix for Java 10 complaining about illegal reflection access by jaxb-impl 2.3.0?
We are looking at upgrading some legacy code to Java 10. As JAXB is not visible by default (EDIT: and the proper long term solution is not to circumvent the symptom using various JVM flags, but fix it properly) I have added this snippet to my pom.xml: Unfortunately there is still a warning printed at startup to stderr. Apparently this