INRIA / INRIA/spoon

feat: shadow classes should be closed to intercession

Open
#4,667 1 comment 0 reactions 0 assignees View on GitHub
feature good first issue
Dominant language
Java
Stars
2k
Forks
392
Avg merge
11h 24m
Merged PRs (30d)
36

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.