[hibernate-dev] Java 8, type annotations and Hibernate Validator

Emmanuel Bernard emmanuel at hibernate.org
Wed Apr 9 15:01:22 EDT 2014


I always thought that type annotations would allow us to look via
refection to annotations like

    public class Foo {
       public Set< @NotNull String> names;
    }

But looking at some tutorials like
http://jaxenter.com/jsr-308-explained-java-type-annotations-49929.html

it seems that these annotations are only "visible" to a compiler plug-in
/ processor.

Am I right?

If that turns out true that would suck as it would only be useful to
static tools. I wish I had checked the spec earlier to influence it :(

Emmanuel


More information about the hibernate-dev mailing list