Dubbo Serialization序列化BigInteger空指针错误
DUBBO-4 (DUBBO-741) git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@85 1a56cb94-b969-4eaa-88fa-be21384802f2
This commit is contained in:
parent
7b81c7e43d
commit
125b8023b6
|
|
@ -414,7 +414,7 @@ public abstract class Builder<T> implements GenericDataFlags
|
|||
for( Field tf : fs )
|
||||
{
|
||||
int mod = tf.getModifiers();
|
||||
if( Modifier.isStatic(mod) || Modifier.isFinal(mod) || tf.getName().equals("this$0") ) // skip static or inner-class's 'this$0' field.
|
||||
if( Modifier.isStatic(mod) || tf.getName().equals("this$0") ) // skip static or inner-class's 'this$0' field.
|
||||
continue;
|
||||
if( Modifier.isTransient(mod) )
|
||||
{
|
||||
|
|
@ -860,7 +860,6 @@ public abstract class Builder<T> implements GenericDataFlags
|
|||
|
||||
private static String defaultArg(Class<?> cl)
|
||||
{
|
||||
if( !cl.isPrimitive() ) return "null";
|
||||
if( boolean.class == cl ) return "false";
|
||||
if( int.class == cl ) return "0";
|
||||
if( long.class == cl ) return "0l";
|
||||
|
|
@ -868,7 +867,9 @@ public abstract class Builder<T> implements GenericDataFlags
|
|||
if( float.class == cl ) return "(float)0";
|
||||
if( short.class == cl ) return "(short)0";
|
||||
if( char.class == cl ) return "(char)0";
|
||||
if( byte.class == cl ) return "(byte)0";
|
||||
if( byte.class == cl ) return "(byte)0";
|
||||
if( byte[].class == cl ) return "new byte[]{0}";
|
||||
if( !cl.isPrimitive() ) return "null";
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,16 +34,6 @@ public class DubboSerializationTest extends AbstractSerializationPersionFailTest
|
|||
@Test
|
||||
public void test_StringList_asListReturn() throws Exception {}
|
||||
|
||||
// FIXME
|
||||
@Ignore("NPE")
|
||||
@Test
|
||||
public void test_BigInteger() throws Exception {}
|
||||
|
||||
// FIXME
|
||||
@Ignore("NPE")
|
||||
@Test
|
||||
public void test_BigInteger_withType() throws Exception {}
|
||||
|
||||
// FIXME
|
||||
@Ignore("StackOverflowError")
|
||||
@Test(timeout=3000)
|
||||
|
|
|
|||
Loading…
Reference in New Issue