我有下一个孤立的测试用例场景
@SMDMethod
public BigInteger getSomeReallyBigInteger() {
return new BigInteger("154456875042019001");
}
这是 struts.xml 中的操作
<action name="DataSourceRpc" class="isoblock.struts2.action.DataSourceAction" method="smd">
<interceptor-ref name="json">
<param name="enableSMD">true</param>
</interceptor-ref>
<result type="json">
<param name="enableSMD">true</param>
</result>
</action>
我使用 JSON-RPC 实现(使用 dojo-rpc)调用 SMD 函数,这是失败的,
当我调用最后一个函数时,结果回调它:
- 154456875042019000
代替
- 154456875042019001
这只发生在大数字(全部有 17 个或更多 dijit),我使用struts2-json-plugin-2.3.8.jar(最新)
所以,这是一个struts2错误??
问候,