https://kotlinlang.org logo
#ktor
Title
# ktor
s

Shawn

05/01/2019, 1:30 AM
sanity check - is hot reloading still broken for JDK >8
n

napperley

05/01/2019, 2:41 AM
What happens when the Hot Reloading feature is used on JDK versions > 8 (by vendor)? Which JDK vendor are you using?
s

Shawn

05/01/2019, 2:42 AM
so from my end it looks like I can never pick the correct name for the module to watch
when I google the issue, the same thing more or less happened to the people reporting the issue on JDK9
n

napperley

05/01/2019, 2:43 AM
Does a error appear via a stack trace in the logs?
s

Shawn

05/01/2019, 2:43 AM
It just says
Copy code
INFO ktor.application - No ktor.deployment.watch patterns match classpath entries, automatic reload is not active
according to the docs, it still officially doesn’t work with JDK 9 https://ktor.io/servers/autoreload.html
I’m assuming every newer version also has the same change in
URLClassLoader
but for completeness’s sake, I’m using oracle jdk11 on my machine
n

napperley

05/01/2019, 2:45 AM
Appears as though backwards compatibility has been deliberately broken to increase security on JDK 9 onwards ( https://github.com/ktorio/ktor/issues/321 ).
c

cy

05/01/2019, 6:56 AM
Yes, we have fix in 1.2.0-rc but it requires VM option to be set
👍 1