keisunique opened a new issue, #57:
URL: https://github.com/apache/dubbo-hessian-lite/issues/57
序列化代码如下:
```
@Override
public byte[] serialize(Object obj) {
ByteArrayOutputStream out = new ByteArrayOutputStream();
Hessian2Output hessian2Output = new Hessian2Output(out);
try {
hessian2Output.writeObject(obj);
hessian2Output.flush();
} catch (Exception e) {
e.printStackTrace();
}
return out.toByteArray();
}
```
报错:
```
java.lang.reflect.InaccessibleObjectException: Unable to make field final
int java.math.BigInteger.signum accessible: module java.base does not "opens
java.math" to unnamed module
@2f410acfjava.lang.reflect.InaccessibleObjectException: Unable to make field
final int java.math.BigInteger.signum accessible: module java.base does not
"opens java.math" to unnamed module @2f410acf
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]