<br><font size=2 face="sans-serif">The ResourceBundle API does not only
use resource (*.properties) lookups. &nbsp;It also attempts class loads
to find resource bundles, effectively needing to load classes from a split
package.</font>
<br><font size=2 face="sans-serif"><br>
Glyn</font>
<br>
<br><font size=1 face="sans-serif"><b>Michal Cierniak &lt;cierniak@GOOGLE.COM&gt;</b></font><tt><font size=2>
wrote on 15/05/2007 00:36:51:<br>
<br>
&gt; I think that it's reasonable if we decide that the only way that split<br>
&gt; packages may manifest themselves is as resources via the<br>
&gt; ResourceBundle API. &nbsp;I was worried about code for the same package<br>
&gt; coming from multiple modules but it seems that you're not suggesting<br>
&gt; this.<br>
&gt; <br>
&gt; Thanks!<br>
&gt; Michal<br>
&gt; <br>
&gt; On 5/14/07, Stanley M. Ho &lt;Stanley.Ho@sun.com&gt; wrote:<br>
&gt; &gt; Hi Michal,<br>
&gt; &gt;<br>
&gt; &gt; Yes, the i18n strawman currently assumes that the class-based
resource<br>
&gt; &gt; bundles in multiple modules are in the same Java package (but
each with<br>
&gt; &gt; different superpackage membership), and this is consistent with
the<br>
&gt; &gt; existing practice in using the java.util.ResourceBundle API.<br>
&gt; &gt;<br>
&gt; &gt; Based on the earlier EG discussions, we have agreed to explicitly<br>
&gt; &gt; disallow split packages during shallow validation so developers
are not<br>
&gt; &gt; encouraged to use them and we don't have to deal with all the
issues<br>
&gt; &gt; that split packages may cause. However, the existing i18n practice<br>
&gt; &gt; somewhat contradicts what we encourage developers to do.<br>
&gt; &gt;<br>
&gt; &gt; That said, this may not be a big problem after all, since split
packages<br>
&gt; &gt; would still be disallowed during module initialization. This
also<br>
&gt; &gt; implies that a target module can't import resource modules directly
and<br>
&gt; &gt; must rely on the ResourceBundle API to look up resources, and
personally<br>
&gt; &gt; I think this is acceptable (if other EG members have different
opinions,<br>
&gt; &gt; I would like to hear them). Therefore, we could still discourage
split<br>
&gt; &gt; packages in general and only let developers use them in this
special case.<br>
&gt; &gt;<br>
&gt; &gt; The obvious alternative is to require class-based resource bundles
in<br>
&gt; &gt; multiple modules to be in different Java packages. Unfortunately,
this<br>
&gt; &gt; is incompatible with the existing practice in translating resource<br>
&gt; &gt; bundles, and I'm concerned that this would hurt adoption.<br>
&gt; &gt;<br>
&gt; &gt; What do you think?<br>
&gt; &gt;<br>
&gt; &gt; - Stanley<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Michal Cierniak wrote:<br>
&gt; &gt; &gt; Stanley,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; It is not clear to me from the doc if i8n relies on the
assumption<br>
&gt; &gt; &gt; that a package may be split across multiple modules. &nbsp;Can
you clarify?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thanks,<br>
&gt; &gt; &gt; Michal<br>
&gt; &gt;<br>
</font></tt><font size=3 face="sans-serif"><br>
</font>
<br><font size=3 face="sans-serif"><br>
</font>
<hr><font size=2 face="sans-serif"><br>
<i><br>
</i></font>
<p><font size=2 face="sans-serif"><i>Unless stated otherwise above:<br>
IBM United Kingdom Limited - Registered in England and Wales with number
741598. <br>
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU</i></font>
<p><font size=2 face="sans-serif"><br>
</font><font size=3 face="sans-serif"><br>
</font>
<br>
<br><font size=3 face="sans-serif"><br>
</font>