Rest.li is a REST+JSON framework for building robust, scalable service architectures using dynamic discovery and simple asynchronous APIs.
2.51k
stars
546
forks
source link
Avoid casting classloader to URLLoader in ResourceModelEncoder to be compatible with Java 11 #822
Closed
junchuanwang closed 2 years ago
Prior to Java 9, AppClassLoader is a subclass of URLClassLoader, but this is not the case after Java 9.
Therefore casting AppClassLoader to URLClassLoader will fail in Java 11.
This change removed related logic contains casting and instead use ClassGraph to search for restspec file instead.