From 31170413ae3786bf44564e813d7291354e939a77 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 20 Nov 2012 19:07:31 +0100 Subject: API CHANGE: com.sun.star.lang.IllegalArgumentException ... derives from com.sun.star.uno.RuntimeException instead of com.sun.star.uno.Exception. Only test that breaks with this change is jurt_uno/AnyConverter_Test, which for mysterious reasons effectively tests that IllegalArgumentException is a subclass of Exception and not RuntimeException. Presumably this is just a generic exception test that happens to use IllegalArgumentException. Some further testing indicates there are no problems expected at runtime: Running "make subsequentcheck" with all Java test code compiled against a ridl.jar that does not contain the change, running against a soffice that uses ridl.jar and rdbs with the change + ridl.jar with the change on the test side yields exactly the same AnyConverter_Test failure, with no other failures. Change-Id: Iad183de76ec7e0d56648084e97cdcc160b5b033d --- jurt/test/com/sun/star/uno/AnyConverter_Test.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'jurt') diff --git a/jurt/test/com/sun/star/uno/AnyConverter_Test.java b/jurt/test/com/sun/star/uno/AnyConverter_Test.java index 9ff5633b7c31..daf129e07dd6 100644 --- a/jurt/test/com/sun/star/uno/AnyConverter_Test.java +++ b/jurt/test/com/sun/star/uno/AnyConverter_Test.java @@ -573,10 +573,10 @@ public final class AnyConverter_Test { assertEquals( exc, AnyConverter.toObject( - new Type(com.sun.star.uno.Exception.class), any_exc)); + new Type(com.sun.star.uno.RuntimeException.class), any_exc)); try { AnyConverter.toObject( - new Type(com.sun.star.uno.RuntimeException.class), any_exc); + new Type(com.sun.star.uno.Exception.class), any_exc); fail(); } catch (com.sun.star.lang.IllegalArgumentException ie) {} any_exc = new Any(com.sun.star.lang.IllegalArgumentException.class, @@ -589,10 +589,10 @@ public final class AnyConverter_Test { assertEquals( exc, AnyConverter.toObject( - new Type(com.sun.star.uno.Exception.class), any_exc)); + new Type(com.sun.star.uno.RuntimeException.class), any_exc)); try { AnyConverter.toObject( - new Type(com.sun.star.uno.RuntimeException.class), any_exc); + new Type(com.sun.star.uno.Exception.class), any_exc); fail(); } catch (com.sun.star.lang.IllegalArgumentException ie) {} -- cgit v1.2.3