Hi there,
while tidying up some nutshells, I ran into the following problem:
* setting a PropertyValue to a value with a wrong data type will
correctly cause an exception;
o the Java exception handler will look up the correct property
data type and will then set the property to the new value
using the correct datatype (which fine).
* however, setting the two properties "CircleStartAngle" and
"CircleEndAngle" via Java supplying a String object containing all
decimal numbers, does not throw an exception, therefore the
exception handler does not get triggered and is not able to render
the value to the correct type (in this case to a type of
java.lang.Integer)!
The old value remains unchanged, if a string value is supplied!
The used infrastructure (Java based) is dependent on receiving an
exception, if the wrong datatype was assumed (defaulting to a String
object value). The properties in question are "CircleStartAngle" and
"CircleEndAngle" which both are defined to be of UNO type "long" (cf.
<http://api.openoffice.org/docs/common/ref/com/sun/star/drawing/EllipseShape>).
Any ideas what might cause this rather strange behaviour?
---rony
P.S.: Setting the mentioned property values explicitly as
java.lang.Integer values works as expected.