From b4eab54395bec90ef29876343c91797f6f757f4e Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Wed, 18 Dec 2024 17:05:25 +0100 Subject: [PATCH] LDEV-5207 actually apply offset --- .../java/lucee/transformer/bytecode/util/ExpressionUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }