X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Finternal%2Fcodegen%2Freferences%2FValRef.java;h=954e8d0a3546ca07d2eb09b4ac284cd4e10726a4;hp=85a613c437ba0a46263d8ef74d762a75ce29c1d3;hb=1dfeb7d5c49b1391cd9d877e1eddab18995cb151;hpb=c13c4179bda758e77fe1f2032d3c4268bb9e3120 diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/references/ValRef.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/references/ValRef.java index 85a613c43..954e8d0a3 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/references/ValRef.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/references/ValRef.java @@ -14,8 +14,11 @@ import org.simantics.scl.compiler.top.SCLCompilerConfiguration; import org.simantics.scl.compiler.types.TVar; import org.simantics.scl.compiler.types.Type; import org.simantics.scl.compiler.types.Types; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; public final class ValRef implements IVal { + private static final Logger LOGGER = LoggerFactory.getLogger(ValRef.class); public static final ValRef[] EMPTY_ARRAY = new ValRef[0]; Val binding; @@ -55,8 +58,8 @@ public final class ValRef implements IVal { try { binding.occurrence = next; } catch(NullPointerException e) { - System.err.println("removeModiId = " + removeModiId); - System.err.println("current ModiId = " + SSASimplificationContext.modiId); + LOGGER.error("removeModiId = " + removeModiId); + LOGGER.error("current ModiId = " + SSASimplificationContext.modiId, e); throw new InternalCompilerError("The ValRef has already been removed."); } else