Frank Schönheit - Sun Microsystems Germany wrote:
> Hi Stephan,
>
>   
>>> The only problem I see is that classes implementing the respective
>>> interface need to be adjusted, too, which of course is error prone. If
>>> this adjustment is not made, implementations throwing the new exception
>>> might crash (at least on platforms where the compiler respects the throw
>>> specification on a method, and generates code to assure it).
>>>       
>> What about language bindings other than C++?
>>     
>
> Basic an Python ignore are not affected by changed exception
> specifications, as far as I understand.
>
> Java code would need to be recompiled, which would break until the code
> is adjusted (right?).
> However, this is probably something on the ¨to-be-accepted¨ list, if we
> allow for such a change in the UNO API (and this allowance was my
> premise for this discussion).
>
> What other language bindings are there?
>   
Out of the box BeanShell, JavaScript, and at least ooRexx in addition.
All of these use the Java bridge, if I am not mistaken. The ooRexx
binding would not have a problem at all with such a change, that I would
regard of utmost importance. [Yes, I wholeheartedly agree, that the
current situation is many times frustrating, especially for beginners in
an area of OOo (even experts of one or two modules are beginners if
turning to new modules). There is a lot of resources that is being
wasted just to figure out what the original cause of an exception was,
if possible at all.]

---rony


Reply via email to