Description of Diagnosing Java Code: The Impostor Type bug pattern :
This article of Diagnosing Java Code examines the symptoms and causes of the imposter bug that appears when special tags in fields are used to differentiate between types of objects. This illustrates ways to prevent this bug from occurring, and discusses a hybrid implementation, which does not use impostor types but, it may have the same weaknesses at the end. Developers can use this type system to produce bug-free and more robust code.