XMLErrorResources and XPATHErrorResources mix messages with Java code
---------------------------------------------------------------------
Key: XALANJ-2022
URL: http://nagoya.apache.org/jira/browse/XALANJ-2022
Project: XalanJ2
Type: Improvement
Components: Diagnostic-messages-resources
Reporter: Brian Minchau
Priority: Minor
Except for the _sv language this is only a nice to have, organizational issue.
The message files XMLErrorResources.java has:
- message keys
- Java code to load resource bundles
- English messages
When translated, each of the translations (e.g. XMLErrorResources_ca.java )
got copies of all of these things, when all that is really needed is just the
messages.
One exception is XMLErrorResources_sv. Unlike the other translations this one
does not extend ListResourceBundle, as it should, but it extends
XMLErrorResources
and so it indirectly extends ListResourceBundle. Still this is not the way it
should be.
Have a look at the serializer in org.apache.xml.serializer. It has:
MsgKeys - nothing but message keys
Messages - nothing but code to load the resource bundle
SerializerMessages - all the language flavours, but with nothing but
implementation of getContents() with the messages and nothing else.
------------------------------
XPATHErrorResources is in the same organization state as XMLErrorResources,
including
the issue with XPATHErrorResources_sv.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]