INRIA/spoon

feat: shadow classes should be closed to intercession

Open

#4,667 opened on Apr 6, 2022

 (1 comment) (0 reactions) (0 assignees)Java (383 forks)github user discovery
featuregood first issue

Repository metrics

Stars
 (1,933 stars)
PR merge metrics
 (Avg merge 19d 11h) (49 merged PRs in 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

Contributor guide