Taking a look at the Java i18n tutorial, extending ListResourceBundle doesn't require subclassing the default bundle; see here.
Then taking a look at the ResourceBundle javadocs and their custom resource bundle example, you *do* have to extend the default bundle; see here.
So:
public class MyListResources_it extends ListResourceBundle {
...
}
as opposed to:
public class MyResources_it extends MyResources {
...
}
Kind of a confusing inconsistency - maybe the ListResourceBundle is just smarter about its look up.
No comments:
Post a Comment