caelum / vraptor4

A web MVC action-based framework, on top of CDI, for fast and maintainable Java development.
http://vraptor.org
Apache License 2.0
350 stars 333 forks source link

Serializer .include method bug #1095

Open schieck0 opened 7 years ago

schieck0 commented 7 years ago

Case: result.use(Results.json()).withoutRoot().from(agenda) .include("lembretes", "lembretes.lembreteEquipeFuncionario", "lembretes.lembreteEquipeFuncionario.equipe", "lembretes.lembreteEquipeFuncionario.equipe.funcionarioEquipeList", "reunioes", "reunioes.participanteReuniaoList", "reunioes.participanteReuniaoList.equipe" .serialize();

Included complete subpath from "lembretes": lembretes.lembreteEquipeFuncionario.equipe.funcionarioEquipeList

Included complete subpath from "reunioes": reunioes.participanteReuniaoList.equipe

Assuming that the "equipe" object has the sublist funcionarioEquipeList however this was only included from the object "lembretes". What happens is that reunioes.participanteReuniaoList.equipe.funcionarioEquipeList is being automatically included.

Am I wrong, or would this be a bug?