Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Sybex CSG17 - Chapter 11 Page 644 - Possible imprecise wording

 
Greenhorn
Posts: 19
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the last sentence on page 644, it states:

Even when the property wasn't found in en_CA or en resource bundles, the program preferred using Zoo.properties (the default resource bundle) rather than Zoo_en_US.properties (the default locale).



I believe it is imprecise to say that the program prefers using the default resource bundle rather than the resource bundle for the default locale. Unless I'm misunderstanding, the program will never use the resource bundle for the default locale. I tried this out locally by changing the Zoo_en_US.properties file as follows:


Then replacing line 18 of the program with


As I expected, I got a MissingResourceException. Saying the program prefers the default resource bundle over the resource bundle for the default locale could be read to suggest that the resource bundle for the default locale is considered after that.
 
author & internet detective
Posts: 41967
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This sounds like an English thing. Preferred was us saying it uses Zoo.properties .
 
reply
    Bookmark Topic Watch Topic
  • New Topic