-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Unable to compile @NotNull when applied to a field #116
Comments
👤 voidstar 🕗 Sep 02, 2009 at 01:35 UTC What steps will reproduce the problem?
Please provide any additional information below. See this thread: |
👤 reinierz 🕗 Sep 02, 2009 at 02:04 UTC Well, it'll only choke on that particular variant of @ NotNull (javax.validation.NotNull). But, show-stopper. We'll fix |
👤 r.spilker 🕗 Sep 02, 2009 at 08:27 UTC To solve it right, we need to implement the bindings so we can tell what exact For now, I'm considering to NOT copy the NotNull annotation to the parameter because, |
👤 reinierz 🕗 Sep 02, 2009 at 08:31 UTC Yup. For safety's and consistency's sake, we should probably stop copying the annotations everywhere (so, also |
👤 jacek99 🕗 Sep 02, 2009 at 08:59 UTC Wouldn't it be better to have some generic logic that would look at how an annotation The same issue may pop up on other annotations that Lombok may have to deal with in |
👤 reinierz 🕗 Sep 02, 2009 at 09:18 UTC jacek99: Well, what kind of 'generic' logic are you referring to? If you're referring to: Check the target |
👤 reinierz 🕗 Sep 02, 2009 at 23:41 UTC Fixed in c46bf85 which will be rolled out in v0.8.5. The "fix" simply reduces the feature to scan only for annotations named 'nonnull'. All annotations named nonnull This is a workaround - once lombok supports type introspection we'll fix this properly. |
👤 matt.deboer 🕗 Oct 17, 2011 at 19:48 UTC This doesn't seem to be resolved (or has regressed?); using Lombok 0.10.1 with a maven 3.0.3 build, having a simple class with a single member which has @ javax.validation.constraints.NotNull applied causes compiler plugin to bomb with the aforementioned "annotation type not applicable to this kind of declaration".. this works correctly within Eclipse environment, but fails during Maven build. |
👤 reinierz 🕗 Oct 25, 2011 at 13:04 UTC It's a regression introduced in 0.10.1. See issue #360 for more up to date discussion. |
End of migration |
Migrated from Google Code (issue 43)
The text was updated successfully, but these errors were encountered: