Skip to content

Commit acc88a6

Browse files
paodbjavier-godoy
authored andcommitted
fix(demo): fix binary incompatibility
Close #65
1 parent 7563ca4 commit acc88a6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/test/java/com/flowingcode/vaadin/addons/errorwindow/ErrorwindowDemo.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,14 @@ public ErrorwindowDemo() {
123123
throwErrorWithCustomMessage,
124124
throwErrori18nSupport);
125125

126-
add(new Button("Navigation error",
127-
ev -> UI.getCurrent().navigate(ThrowInConstructorView.class)));
126+
add(new Button("Navigation error", ev -> {
127+
UI current = UI.getCurrent();
128+
try {
129+
UI.class.getMethod("navigate", Class.class).invoke(current, ThrowInConstructorView.class);
130+
} catch (Exception e) {
131+
throw new RuntimeException(e);
132+
}
133+
}));
128134

129135
add(upload);
130136

0 commit comments

Comments
 (0)