Closed GoogleCodeExporter closed 9 years ago
I have reproduced this issue and have committed the test case
checker/tests/nullness/Issue376.java.
The type parameter Q extends Enum<Q> & I<?> is inferred by method type variable
inference for the Enum.valueOf method call. The annotations @Initialized
@NonNull are added to the upper bound of the type parameter. However, since the
upper bound is an intersection type, these annotations are later ignored by
TypeHierarchy.isSubtype.
Original comment by mcarthur...@gmail.com
on 19 Nov 2014 at 9:41
Original comment by mcart...@cs.washington.edu
on 19 Nov 2014 at 11:13
The current mainline repository typechecks this correctly and it will be
included in the next release. It will be marked as fixed when this happens.
Original comment by Jonathan...@gmail.com
on 8 Apr 2015 at 9:15
Original comment by jtha...@cs.washington.edu
on 18 Apr 2015 at 6:42
Original issue reported on code.google.com by
cus...@google.com
on 11 Nov 2014 at 5:52