harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r910085 - in /harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet: AppletThread.java Connection.java Proxy.java internal/nls/messages.properties
Date Sun, 14 Feb 2010 22:09:23 GMT
Author: hindessm
Date: Sun Feb 14 22:09:22 2010
New Revision: 910085

URL: http://svn.apache.org/viewvc?rev=910085&view=rev
Log:
Convert exception messages to use nls properties.

Modified:
    harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/AppletThread.java
    harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/Connection.java
    harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/Proxy.java
    harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/internal/nls/messages.properties

Modified: harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/AppletThread.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/AppletThread.java?rev=910085&r1=910084&r2=910085&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/AppletThread.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/AppletThread.java
Sun Feb 14 22:09:22 2010
@@ -22,6 +22,7 @@
 import java.util.List;
 import java.util.Collections;
 import java.util.LinkedList;
+import org.apache.harmony.applet.internal.nls.Messages;
 
 
 /**
@@ -79,7 +80,7 @@
     
     void exit() {
         if (Thread.currentThread() != this) {
-            throw new InternalError("Attempt to stop applet main thread outside of that thread");
+            throw new InternalError(Messages.getString("applet.01"));
         }
         synchronized(monitor) {
             doExit = true;

Modified: harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/Connection.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/Connection.java?rev=910085&r1=910084&r2=910085&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/Connection.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/Connection.java
Sun Feb 14 22:09:22 2010
@@ -27,6 +27,7 @@
 import java.util.HashMap;
 import java.util.Map;
 import org.apache.harmony.awt.ContextStorage;
+import org.apache.harmony.applet.internal.nls.Messages;
 
 
 /**
@@ -50,7 +51,7 @@
         try {
             port = Integer.parseInt(args[0]);
         } catch (Exception e) {
-            throw new IllegalArgumentException("Invalid port");
+            throw new IllegalArgumentException(Messages.getString("applet.02"));
         }
         
         Connection c = new Connection(port);

Modified: harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/Proxy.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/Proxy.java?rev=910085&r1=910084&r2=910085&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/Proxy.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/Proxy.java
Sun Feb 14 22:09:22 2010
@@ -28,6 +28,7 @@
 import java.net.URL;
 
 import org.apache.harmony.awt.ComponentInternals;
+import org.apache.harmony.applet.internal.nls.Messages;
 
 
 /**
@@ -73,7 +74,7 @@
     private void createImpl() {
         Toolkit toolkit = Toolkit.getDefaultToolkit();
         if (toolkit == null) {
-            throw new InternalError("Toolkit is null");
+            throw new InternalError(Messages.getString("applet.03"));
         }
         
         if ((params.container != null) && (params.container instanceof Container))
{ 

Modified: harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/internal/nls/messages.properties
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/internal/nls/messages.properties?rev=910085&r1=910084&r2=910085&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/internal/nls/messages.properties
(original)
+++ harmony/enhanced/classlib/trunk/modules/applet/src/main/java/org/apache/harmony/applet/internal/nls/messages.properties
Sun Feb 14 22:09:22 2010
@@ -15,3 +15,6 @@
 # 
 
 # messages for EN locale
+applet.01=Attempt to stop applet main thread outside of that thread
+applet.02=Invalid port
+applet.03=Toolkit is null



Mime
View raw message