Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] thisJoinPoint and if() Performance

Hi all,

is there a reason why following pointcut & advice

	before() : execution(* BlaBla.*(..)) && if (someCondition) {
		JoinPoint jp = thisJoinPoint;
	}

is translated (in bytecode) to something like:

	[...]
	invokestatic <org/aspectj/runtime/reflect/Factory.makeJP>
	[...]
	invokestatic <...$if_0>

Invoking ...$if_0 before getting the Joinpoint makes more sense in my opinion and furthermore would increase performance (in case of SomeCondition = false) dramatically.

Regards,
Simon


Back to the top