harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r927802 - in /harmony/enhanced/trunk/classlib/modules/luni/src/main/java: java/io/EmulatedFieldsForDumping.java org/apache/harmony/luni/internal/nls/messages.properties
Date Fri, 26 Mar 2010 12:31:51 GMT
Author: odeakin
Date: Fri Mar 26 12:31:51 2010
New Revision: 927802

URL: http://svn.apache.org/viewvc?rev=927802&view=rev
Log:
Move exception message out to messages.properties file.

Modified:
    harmony/enhanced/trunk/classlib/modules/luni/src/main/java/java/io/EmulatedFieldsForDumping.java
    harmony/enhanced/trunk/classlib/modules/luni/src/main/java/org/apache/harmony/luni/internal/nls/messages.properties

Modified: harmony/enhanced/trunk/classlib/modules/luni/src/main/java/java/io/EmulatedFieldsForDumping.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/trunk/classlib/modules/luni/src/main/java/java/io/EmulatedFieldsForDumping.java?rev=927802&r1=927801&r2=927802&view=diff
==============================================================================
--- harmony/enhanced/trunk/classlib/modules/luni/src/main/java/java/io/EmulatedFieldsForDumping.java
(original)
+++ harmony/enhanced/trunk/classlib/modules/luni/src/main/java/java/io/EmulatedFieldsForDumping.java
Fri Mar 26 12:31:51 2010
@@ -17,6 +17,8 @@
 
 package java.io;
 
+import org.apache.harmony.luni.internal.nls.Messages;
+
 /**
  * An EmulatedFieldsForDumping is an object that represents a set of emulated
  * fields for an object being dumped. It is a concrete implementation for
@@ -198,7 +200,8 @@ class EmulatedFieldsForDumping extends O
     @Deprecated
     public void write(ObjectOutput output) throws IOException {
         if (!output.equals(oos)) {
-            throw new IllegalArgumentException("Attempting to write to a stream that did
not create this PutField");
+            // luni.E0=Attempting to write to a stream that did not create this PutField
+            throw new IllegalArgumentException(Messages.getString("luni.E0")); //$NON-NLS-1$
         }
 
         EmulatedFields.ObjectSlot[] slots = emulatedFields.slots();

Modified: harmony/enhanced/trunk/classlib/modules/luni/src/main/java/org/apache/harmony/luni/internal/nls/messages.properties
URL: http://svn.apache.org/viewvc/harmony/enhanced/trunk/classlib/modules/luni/src/main/java/org/apache/harmony/luni/internal/nls/messages.properties?rev=927802&r1=927801&r2=927802&view=diff
==============================================================================
--- harmony/enhanced/trunk/classlib/modules/luni/src/main/java/org/apache/harmony/luni/internal/nls/messages.properties
(original)
+++ harmony/enhanced/trunk/classlib/modules/luni/src/main/java/org/apache/harmony/luni/internal/nls/messages.properties
Fri Mar 26 12:31:51 2010
@@ -238,3 +238,4 @@ luni.DC=CharsetName is illegal
 luni.DD=ReadableByteChannel is null
 luni.DE=Radix {0} is less than Character.MIN_RADIX or greater than Character.MAX_RADIX
 luni.DF={0} is an illegal radix
+luni.E0=Attempting to write to a stream that did not create this PutField



Mime
View raw message