Java 11: Unable to load JDK7 types (annotations, java.nio.file.Path): no Java7 support added
See original GitHub issueMight be OK to ignore for now but seeing this warning when running with a jlink’d minimal Java 11 image:
Sep 07, 2019 12:25:42 AM com.fasterxml.jackson.databind.ext.Java7Support <clinit>
WARNING: Unable to load JDK7 types (annotations, java.nio.file.Path): no Java7 support added
On closer inspection it looks like com.fasterxml.jackson.databind.ext.Java7SupportImpl
tries to load the annotation java.beans.Transient
to detect Java 7 but this doesn’t work on Java 11+ without the full java.desktop
module dependency.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Jackson unable to load JDK7 types on Android - Stack Overflow
In Jackson 2.8.x this support for Java 7 class java.nio.file.Path is all loading from the same JAR file and is built-in.
Read more >Solved - "Unable to load JDK7 types" | SpigotMC
I just started getting the following message at startup: [WARN] Unable to load JDK7 types (annotations, java.nio.file.Path): no Java7 ...
Read more >ERROR: Unable to load JDK7 types : r/admincraft - Reddit
Uninstall old versions of java, make sure your launch script is referencing the new java installation. You may have to ensure java is...
Read more >Java SE 7 Features and Enhancements - Oracle
Java Platform, Standard Edition 7 is a major feature release. This document includes information on features and enhancements in Java SE 7 and...
Read more >openzipkin/zipkin - Gitter
... Java7Support: Unable to load JDK7 types (annotations, java.nio.file.Path): no Java7 support added 19/10/16 05:07:11 WARN Resource: Detected type name in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, so, for 2.10 I split
Java7Support
/-Impl
into 4 classes; 2 new ones beingJava7Handlers
/-Impl
. J7Support now loads annotation part, and J7Handlers serializer/deserializer forPath
type, and only latter will log anything in case of failure. So I think this should work better for J2SE at least. I’ll see if I should change 3.0 a bit as well, to revert merge of annotation access into main part and leave it as extension.For anyone following, there is: #2744 for Android part – question of Java 11 is little bit different.