Changed ikvmres protocol handler to be compatible with both GNU Classpath and OpenJDK url parse exception throwing convention.

This commit is contained in:
jfrijters 2007-08-15 14:01:23 +00:00
Родитель 3d0a4c552a
Коммит 4d28e15c3e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -186,7 +186,7 @@ public class Handler extends URLStreamHandler
int slash = url_string.indexOf('/', 2);
if(slash == -1)
{
throw new gnu.java.net.URLParseError("ikvmres: URLs must contain path");
throw new RuntimeException("ikvmres: URLs must contain path");
}
String assembly = unquote(url_string.substring(2, slash));
String file = unquote(url_string.substring(slash));
@ -230,7 +230,7 @@ public class Handler extends URLStreamHandler
}
catch(URISyntaxException x)
{
throw new gnu.java.net.URLParseError(x.getMessage());
throw new RuntimeException(x.getMessage());
}
}