summaryrefslogtreecommitdiff
path: root/java/src/Ice/Util.java
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2012-04-26 18:37:38 +0200
committerBenoit Foucher <benoit@zeroc.com>2012-04-26 18:37:38 +0200
commitde59ae055c776b69a9552335f2ce9920ae1e7305 (patch)
tree2f2b3a439650fd1a2ccd8d9fe5264f8239f7ebe8 /java/src/Ice/Util.java
parentMerge remote-tracking branch 'origin/master' into encoding11 (diff)
downloadice-de59ae055c776b69a9552335f2ce9920ae1e7305.tar.bz2
ice-de59ae055c776b69a9552335f2ce9920ae1e7305.tar.xz
ice-de59ae055c776b69a9552335f2ce9920ae1e7305.zip
Win32 fixes, C# port
Diffstat (limited to 'java/src/Ice/Util.java')
-rw-r--r--java/src/Ice/Util.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/java/src/Ice/Util.java b/java/src/Ice/Util.java
index 55608170ecb..c18e1222b82 100644
--- a/java/src/Ice/Util.java
+++ b/java/src/Ice/Util.java
@@ -528,7 +528,7 @@ public final class Util
/**
* Converts a string to a protocol version.
*
- * @param s The string to convert.
+ * @param version The string to convert.
*
* @return The converted protocol version.
**/
@@ -541,7 +541,7 @@ public final class Util
/**
* Converts a string to an encoding version.
*
- * @param s The string to convert.
+ * @param version The string to convert.
*
* @return The converted object identity.
**/
@@ -616,12 +616,12 @@ public final class Util
}
catch(NumberFormatException ex)
{
- throw new Ice.EndpointParseException("invalid version value `" + str + "'");
+ throw new Ice.VersionParseException("invalid version value `" + str + "'");
}
if(majVersion < 1 || majVersion > 255)
{
- throw new Ice.EndpointParseException("range error in version `" + str + "'");
+ throw new Ice.VersionParseException("range error in version `" + str + "'");
}
return (byte)majVersion;
@@ -644,12 +644,12 @@ public final class Util
}
catch(NumberFormatException ex)
{
- throw new Ice.EndpointParseException("invalid version value `" + str + "'");
+ throw new Ice.VersionParseException("invalid version value `" + str + "'");
}
if(minVersion < 0 || minVersion > 255)
{
- throw new Ice.EndpointParseException("range error in version `" + str + "'");
+ throw new Ice.VersionParseException("range error in version `" + str + "'");
}
return (byte)minVersion;