INRIA/spoon

feat: shadow classes should be closed to intercession

Ouverte

#4 667 ouverte le 6 avr. 2022

 (1 commentaire) (0 réaction) (0 personne assignée)Java (383 forks)github user discovery
featuregood first issue

Métriques du dépôt

Stars
 (1 933 étoiles)
Métriques de merge PR
 (Merge moyen 19j 11h) (49 PRs mergées en 30 j)

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

Guide contributeur