Hi devs,

This week I introduced the support for chainable uberspectors, and 
beside the SecureUberspector that was used before, now there's also a 
DeprecatedCheckUberspector, that prints a warning in the logs whenever a 
deprecated method is called from velocity.

Several things I'd like to emphasize:
- These logs break the validity check done in the XmlRpc tests, so this 
allows us to detect (almost) any usage of the deprecated methods in wiki 
documents and update these documents
- It also means that we can't make a product release while there are 
deprecated calls in the wiki pages
- "deprecated" means "having the @Deprecated annotation". There's no 
(simple) way of checking for the @deprecated doclet.
- whenever something gets deprecated, be sure to add this annotation, as 
otherwise the calls to the deprecated method won't be detected
- could someone help with cleaning the wiki source in order to fix the 
builds on the 1.5-depending products? Just look at the continuum build 
results (for example 
http://continuum.xwiki.org/continuum/buildResult.action?buildId=20015&projectId=257&projectGroupId=6)
 
and look for messages like:
[WARNING] Deprecated usage of method [com.xpn.xwiki.api.XWiki.parseInt] 
in [EMAIL PROTECTED],25
and update the affected document (could be a GSoC student...)
- the logged document name is not always right, as it doesn't reflect 
inclusions and calls to $xwiki.parseText

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to