Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Navigator failing after instantiation

Faras Khan
5 years ago Sep 24, 2016 5:54pm
Alejandro Duarte
5 years ago Sep 28, 2016 8:15am
Faras Khan
5 years ago Oct 04, 2016 6:38pm
Alejandro Duarte
5 years ago Oct 05, 2016 8:34am
Faras Khan
5 years ago Oct 05, 2016 1:25pm
Tobias Demuth
5 years ago Oct 05, 2016 1:32pm

You are throwing an UnsupportedOperationException in com.mycompany.harpy.LoginView.enter(LoginView.java:25). Please leave this method empty, if you do not want to supply an implementation.

Faras Khan
5 years ago Oct 05, 2016 1:57pm
Tobias Demuth
5 years ago Oct 05, 2016 2:23pm

It serves no "real" purpose. Some developers use it to signal a method's caller that the method does not do what they might expect (see for example https://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html#remove()). I find this in most cases rather problematic (although in the Iterator-case it is probably justified).

Faras Khan
5 years ago Oct 05, 2016 2:39pm