You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-dev@portals.apache.org by jm...@apache.org on 2005/04/12 00:07:15 UTC
cvs commit: ws-wsrp4j/src/org/apache/wsrp4j/exception Messages.java
jmacna 2005/04/11 15:07:15
Modified: src/org/apache/wsrp4j/exception Messages.java
Log:
Fixed WSR4J-37: Properties file in class org.apache.wsrp4j.exception.Messages never gets initialized
Revision Changes Path
1.4 +2 -2 ws-wsrp4j/src/org/apache/wsrp4j/exception/Messages.java
Index: Messages.java
===================================================================
RCS file: /home/cvs/ws-wsrp4j/src/org/apache/wsrp4j/exception/Messages.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Messages.java 9 Mar 2004 21:42:14 -0000 1.3
+++ Messages.java 11 Apr 2005 22:07:15 -0000 1.4
@@ -67,13 +67,13 @@
Private constructor loads messages from <code>messages.properties</code> file in
<code>org.apache.wsrp4j.exception</code>
*/
- private Messages()
+ static
{
//load properties file
try
{
- InputStream in = getClass().getClassLoader().getResourceAsStream(FILE_MSG_PROPERTIES);
+ InputStream in = Messages.class.getClassLoader().getResourceAsStream(FILE_MSG_PROPERTIES);
msgMap.load(in);
} catch (Exception e)
{