Kaydet (Commit) ab489869 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

These places apparently want to unbox a value boxed as an Any

...same as 8fb3808f

Change-Id: If21d6bbf5f88b8ca5ed5387d98b2dd9c74f0e32c
üst 42e2b437
......@@ -358,21 +358,7 @@ public class MultiPropertyTest extends MultiMethodTest
if (!compare(resValue, oldValue))
{
log.println("Read only property '" + propName + "' has changed");
try
{
if (!util.utils.isVoid(oldValue) && oldValue instanceof Any)
{
oldValue = AnyConverter.toObject(new Type(oldValue.getClass()), oldValue);
}
log.println("result = " + toString(resValue));
}
catch (com.sun.star.lang.IllegalArgumentException iae)
{
log.println("NOTIFY: this property needs further investigations.");
log.println("\t The type seems to be an Any with value of NULL.");
log.println("\t Maybe the property should get its own test method.");
}
log.println("result = " + toString(resValue));
tRes.tested(propName, false);
}
else
......@@ -392,20 +378,7 @@ public class MultiPropertyTest extends MultiMethodTest
if (!compare(resValue, newValue))
{
log.println("Value for '" + propName + "' hasn't changed as expected");
try
{
if (!util.utils.isVoid(oldValue) && oldValue instanceof Any)
{
oldValue = AnyConverter.toObject(new Type(oldValue.getClass()), oldValue);
}
log.println("result = " + toString(resValue));
}
catch (com.sun.star.lang.IllegalArgumentException iae)
{
log.println("NOTIFY: this property needs further investigations.");
log.println("\t The type seems to be an Any with value of NULL.");
log.println("\t Maybe the property should get its own test method.");
}
log.println("result = " + toString(resValue));
if (!compare(resValue, oldValue))
{
log.println("But it has changed.");
......@@ -419,17 +392,7 @@ public class MultiPropertyTest extends MultiMethodTest
else
{
log.println("Property '" + propName + "' OK");
try
{
if (!util.utils.isVoid(oldValue) && oldValue instanceof Any)
{
oldValue = AnyConverter.toObject(new Type(oldValue.getClass()), oldValue);
}
log.println("result = " + toString(resValue));
}
catch (com.sun.star.lang.IllegalArgumentException iae)
{
}
log.println("result = " + toString(resValue));
tRes.tested(propName, true);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment