13.

Overview

When you detect any problem that can't be replicated across the vendor, version, or operating system spectrum, chances are the bug is linked to the platform in some way. We discuss the key to diagnosis with this family of patterns—recognition.

One of the main advantages to programming in the Java language is the tremendous degree of platform independence it allows. Rather than having to form separate builds of a product for each target platform, you can simply compile to bytecode and distribute to any platform with a Java Virtual Machine. Or at least that's the way the story is supposed to go.

Unfortunately, it's not quite that simple. Although Java programming can save untold hours of developer support for multiple platforms, there are many compatibility snags across different JVM versions.

Some of these snags, such as incorrect platform-specific separator characters in path names, are easy to spot and correct. But others can be difficult or impossible to intercept. For that reason, it's important to keep in mind the possibility that some anomalous program behavior that defies explanation may be a bug in a particular JVM.

The cost of writing cross-platform code is never zero!



Bug Patterns in Java
Bug Patterns In Java
ISBN: 1590590619
EAN: 2147483647
Year: N/A
Pages: 95
Authors: Eric Allen

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net