Skip to main content
diff options
authorCarsten Hammer2020-11-01 10:56:40 +0000
committerThomas Watson2020-11-09 16:00:39 +0000
commita16b81529f917451953043dcef060d5b2541566d (patch)
tree149602ec96bcda22763ee07aecf8f76c7f77612b /bundles/org.eclipse.equinox.compendium.tests/bundles_src/metatype/tb9/OSGI-INF/metatype/metadata.xml
parentf6d40224153ea9561afbf7f5fc2e2e330029d0e8 (diff)
is serializable but also an inner class of a non-serializable class This Serializable class is an inner class of a non-serializable class. Thus, attempts to serialize it will also attempt to associate instance of the outer class with which it is associated, leading to a runtime error. If possible, making the inner class a static inner class should solve the problem. Making the outer class serializable might also work, but that would mean serializing an instance of the inner class would always also serialize the instance of the outer class, which it often not what you really want. Rank: Troubling (14), confidence: High Pattern: SE_BAD_FIELD_INNER_CLASS Type: Se, Category: BAD_PRACTICE (Bad practice) Change-Id: I06c93020982fd2a593189bb5650e2734410c0134 Signed-off-by: Carsten Hammer <>
Diffstat (limited to 'bundles/org.eclipse.equinox.compendium.tests/bundles_src/metatype/tb9/OSGI-INF/metatype/metadata.xml')
0 files changed, 0 insertions, 0 deletions

Back to the top