INRIA/spoon

feat: shadow classes should be closed to intercession

Offen

#4.667 geöffnet am 06.04.2022

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Java (383 Forks)github user discovery
featuregood first issue

Repository-Metriken

Stars
 (1.933 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 19T 11h) (49 gemergte PRs in 30 T)

Beschreibung

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