Closed Postremus closed 3 years ago
@mkouba could we catch the exception and restart if it happens?
Well, first of all we should not attempt to use instrumentation for this case (the class structure was obviously modified). I'll check the reproducer.
Ok, so I was able to reproduce the issue and (1) the comparison logic in ClassComparisonUtil.isSameStructure(ClassInfo, ClassInfo)
needs to be fixed to reflect the method removal, (2) the exception is logged but the full restart is perfomed afterwards and the result of the subsequent GET http://localhost:8080/hello
is correct.
Describe the bug
I have the following class in my project:
I changed the CONST and removed the
help
method at the same time. A hot reload triggered the exception from below.Expected behavior
No exception during hot reload.
Actual behavior
To Reproduce
Link to a small reproducer (preferably a Maven project if the issue is not Gradle-specific).
Or attach an archive containing the reproducer to the issue.
Steps to reproduce the behavior:
Environment (please complete the following information):
Output of
uname -a
orver
MSYS_NT-10.0 NANB7NLNVP2 2.10.0(0.325/5/3) 2018-06-13 23:34 x86_64 Msys
Output of
java -version
java version "1.8.0_271" Java(TM) SE Runtime Environment (build 1.8.0_271-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode)
Quarkus version or git rev
1.13.0.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: C:\eclipse\tools\apache-maven\bin.. Java version: 11.0.7, vendor: Azul Systems, Inc., runtime: C:\eclipse\tools\zulu11.39.15-ca-jdk11.0.7-win_x64 Default locale: de_DE, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"