mardi 4 septembre 2018

What is GeneratedEvaluationClass?

I need to get a list of fields that are heirs of one class. These fields are private. But it does not matter, just need a list of these fields.

I have:

List<Field> linkFields = Arrays.stream(type.getDeclaredFields())
      .filter(field -> field.getClass().isAssignableFrom(Link.class))
      .collect(Collectors.toList());

as result (in debug mode):

symbol:   method GeneratedEvaluationClass(java.lang.Class<capture#1 of ? extends E>)

If I clear the filter, everything works out clean.

List<Field> linkFields = Arrays.stream(type.getDeclaredFields())
      .collect(Collectors.toList());

as result:

ArrayList<Field>

What does it mean?





Aucun commentaire:

Enregistrer un commentaire