diff -r 000000000000 -r 82ff02d7f861 samples/primitiveconstants/src-api2.0/api/API.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/primitiveconstants/src-api2.0/api/API.java Sat Jun 14 09:50:51 2008 +0200 @@ -0,0 +1,15 @@ +package api; + +public abstract class API { + // BEGIN: theory.binary.constants.api2 + public static final int VERSION = 2; + // END: theory.binary.constants.api2 + + protected API() { + System.err.println("Initializing version " + VERSION); + init(API.VERSION); + System.err.println("Properly initialized: " + this); + } + + protected abstract void init(int version) throws IllegalStateException; +}