fengyapeng
fengyapeng
` public Reference addTimerListener(final TimerListener listener) { startThreadIfNeeded(); // add the listener Runnable r = new Runnable() { @Override public void run() { try { listener.tick(); } catch (Exception e)...
问题复现: 代码: ``` String jsonStr = "{\"modelType\":\"\"}"; MenuExpend menuExpend = JSON.parseObject(jsonStr, MenuExpend.class); System.out.println(menuExpend); ``` 中modelType 为 MenuExpend 的field,一个customer 的enum。 这样立即报错。 exception is :java.lang.IllegalArgumentException: No enum constant 解决思路: 本以为是 EnumDeserializer 的deserialze...
对于 JavaBeanDeserializer 的无法兼容的问题: 我看到 commit 的history https://github.com/alibaba/fastjson/commit/0d8b086449e48a303bef16a203f696c16efe131a 修复JavaBeanDeserializer不能反序列化深层内部类的问题 但是,第113行。 `** String typeName = type.getTypeName();**` 一段这样的代码: 而 这个方法的说明是: ``` public interface Type { /** * Returns a string describing this type,...
Class A{ private FieldClazz1 f1; private FieldClazz2 f2; } ArrayList list = new ArrayList; FieldClazz1 f1_0 = new FieldClazz1 ; FieldClazz2 f2_0 = new FieldClazz2 ; FieldClazz2 f2_1 = new...
### Expected behavior I want use reids "set" command like this: `set(final byte[] key, final byte[] value, final byte[] expx, final int time)` ### Actual behavior but only have this...
## 环境 / Environment - DBX 版本: **v0.5.66** (macOS) - 数据库: **KingbaseES V009R001C002B0014** - 兼容模式: **`database_mode = oracle`** (`context=internal, source=override` —— 建库时固定,无法在线修改) ## 现象 / Summary 在 **Oracle 兼容模式**的金仓上,展开某个 schema...
有没有考虑过去除对okhttp 的依赖,gson 的依赖。 java 中有httpclient,okhttp,URLConnect 等很多第三方可以请求和解析的http 类的包,json 的世界也是很多:jackson1,2,fastjson,gson 等很多~ 不知道是否可以选择性的使用http 组件和json 组件呢