Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Are there any caveats regarding ResourceBundle names?

caveats names resourcebundle
0
10 Posted

Are there any caveats regarding ResourceBundle names?

0
10

Location: http://www.jguru.com/faq/view.jsp?EID=410785 Created: Apr 26, 2001 Author: Joe Sam Shirah (http://www.jguru.com/guru/viewbio.jsp?EID=42100) The primary one is do not name a ResourcePropertyBundle ( less the “.properties” extension ) the same as the application or any other class. The only exception would be for a ListResourceBundle intended to override a properties file. This is pointed out in the API documentation for ResourcePropertyBundle: If a real class and a properties file with a particular name both exist, the class wins; the properties file will only be used if there is no class with the desired name. To make matters worse, this is inconsistently implemented among VMs. To lessen the chances of unexpected results, use a naming convention for ResourceBundles that is different from your standard class names, like MyApp_rb.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123