Hi Neeme!
Great work!
> Neeme Praks wrote:
>
> I made some major revisions to the i18n stuff (XMLResourceBundle):
> * better integration with Avalon (logging, component and other
> * interfaces implemented)
> * XMLResourceBundle now extends java.util.ResourceBundle. However, if
> * you want it to work as a "drop-in" replacement, then you need to turn on
>the "pre-loading" of all resources.
> * API changes, the method for getting a bundle is now more
> * "Avalon-like", select().
> * all methods are now with JavaDoc.
> * ResourceCheck moved to i18n.util package, as it an utility.
>
> TODO:
> * I haven't tested if it actually still works, I guess I need to write
> * some small avalon app for that :-)
I've just had a look at the updated code. Looks good, however I
receive a ClassCastException from within the XMLResourceBundleFactory
updateCache method:
DEBUG 943 [log ] (main): Updating cache: ./messages.xml
ERROR 945 [log ] (main): Error while loading resource: messages, locale en,
bundleName ./messages_en.xml
java.lang.ClassCastException: XMLResourceBundle
at XMLResourceBundleFactory.updateCache(XMLResourceBundleFactory.java:412)
at XMLResourceBundleFactory._select(XMLResourceBundleFactory.java:253)
at XMLResourceBundleFactory.selectParent(XMLResourceBundleFactory.java:172)
at XMLResourceBundleFactory.selectParent(XMLResourceBundleFactory.java:1
...<snip>...
Seems like it's trying to cast an XMLResourceBundle to an Avalon
Component - is this what you intended ? Should XMLResourceBundle
implement Component ?
Cheers,
Marcus
--
.....
,,$$$$$$$$$, Marcus Crafter
;$' '$$$$: Computer Systems Engineer
$: $$$$: Open Software Associates GmbH
$ o_)$$$: 82-84 Mainzer Landstrasse
;$, _/\ &&:' 60327 Frankfurt Germany
' /( &&&
\_&&&&' Email : [EMAIL PROTECTED]
&&&&. Business Hours : +49 69 9757 200
&&&&&&&: After Hours : +49 69 49086750
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]