You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code above will result in the following exception:
Exception in thread "main" java.lang.IllegalArgumentException: type=class java.util.concurrent.ThreadPoolExecutor is unsupported, it must either be of type Marshallable, String or AutoBoxed primitive Object.
I'm guessing its due to the CachedThreadPool which is assigned on run() and that the java.util.concurrent package is not supported for serialization in Wire atm. Traced it back to this piece of code in ValueOut.java
if ((Wires.isInternal(value)))
throw new IllegalArgumentException("type=" + valueClass +
" is unsupported, it must either be of type Marshallable, String or " +
"AutoBoxed primitive Object");
...
public static boolean isInternal(@NotNull Object value) {
String name = value.getClass().getPackage().getName();
return name.startsWith("java.")
|| name.startsWith("javax.")
|| name.startsWith("jdk.");
}
The text was updated successfully, but these errors were encountered:
Using chronicle-bom:2.23ea117
The code above will result in the following exception:
Exception in thread "main" java.lang.IllegalArgumentException: type=class java.util.concurrent.ThreadPoolExecutor is unsupported, it must either be of type Marshallable, String or AutoBoxed primitive Object
.I'm guessing its due to the
CachedThreadPool
which is assigned onrun()
and that thejava.util.concurrent
package is not supported for serialization in Wire atm. Traced it back to this piece of code in ValueOut.javaThe text was updated successfully, but these errors were encountered: