diff --git a/core/src/main/java/lucee/transformer/bytecode/util/ExpressionUtil.java b/core/src/main/java/lucee/transformer/bytecode/util/ExpressionUtil.java index b2b1795ec1..33357dbab1 100755 --- a/core/src/main/java/lucee/transformer/bytecode/util/ExpressionUtil.java +++ b/core/src/main/java/lucee/transformer/bytecode/util/ExpressionUtil.java @@ -158,7 +158,7 @@ private static void call_Log(BytecodeContext bc, Method method, Position pos, St GeneratorAdapter adapter = bc.getAdapter(); adapter.loadArg(0); // adapter.checkCast(Types.PAGE_CONTEXT_IMPL); - adapter.push(pos.pos); + adapter.push(pos.pos - bc.getPageSource().getSourceOffset()); adapter.push(id); adapter.invokeVirtual(Types.PAGE_CONTEXT, method); }