harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r482521 - in /harmony/enhanced/classlib/trunk/modules/sound/src/main/java: javax/sound/sampled/FloatControl.java org/apache/harmony/sound/internal/nls/messages.properties
Date Tue, 05 Dec 2006 06:38:16 GMT
Author: smishura
Date: Mon Dec  4 22:38:15 2006
New Revision: 482521

URL: http://svn.apache.org/viewvc?view=rev&rev=482521
Log:
Fix for FloatControl.setValue(): get exception message from resource bundle

Modified:
    harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/FloatControl.java
    harmony/enhanced/classlib/trunk/modules/sound/src/main/java/org/apache/harmony/sound/internal/nls/messages.properties

Modified: harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/FloatControl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/FloatControl.java?view=diff&rev=482521&r1=482520&r2=482521
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/FloatControl.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/FloatControl.java
Mon Dec  4 22:38:15 2006
@@ -17,6 +17,8 @@
 
 package javax.sound.sampled;
 
+import org.apache.harmony.sound.internal.nls.Messages;
+
 public abstract class FloatControl extends Control {
 
     public static class Type extends Control.Type {
@@ -86,7 +88,8 @@
 
     public void setValue(float newValue) {
         if (newValue > maximum || newValue < minimum) {
-            throw new IllegalArgumentException("value does not fall within the allowable
range"); //$NON-NLS-1$
+            // sound.0F=value does not fall within the allowable range
+            throw new IllegalArgumentException(Messages.getString("sound.0F")); //$NON-NLS-1$
         }
         this.value = newValue;
     }

Modified: harmony/enhanced/classlib/trunk/modules/sound/src/main/java/org/apache/harmony/sound/internal/nls/messages.properties
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/org/apache/harmony/sound/internal/nls/messages.properties?view=diff&rev=482521&r1=482520&r2=482521
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sound/src/main/java/org/apache/harmony/sound/internal/nls/messages.properties
(original)
+++ harmony/enhanced/classlib/trunk/modules/sound/src/main/java/org/apache/harmony/sound/internal/nls/messages.properties
Mon Dec  4 22:38:15 2006
@@ -28,3 +28,4 @@
 sound.0B=Unsupported division type: {0}
 sound.0C=Frame size must be one byte
 sound.0D=The value is not supported
+sound.0F=value does not fall within the allowable range



Mime
View raw message