GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Main Site
  • Manual
  • Discussion List
  • Issue Tracker
  • Source Code
  • Tutorial
  • The Checker Framework homepage
  • Nullness Checker tutorial

This view

  • Original page
  • New address

GeezerVison is showing eisop.github.io — Checker Framework Tutorial

  • Checker Framework:
  • Main Site
  • Manual
  • Discussion List
  • Issue Tracker
  • Source Code
  • Tutorial
Checker Framework logo

Checker Framework Tutorial

Introduction

The Checker Framework enhances Java's type system to make it more powerful and useful. This lets software developers detect and prevent errors in their Java programs. The Checker Framework includes compiler plug-ins ("checkers") that find bugs or verify their absence. It also permits software developers to write their own compiler plug-ins.

In this tutorial, you will learn to use the Checker Framework to prevent null pointer exceptions, to prevent SQL injection attacks, and to improve code quality. In this tutorial, you will learn to use the Checker Framework from the command line. The Checker Framework can also be used with other tools such as Maven or InteliJ IDEA, and you could follow the command-line version of the tutorial using one of those tools.

Using the Checker Framework from the command line

  1. Install the Checker Framework and then return to this page.
    Also set the alias javacheck to the Checker Framework compiler.
  2. Download and unzip the source files for the tutorial, then enter the src directory: cd src
  3. Getting Started, a simple example use of the Nullness Checker
  4. Validating User Input, an example using the Regex Checker
  5. Finding a Security Error, a complex example using the Tainting Checker
  6. Writing an Encryption Checker, an example of writing your own type checker

Resources

  • The Checker Framework Manual
  • The Checker Framework homepage
  • There is also a Nullness Checker tutorial by David Bürgin, last updated in April 2016. The tutorial doesn't work because the setup instructions are out of date, but some people find it helpful to read through the steps.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.