287 Star 719 Fork 265

wenshao / fastjson

 / 详情

kotlin支持的有问题

Backlog
Opened this issue  
2017-09-20 19:33

1.2.35以上的版本支持了kotlin
但是会报默认构造函数找不到的bug

从TypeUtils.getKoltinConstructorParameters()报出的,
看得出 Class class_kotlin_kclass = Class.forName("kotlin.reflect.jvm.internal.KClassImpl");
这行就报错了
导致返回了null,然后跑出了异常

我这边已经查过了,生成的无参构造是存在的。用1.2.35程序正常跑。

Comments (1)

loveの黑眼圈 created 任务

ext.kotlin_version = '1.1.4'

org.jetbrains.kotlin:kotlin-stdlib-jre7:${kotlin_version}"

'com.android.tools.build:gradle:2.2.3'

distributionUrl=http://services.gradle.org/distributions/gradle-2.14.1-all.zip

运行手机:android 7.0

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(1)
Java
1
https://git.oschina.net/wenshao/fastjson.git
git@git.oschina.net:wenshao/fastjson.git
wenshao
fastjson
fastjson

Search