Index: C:/harmony/trunk_0427/modules/luni/src/test/java/tests/api/java/net/URLTest.java =================================================================== --- C:/harmony/trunk_0427/modules/luni/src/test/java/tests/api/java/net/URLTest.java (revision 422613) +++ C:/harmony/trunk_0427/modules/luni/src/test/java/tests/api/java/net/URLTest.java (working copy) @@ -652,12 +652,20 @@ // null u = null; u1 = new URL(u, "file.java", new MyHandler()); + fail("didn't throw expected MalFormedURLException"); } catch (MalformedURLException e) { - return; + //expected; } catch (Exception e) { fail("2 Exception during tests : " + e.getMessage()); } - fail("didn't throw expected MalFormedURLException"); + + // regression test for HARMONY-895 + try { + new URL((URL)null, ":", new MyHandler()); + fail("didn't throw expected MalFormedURLException"); + } catch (MalformedURLException e) { + //expected; + } } /**