Hello,
I have a method like
public int retrieveSomething( String agentID, IntHolder value){
value = new IntHolder();
...
value = <assign something>
}
This method is intercepted, but there is a problem with "value" parameter. It is not updated by method.proceed() invocation.
How can I walkaround this problem?
best regards
Piotr Rezmer


Reply With Quote
. Which will work inside the method, but won't affect anything outside of it. So, you can't change the reference, but you can call setters on IntHolder to set value(s). If you Google for 'java pass by reference' there is a Java World article on this.

