To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=82876





------- Additional comments from [EMAIL PROTECTED] Mon Nov  5 12:53:02 +0000 
2007 -------
"SB pointed out that the bridges silently treat null strings as empty ones." 
For the records:  Just had a look at the code.  While using null strings as
arguments in UNO interface method calls is undefined behavior in Java UNO,
various scenarios do behave differently:

- The Java URP bridge silently treats null like ""
(jurt/com/sun/star/lib/uno/protocols/urp/Marshal.java:1.19 l. 259).  The reason
is that this was the simplest way to support polymorphic structs.

- The JNI bridge throws a com.sun.star.uno.RuntimeException "[jni_uno bridge
error] Java calling UNO method createInstance: [map_to_uno():string] null-ref
given!" (bridges/source/jni_uno/jni_data.cxx:1.22 l. 407).

- Direct Java to Java calls simply pass the null (of course).

However, this differing behavior is covered by the specification and is IMO
acceptable.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to