may be i find a bug
yiming wang <[email protected]> Tue, 18 Mar 2003 21:55:28 -0800 (PST)
| Newsgroups | gmane.comp.java.nanning.devel |
|---|---|
| Message-ID | <[email protected]> |
add following code to Interface MyObject:
/**
* @transaction
*/
void setABC(String[] abc);
add some test case to test this new method, i find it
can't result in command-log.
i track into the code :
addPointcut(new Pointcut(new InterceptorAdvise(this))
{
protected boolean adviseMethod(
MixinInstance mixinInstance,
Method method) {
String kk = method.getDeclaringClass().getName();
boolean check = Attributes.hasAttribute(method,
"transaction");
String str1 = method.getName();
return Attributes.hasAttribute(method,
"transaction");
}
});
if the method is "setABC", then return "false" not as
expect "true".
if we change parameter type "String[]" to "String", it
is ok!
so, i think there maybe a bug existed.
Regards!
wang yiming
from nanning, china (a joy!)
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink?
You could win a Tablet PC. Get a free Tablet PC hat just for playing.
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en