Sun Java Solaris Communities My SDN Account Join SDN
 

JavaOne Online Technical Sessions

Pump Up Your Technical Knowledge
Listen and watch as industry luminaries bring you the latest on Java technologies
Active Tab2009
 
Begin Product Tab Sub Links Active Sub LinkJavaOne Technical Sessions JavaOne Hands-On Labs

Preventing Bugs with Pluggable Type Checking
TS-3798


Presenter: Michael Ernst, U. of Washington


Are you tired of null pointer exceptions, unintended side effects, mistaken equality tests, and other runtime errors that appear during testing or in the field? A pluggable type system can guarantee the absence of these types of errors and many more. This session describes a set of pluggable type checkers that operate as annotation processors for javac. The type checkers are easy to use (for example, the syntax is much less verbose than generics) and have found many errors in real programs. The Java 7 programming language will contain syntactic support for type annotations, but meanwhile your code remains backward-compatible with all versions of the Java programming language.

The session also discusses and demonstrates the Checker Framework, which enables programmers to write an annotation processor that checks custom properties of your code and prevents even more bugs. The type checkers and the Checker Framework are publicly available at groups.csail.mit.edu/pag/jsr308/.

This presentation is intended for programmers who are familiar with the Java programming language and want to improve the quality of their code to prevent runtime exceptions.

You will learn

  • About practical tools that detect and prevent bugs
  • How you can download and use the tools today
  • How to write custom checkers to prevent even more bugs

You will also see the Java 7 programming language's type annotations in action.

 
 
FREE White Papers on Java SE, Java EE, cloud computing and database technologies.
New SDN Member Only Offers Every Month Discounts, FREE white papers and more!
Java University and JavaOne Training Sessions