INRIA/spoon

feat: shadow classes should be closed to intercession

Aperta

#4667 aperta il 6 apr 2022

 (1 commento) (0 reazioni) (0 assegnatari)Java (383 fork)github user discovery
featuregood first issue

Metriche repository

Star
 (1933 stelle)
Metriche merge PR
 (Merge medio 19g 11h) (49 PR mergiate in 30 g)

Descrizione

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

Guida contributor