Fields not rewritten when modifying existing methods
----------------------------------------------------
Key: TAPESTRY-1834
URL: https://issues.apache.org/jira/browse/TAPESTRY-1834
Project: Tapestry
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.0.6
Reporter: Dan Adams
Priority: Blocker
After doing some exploratory testing this actually is a problem and can be
reproduced with the following test page:
public class TestPrefixMethod
{
@InjectPage
private TestPrefixMethod2 _otherPage;
@PlusOne
public int getValue() {
// call hashCode() just to access the injected member
int value = _otherPage.hashCode();
return value * 0;
}
}
@PlusOne is a test annotation that simply returns the method value + 1. When
you call getValue() it should return 1 but instead you get an exception:
java.lang.NoSuchFieldError: _otherPage
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]