diff options
author | Mark Spruiell <mes@zeroc.com> | 2003-10-15 15:34:25 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2003-10-15 15:34:25 +0000 |
commit | 619cce9076d2685668763133b5f5addd938fabd3 (patch) | |
tree | ac956bfaaa5bcdff8ab93711855b73bdcf05d8ec /java/src | |
parent | file StaticMutexTest.cpp was initially added on branch gc. (diff) | |
download | ice-619cce9076d2685668763133b5f5addd938fabd3.tar.bz2 ice-619cce9076d2685668763133b5f5addd938fabd3.tar.xz ice-619cce9076d2685668763133b5f5addd938fabd3.zip |
change assert to throw MarshalException
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/IceInternal/BasicStream.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/java/src/IceInternal/BasicStream.java b/java/src/IceInternal/BasicStream.java index 79081979771..3acac5097bf 100644 --- a/java/src/IceInternal/BasicStream.java +++ b/java/src/IceInternal/BasicStream.java @@ -1600,7 +1600,10 @@ public class BasicStream private String typeToClass(String id) { - assert(id.startsWith("::")); + if(!id.startsWith("::")) + { + throw new Ice.MarshalException(); + } return id.substring(2).replaceAll("::", "."); } |