dcsimg
when we should use ListResourceBundle or PropertiesResourceBundle insteadof ResourceBundle
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   devaki_perumal
Posted On:   Thursday, August 2, 2001 04:23 AM

when we should use ListResourceBundle or PropertiesResourceBundle insteadof ResourceBundle.Give an example.
i store a key value as String array ie
keyX={"yy","xx"};
but getStringArray(keyX) gives ClassCastException
how should i store the key value?

Re: when we should use ListResourceBundle or PropertiesResourceBundle insteadof ResourceBundle

Posted By:   John_Zukowski  
Posted On:   Friday, August 3, 2001 08:01 AM

I don't quite understand your question. ListResourceBundle and PropertiesResourceBundle are specific types of resource bundles. Your code should never require that a resource bundle is of either type, only ResourceBundle.


Regarding your ClassCastException, getStringArray() returns a String[], not a ResourceBundle, so there should be no casting whatsoever.

About | Sitemap | Contact