harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r478778 - in /harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound: midi/VoiceStatus.java sampled/FloatControl.java sampled/Line.java sampled/Mixer.java sampled/Port.java sampled/ReverbType.java
Date Fri, 24 Nov 2006 06:26:55 GMT
Author: mloenko
Date: Thu Nov 23 22:26:52 2006
New Revision: 478778

URL: http://svn.apache.org/viewvc?view=rev&rev=478778
Log:
mark not implemented methods to get more real JAPI results

Modified:
    harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/midi/VoiceStatus.java
    harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/FloatControl.java
    harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Line.java
    harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Mixer.java
    harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Port.java
    harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/ReverbType.java

Modified: harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/midi/VoiceStatus.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/midi/VoiceStatus.java?view=diff&rev=478778&r1=478777&r2=478778
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/midi/VoiceStatus.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/midi/VoiceStatus.java
Thu Nov 23 22:26:52 2006
@@ -17,6 +17,8 @@
 
 package javax.sound.midi;
 
+import org.apache.harmony.luni.util.NotImplementedException;
+
 public class VoiceStatus {
     public boolean active;
 
@@ -30,8 +32,8 @@
 
     public int volume;
 
-    public VoiceStatus() {
+    public VoiceStatus() throws NotImplementedException {
         // TODO
-        throw new Error("not yet implemented");
+        throw new NotImplementedException("not yet implemented");
     }
 }

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=478778&r1=478777&r2=478778
==============================================================================
--- 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
Thu Nov 23 22:26:52 2006
@@ -17,6 +17,8 @@
 
 package javax.sound.sampled;
 
+import org.apache.harmony.luni.util.NotImplementedException;
+
 public abstract class FloatControl extends Control {
 
     public static class Type extends Control.Type {
@@ -132,12 +134,12 @@
         return this.updatePeriod;
     }
 
-    public void shift(float from, float to, int microseconds) {
-        throw new Error("Not yet implemented");
+    public void shift(float from, float to, int microseconds) throws NotImplementedException
{
+        throw new NotImplementedException("not yet implemented");
     }
 
-    public String toString() {
-        throw new Error("Not yet implemented");
+    public String toString() throws NotImplementedException {
+        throw new NotImplementedException("not yet implemented");
     }
 
 }

Modified: harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Line.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Line.java?view=diff&rev=478778&r1=478777&r2=478778
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Line.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Line.java
Thu Nov 23 22:26:52 2006
@@ -17,6 +17,8 @@
 
 package javax.sound.sampled;
 
+import org.apache.harmony.luni.util.NotImplementedException;
+
 public interface Line {
 
     class Info {
@@ -30,13 +32,13 @@
             return lineClass;
         }
 
-        public boolean matches(Line.Info info) {
-            throw new Error("not yet implemented");
+        public boolean matches(Line.Info info) throws NotImplementedException {
+            throw new NotImplementedException("not yet implemented");
         }
         
         @Override
-        public String toString() {
-            throw new Error("not yet implemented");
+        public String toString() throws NotImplementedException {
+            throw new NotImplementedException("not yet implemented");
         }
     }
 

Modified: harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Mixer.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Mixer.java?view=diff&rev=478778&r1=478777&r2=478778
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Mixer.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Mixer.java
Thu Nov 23 22:26:52 2006
@@ -17,6 +17,8 @@
 
 package javax.sound.sampled;
 
+import org.apache.harmony.luni.util.NotImplementedException;
+
 public interface Mixer extends Line {
     static class Info{
         private String name;
@@ -58,8 +60,8 @@
         }
         
         @Override
-        public String toString() {
-            throw new Error("not yet implemented");
+        public String toString() throws NotImplementedException {
+            throw new NotImplementedException("not yet implemented");
         }
     }
 

Modified: harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Port.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Port.java?view=diff&rev=478778&r1=478777&r2=478778
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Port.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Port.java
Thu Nov 23 22:26:52 2006
@@ -19,6 +19,8 @@
 
 import javax.sound.sampled.Line;
 
+import org.apache.harmony.luni.util.NotImplementedException;
+
 public interface Port extends Line {
 
     public static class Info extends Line.Info {
@@ -58,20 +60,20 @@
             return this.isSource;
         }
 
-        public boolean matches(Line.Info info) {
-            throw new Error("not yet implemented");
+        public boolean matches(Line.Info info) throws NotImplementedException {
+            throw new NotImplementedException("not yet implemented");
         }
 
-        public final boolean equals(Object obj) {
-            throw new Error("not yet implemented");
+        public final boolean equals(Object obj) throws NotImplementedException {
+            throw new NotImplementedException("not yet implemented");
         }
 
-        public final int hashCode() {
-            throw new Error("not yet implemented");
+        public final int hashCode() throws NotImplementedException {
+            throw new NotImplementedException("not yet implemented");
         }
 
-        public final String toString() {
-            throw new Error("not yet implemented");
+        public final String toString() throws NotImplementedException {
+            throw new NotImplementedException("not yet implemented");
         }
     }
 }

Modified: harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/ReverbType.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/ReverbType.java?view=diff&rev=478778&r1=478777&r2=478778
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/ReverbType.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/ReverbType.java
Thu Nov 23 22:26:52 2006
@@ -17,6 +17,8 @@
 
 package javax.sound.sampled;
 
+import org.apache.harmony.luni.util.NotImplementedException;
+
 public class ReverbType {
 
     protected ReverbType(String name, int earlyReflectionDelay,
@@ -66,15 +68,15 @@
         return this.decayTime;
     }
 
-    public final boolean equals(Object obj) {
-        throw new Error("Not yet implemented");
+    public final boolean equals(Object obj) throws NotImplementedException {
+        throw new NotImplementedException("not yet implemented");
     }
 
-    public final int hashCode() {
-        throw new Error("Not yet implemented");
+    public final int hashCode() throws NotImplementedException {
+        throw new NotImplementedException("not yet implemented");
     }
 
-    public final String toString() {
-        throw new Error("Not yet implemented");
+    public final String toString() throws NotImplementedException {
+        throw new NotImplementedException("not yet implemented");
     }
 }



Mime
View raw message