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

Feature Request: More helpful error messages for missing properties in EL #64

Open
PokingUrsa opened this issue Jun 28, 2021 · 0 comments

Comments

@PokingUrsa
Copy link

PokingUrsa commented Jun 28, 2021

The message for missing properties could be more developer-friendly.

Today, if you have a class Foo with a method getBar(boolean paramName), when you try to use "foo.bar" in an EL expression Flavour produces a build-time error like this:

Can't find property 'bar'

It is technically correct. Per the JavaBean spec, the "bar" property is only readable if there is a no-arg getter, like getBar().

Ideally Flavour would find other methods with the same name but with parameters and warn about the potential confusion:

Can't find property 'bar'. Only a no-arg getter can be used to get 'bar'. These getter(s) exist but have parameters, so they can't be used: getBar(boolean)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant