Export to GitHub

atinject - issue #28

Specification should be updated for Java 8 type annotations


Posted on Apr 8, 2014 by Massive Giraffe

Java 8 adds the ability for annotations to be specified on types whenever they appear. This means it's now possible to write

@Inject Provider<@Leather Seat> seatProvider;

instead of

@Inject @Leather Provider<Seat> seatProvider;

It would be nice if the spec could be updated to allow the first usage, and explicitly disallow duplicate qualifiers like

@Inject @Leather Provider<@Fabric Seat> seatProvider;

Comment #1

Posted on Apr 8, 2014 by Massive Monkey

If there is going to be a change to JSR-330 for this I would like to be involved. Either with jwells131313@gmail.com or john.wells@oracle.com. Thanks!

Status: New

Labels:
Type-Defect Priority-Medium