7171import lucee .transformer .expression .var .NamedMember ;
7272import lucee .transformer .expression .var .Variable ;
7373import lucee .transformer .interpreter .literal .LitStringImpl ;
74+ import lucee .transformer .library .ClassDefinitionImpl ;
7475import lucee .transformer .library .function .FunctionLibFunction ;
7576import lucee .transformer .library .function .FunctionLibFunctionArg ;
7677import lucee .transformer .library .tag .TagLibTag ;
@@ -127,6 +128,7 @@ public final class VariableImpl extends ExpressionBase implements Variable {
127128 private static final Method STATIC_GET1 = new Method ("staticGet" , Types .OBJECT , new Type [] { Types .OBJECT });
128129 private static final Method STATIC_TOUCH1 = new Method ("staticTouch" , Types .OBJECT , new Type [] { Types .OBJECT });
129130 private static final Method INVOKE3 = new Method ("invoke" , Types .OBJECT , new Type [] { Types .PAGE_CONTEXT , Types .OBJECT_ARRAY , Types .STRING });
131+ private static final Method INVOKE4 = new Method ("invoke" , Types .OBJECT , new Type [] { Types .PAGE_CONTEXT , Types .OBJECT_ARRAY , Types .STRING , Types .STRING });
130132 private static final Method INVOKE5 = new Method ("invoke" , Types .OBJECT , new Type [] { Types .PAGE_CONTEXT , Types .OBJECT_ARRAY , Types .STRING , Types .STRING , Types .STRING });
131133
132134 // GET
@@ -549,8 +551,7 @@ static Type _writeOutFirstBIF(BytecodeContext bc, BIF bif, int mode, boolean las
549551 try {
550552 if (clazzz .getMethods ("call" , true , -1 ).size () == 0 ) core = false ;
551553 }
552- catch (Exception e ) {
553- }
554+ catch (Exception e ) {}
554555 }
555556 // load method
556557 List <lucee .transformer .dynamic .meta .Method > methods = null ;
@@ -559,8 +560,7 @@ static Type _writeOutFirstBIF(BytecodeContext bc, BIF bif, int mode, boolean las
559560 methods = clazzz .getMethods ("call" , true , args .length + 1 );
560561 if (methods != null && methods .size () == 0 ) methods = null ;
561562 }
562- catch (Exception e ) {
563- }
563+ catch (Exception e ) {}
564564 }
565565
566566 if (bif .getArgType () == FunctionLibFunction .ARG_FIX && !bifCD .isBundle () && core ) {
@@ -722,6 +722,11 @@ static Type _writeOutFirstBIF(BytecodeContext bc, BIF bif, int mode, boolean las
722722
723723 adapter .invokeStatic (Types .FUNCTION_HANDLER_POOL , INVOKE5 );
724724 }
725+ else if (((ClassDefinitionImpl ) bifCD ).isMaven ()) {
726+ adapter .push (((ClassDefinitionImpl ) bifCD ).getMavenRaw ());// maven data
727+
728+ adapter .invokeStatic (Types .FUNCTION_HANDLER_POOL , INVOKE4 );
729+ }
725730 else adapter .invokeStatic (Types .FUNCTION_HANDLER_POOL , INVOKE3 );
726731 rtnType = Types .OBJECT ;
727732 }
0 commit comments