INRIA/spoon

feat: shadow classes should be closed to intercession

Aberta

#4.667 aberto em 6 de abr. de 2022

 (1 comentário) (0 reação) (0 responsável)Java (383 forks)github user discovery
featuregood first issue

Métricas do repositório

Stars
 (1.933 estrelas)
Métricas de merge de PR
 (Mesclagem média 19d 11h) (49 fundiu PRs em 30d)

Description

problem: the shadow classes (CtClass reflecting a binary class) built by JavaReflectionTreeBuilder can be modified. This is confusing for users, see https://github.com/INRIA/spoon/issues/4664.

solution: the JavaReflectionTreeBuilder should construct immutable objects, closed to modification, where all setters throw an UnsupportedOperationException

Guia do colaborador