"Cannot write into the dependency field" exception

1 view
Skip to first unread message

alecswan

unread,
Mar 10, 2011, 4:23:12 PM3/10/11
to Salve
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
Reply all
Reply to author
Forward
0 new messages