TYPE_USE annotated collections and elements fail metamodel generation.

Description

While specifically targeted arrays, collections are also susceptible to the same problem. The following illustrates one additional example of where TYPE_USE creates problems with metamodel generation:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 @ElementCollection @NotNull private Map<@NotNull Integer, @NotNull byte[]> doorCodes; @ElementCollection @NotNullAllowed private Set<@NotNull String> computerSerialNumbers; @ElementCollection @NotNull private List<@NotNull String> employeeNames; @ElementCollection @NotNull private List<@NotNull Room> rooms;


I'm also checking other variants but I have not yet found any others beyond what was identified in and the above.

Environment

JDK8, JDK9

Status

Assignee

Chris Cranford

Reporter

Chris Cranford

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Affects versions

5.2.17
5.3.0.Final

Priority

Major