Main Directory
ASP 3091
ASP.NET 863
C and C++ 343
CFML 280
CGI and Perl 3073
Flash 803
Java 1614
JavaScript 2272
PHP 11222
Python 112
Remotely Hosted 1437
Tools and Utilities 2883
Web Hosting 27
XML 233




Diagnosing Java Code: The Impostor Type bug pattern
Link ID 28242
Title Diagnosing Java Code: The Impostor Type bug pattern
Url Visit : Diagnosing Java Code: The Impostor Type bug pattern
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.
Category Java > Tutorials > Development
Keywords Diagnosing   Java   Code:   The   Impostor   Type   bug   pattern
Date Sep 20, 2007
Refer it to Friend ( Diagnosing Java Code: The Impostor Type bug pattern )  
Write a Review ( Diagnosing Java Code: The Impostor Type bug pattern )  
Report Broken Link ( Diagnosing Java Code: The Impostor Type bug pattern )  
Add : Diagnosing Java Code: The Impostor Type bug pattern To Favorites
More links included : Diagnosing Java Code: The Impostor Type bug pattern
Site links : Diagnosing Java Code: The Impostor Type bug pattern
Traffic Details from Alexa : Diagnosing Java Code: The Impostor Type bug pattern

Average Visitor Rating: 0.00 (out of 5)
Number of ratings: 0 Votes
Visitor Rating

 Other links at Java > Tutorials > Development
1. Download SCEA 310-051 Free Exam Simulator
  SCEA Practice 310-051 Free Exam Simulator which helps you to prepare for the exam. The Exam Simulator is a computer program designed to help you pass your examination on the first try. The Exam Simulator pinpoints your strengths and weaknesses by quizzing you with questions similar to those found on your actual exam. The questions will familiarize you with everything you need to know to pass your exam. The Exam Simulator helps you manage your time and learn quickly by allowing you to study your material on a topical basis, or by taking timed exam simulations that look and feel exactly like the real thing. The Exam Simulator makes studying simple. Youll be comfortable with the format of the test and confident that youll pass on the first try.
Category:   Java > Tutorials > Development


2. Exploiting ThreadLocal to enhance scalability
  The ThreadLocal class appeared with little fanfare in version 1.2 of the Java platform. While support for thread-local variables has long been a part of many threading facilities, such as the Posix pthreads facility, the initial design of the Java Threads API lacked this useful feature. Further, the initial implementation was quite inefficient. For these reasons, ThreadLocal gets relatively little attention, but it can be very handy for simplifying the development of thread-safe concurrent programs. This article examines ThreadLocal and offers tips for exploiting its power.
Category:   Java > Tutorials > Development


3. Introducing the Reflexive User Interface Builder
  The IBM Reflexive User Interface Builder (RIB), a new technology available from alphaWorks, is an application and toolkit for building and rendering Java AWT/Swing and Eclipse SWT GUIs. RIB specifies a flexible and easy-to-use XML markup language for describing Java GUIs and provides an engine for creating them. You can use RIB to test and evaluate basic GUI layout and functionality, or to create and render GUIs for an application.
Category:   Java > Tutorials > Development


4. Weighing in on Java native compilation
  Learn the pros and cons of generating native code from Java source. This article includes the basics of code compilation, including a brief overview of why many developers are employing Java native compilers for their applications.
Category:   Java > Tutorials > Development


5. Threading lightly : Reducing contention
  While its common to hear that synchronized method calls can be 50 times as expensive as unsynchronized method calls, these numbers can actually be quite misleading. With each successive JVM version, overall performance has improved, and the cost of uncontended synchronization has been reduced, making the issue of uncontended synchronization overhead less significant. Contended synchronization, however, is quite expensive. Moreover, a high degree of contention is disastrous for scalability -- an application that had a high degree of contended synchronization will exhibit markedly worse performance as the load increases. This article explores several techniques for reducing contention, and hence improving scalability, in your programs.
Category:   Java > Tutorials > Development




 Popular Tags

#   A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z