- need special handling for _ID in parseContext, consistent with the Evaluator behaviour.
This commit is contained in:
Heng Sin Low 2009-12-03 17:17:42 +00:00
parent cea35ad9aa
commit d13a17195a
1 changed files with 10 additions and 3 deletions

View File

@ -1180,11 +1180,18 @@ public final class Env
if (ctxInfo.length() == 0 && (token.startsWith("#") || token.startsWith("$")) )
ctxInfo = getContext(ctx, token); // get global context
if (ctxInfo.length() == 0)
{
if (token.endsWith("_ID"))
{
outStr.append("0");
}
else
{
s_log.config("No Context Win=" + WindowNo + " for: " + token);
if (!ignoreUnparsable)
return ""; // token not found
}
}
else
outStr.append(ctxInfo); // replace context with Context