AllenBlock opened a new issue #2040: 对于复杂enum作为参数的情况,dubbo是默认不支持的吗 URL: https://github.com/apache/incubator-dubbo/issues/2040 com.alibaba.dubbo.common.json.GenericJSONConverter.writeValue(Object, JSONWriter, boolean); 对于如下的enum: public enum AAAEnum { A { @Override public void doSomething() {} }, B { @Override public void doSomething() {} }; public abstract void doSomething(); } // 类似这种比较复杂一点点的enum里的对象,举个例子TimeUnit.DAY Class<?> c = obj.getClass();// obj.getDeclareClass() 可以正确判断 c.isEnum();// 只会为false 这时候会导致如下异常: java.lang.IllegalArgumentException: java.lang.IllegalAccessError: sun/misc/Launcher$ExtClassLoader at sun.misc.Launcher$ExtClassLoader$sw11.getPropertyValue(Launcher$ExtClassLoader$sw11.java) ~[?:1.8.0_77]
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
