Hi there,

tried to find an entry on this in the issue tracker, but have not been
successful.

Hence, first asking whether this is a bug in the Java interface to UNO
or a misconception on my side.

Problem: using a property's' Type attribute ("prop.Type") one works with
a "com.sun.star.uno.Type" object (cf.
<http://api.openoffice.org/docs/java/ref/com/sun/star/uno/Type.html>) it
seems that for UNO_LONG types ("prop.Type.getTypeClass()" returns an
UNO_LONG TypeClass object), whereas "prop.Type.getTypeName" returns the
string name "long" instead of "int".

As a result, using this information to cast Java types to the
corresponding UNO type yields a type error as supplying java.lang.Long
objects for UNO_LONG properties is not possible, rather
java.lang.Integer objects need to be supplied for them.

The documentation of "com.sun.star.uno.Type" is not totally clear for
me, therefore I would like to discuss this, before really going out and
filing an issue (possibly wrongly).

Any comments/hints/insights?

---rony


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

Reply via email to