Hello,
I am using Salve 3.0 (with Wicket 1.4.x).
I have an abstract class with a private property defined as follows:
@Dependency
private transient ReferralService referralService;
I get the following exception during compile-time instrumentation:
"Cannot write into the dependency field
see also: ...\salve-3.0\salve-depend-aspects-3.0-SNAPSHOT.jar!
salve\depend\DependencyAspect.class:21::0"
The exception goes away when I change the annotation to
@Dependency(strategy = InstrumentationStrategy.INJECT_FIELD).
Could anybody explain why the error occurs and the consequences of
using INJECT_FIELD strategy?
Thanks