Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Route annotation on class not extending Component is ignored silently #19907

Open
caalador opened this issue Sep 6, 2024 · 0 comments
Open

Comments

@caalador
Copy link
Contributor

caalador commented Sep 6, 2024

Description of the bug

If adding the @Route annotation on a class that doesn't extend Component the build doesn't fail and the route is not available for use.

Expected behavior

Having a route annotation on a non Component class should log or throw an exception that it is not used due to not being a Component class.

Minimal reproducible example

@Route
public class MyView {
}

Versions

  • Vaadin / Flow version: 10+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🔖 Low Priority (P3)
Development

No branches or pull requests

2 participants