I'm getting the "Java live reload unavailable"-box after upgrading from 14.4.7 to 14.6.0 with TravaOpenJDK 11.0.9.
Screenshot of "Java live reload unavailable"-box
Is there anything I might have missed in the release notes?
I'm getting the "Java live reload unavailable"-box after upgrading from 14.4.7 to 14.6.0 with TravaOpenJDK 11.0.9.
Screenshot of "Java live reload unavailable"-box
Is there anything I might have missed in the release notes?
I'm using Gradle with Spring Boot in IntelliJ, and I had included -XX:HotswapAgent=fatjar in my IntelliJ's run configuration. But I didn't respect that bootRun is forking a new JVM! Don't know the coherence to the Vaadin upgrade, but at least it's working now for me after adding -XX:HotswapAgent=fatjar to the bootRun configuration.
In order to not force other developers to use TravaOpenJDK, I'm using this in my build.gradle:
def isUsingTravaOpenJDK() {
// Vendor is AdoptOpenJDK, therefore we identify Trava by its version number:
def knownTravaVersions = ["11.0.9+2-202011221400"]
def currentJVM = System.getProperty("java.vm.version")
return knownTravaVersions.contains(currentJVM)
}
bootRun {
if (isUsingTravaOpenJDK()) {
jvmArgs("-XX:HotswapAgent=fatjar")
}
}
It's currently not possible to use java[.vm].vendor to determine if Trava is used:
java -XshowSettings:properties -version
Property settings:
[...]
java.vendor = AdoptOpenJDK
java.vendor.url = https://adoptopenjdk.net/
java.vendor.url.bug = https://github.com/AdoptOpenJDK/openjdk-support/issues
java.vendor.version = AdoptOpenJDK
java.version = 11.0.9
java.version.date = 2020-10-20
[...]
java.vm.vendor = AdoptOpenJDK
java.vm.version = 11.0.9+2-202011221400