You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Route("")
public class HelloFlowView extends Div {
public HelloFlowView() {
StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
for (int i = 0; i < stackTrace.length && i < 5; i++) {
Div div = new Div();
div.setText(stackTrace[i].toString());
add(div);
}
}
}
you can see the stack trace for the constructor when opening the view:
This is problematic for us because we use the line information to figure out where in the source file certain things happen, to be able to edit the source file correctly.
Given a class like
you can see the stack trace for the constructor when opening the view:
If you change something in the code and hotswap the changes, like add
at the end of the constructor, you see the same stack trace.
However, if you change the constructor to e.g.
then the source information for the view Java file is lost and the stack trace becomes
This is problematic for us because we use the line information to figure out where in the source file certain things happen, to be able to edit the source file correctly.
Reproducible example in https://github.com/Artur-/test-update-constructor
Launch
Application.java
using hotswap agent, modify the constructor and hotswapThe text was updated successfully, but these errors were encountered: