diff -r 000000000000 -r 82ff02d7f861 samples/primitiveconstants/src-impl/impl/Impl.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/primitiveconstants/src-impl/impl/Impl.java Sat Jun 14 09:50:51 2008 +0200 @@ -0,0 +1,18 @@ +package impl; +import api.API; + +// BEGIN: theory.binary.constants.impl +public class Impl extends API { + protected void init(int version) throws IllegalStateException { + if (version != API.VERSION) { + throw new IllegalStateException("Not the right API version error!"); + } + } +// END: theory.binary.constants.impl + + public static void main(String[] args) { + System.err.println("main expects version: " + API.VERSION); + new Impl(); + System.err.println("done for version: " + API.VERSION); + } +}