X-Git-Url: http://git.megacz.com/?p=org.ibex.classgen.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fclassgen%2FCPGen.java;h=1919caee6c61fb075bc1cc3361516caa2d42f675;hp=6b3db97df06ef43a6b458800c8cb0a8358ba0763;hb=017306c392932fe7db2f1123b1bf733832a03419;hpb=b0c281117174062552c6470cc78b565163748a4d diff --git a/src/org/ibex/classgen/CPGen.java b/src/org/ibex/classgen/CPGen.java index 6b3db97..1919cae 100644 --- a/src/org/ibex/classgen/CPGen.java +++ b/src/org/ibex/classgen/CPGen.java @@ -86,8 +86,8 @@ class CPGen { /* * Methods */ - public void seal() { if(state >= SEALED) throw new IllegalStateException(); state = SEALED; } - public void stable() { if(state >= STABLE) throw new IllegalStateException(); state = STABLE; } + public void seal() { if(state > SEALED) throw new IllegalStateException(); state = SEALED; } + public void stable() { if(state > STABLE) throw new IllegalStateException(); state = STABLE; } public final Ent get(Object o) { return (Ent) entries.get(o); } public final Ent getUtf8(String s) { return get(new Utf8Key(s)); }