Diagnosing Java Code: The Impostor Type bug pattern

Article on the symptoms and causes of the Imposter Type bug, and how to prevent it.
Posted by Scripts on 2022-08-15 01:33:06
License Type
License Type
Freeware
Description
When special tags in fields are used to distinguish between types of objects, errors are possible in which a tag mislabels the associated data -- a bug pattern known as the Impostor Type. This article examines the symptoms and causes of this bug, defines ways to prevent this error from occurring, and discusses a tempting hybrid implementation that does not use impostor types but, in the end, turns out to have many of the same weaknesses. Article includes code snipets.
Author

kwigint

Ratings & Review
Uh oh! We couldn't find any review for this listing.
Post Review
License Type
License Type
Freeware