[Libreoffice-commits] accessibility: WNT only IllegalArgumentException java problem

Stephan Bergmann sbergman at redhat.com
Tue Nov 27 01:53:44 PST 2012


On 11/27/2012 12:48 AM, Libreoffice Gerrit user wrote:
> commit cb1b0ddbb40ea2afcc41d117ab4abb04ca0e58bf
> Author: Michael Stahl <mstahl at redhat.com>
> Date:   Tue Nov 27 00:44:49 2012 +0100
>
>      accessibility: WNT only IllegalArgumentException java problem
>
>      Change-Id: I9d251964d5fd00789dc831b7e55684c772c65fdf
>
> diff --git a/accessibility/bridge/org/openoffice/java/accessibility/Button.java b/accessibility/bridge/org/openoffice/java/accessibility/Button.java
> index 645840e..e0895ad 100644
> --- a/accessibility/bridge/org/openoffice/java/accessibility/Button.java
> +++ b/accessibility/bridge/org/openoffice/java/accessibility/Button.java
> @@ -46,7 +46,7 @@ class Button extends AbstractButton implements javax.accessibility.Accessible {
>                       (javax.accessibility.Accessible) Button.this.getComponent( xAccessible );
>
>                       return accessible.getAccessibleContext();
> -            } catch( com.sun.star.uno.Exception e ) {
> +            } catch (com.sun.star.lang.IllegalArgumentException e) {
>                   return null;
>               }
>           }

So this is a case where 
<http://cgit.freedesktop.org/libreoffice/core/commit/?id=31170413ae3786bf44564e813d7291354e939a77> 
"API CHANGE: com.sun.star.lang.IllegalArgumentException" silently (sans 
rebuild) breaks existing code.

Stephan


More information about the LibreOffice mailing list