RE: may be i find a bug
"Jon Tirsén" <[email protected]> Wed, 19 Mar 2003 08:47:33 +0100
| Newsgroups | gmane.comp.java.nanning.devel |
|---|---|
| Message-ID | <000001c2edeb$ce225850$6c4a59d5@jon> |
王先生您好。:-) That seems to be a bug. I'll get onto it later today. It’s probably in the attributes implementation (it’s a bit weird). It could also explain some strange things I get at one of the projects at work. 谢谢 > -----Original Message----- > From: [email protected] [mailto:nanning- > [email protected]] On Behalf Of yiming wang > Sent: Wednesday, March 19, 2003 6:55 AM > To: [email protected] > Subject: [Nanning-developer] may be i find a bug > > 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 > _______________________________________________ > Nanning-developer mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/nanning-developer