天天看点

奇怪的编译错误

下面代码会报一个编译错误

奇怪的编译错误
奇怪的编译错误

这段代码是我写的,在我的eclipse中没有报错,但是在别人的ide中却报错.

解决方法:

奇怪的编译错误

baseresponsedto result = null;  

        object responsetextobj = response.get("responsetext");  

        if (responsetextobj instanceof baseresponsedto) {  

            result = (baseresponsedto) responsetextobj;  

        } else {  

            result = (baseresponsedto) jsonextension.parseobject((string) responsetextobj, clazz);  

        }  

继续阅读