Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json中对entities缓存不能清空 #195

Closed
weirhp opened this issue Apr 12, 2012 · 2 comments
Closed

Json中对entities缓存不能清空 #195

weirhp opened this issue Apr 12, 2012 · 2 comments
Assignees
Milestone

Comments

@weirhp
Copy link

weirhp commented Apr 12, 2012

在osgi中使用Json.toJson()时,使用到的class被更新时为出现这样的异常。
java.lang.RuntimeException: Fail to invoke getter com.prj17.bean.StudentWapper.'getStudents()' because [java.lang.IllegalArgumentException: ob
ject is not an instance of declaring class]: object is not an instance of declaring class

@zozoh
Copy link
Member

zozoh commented Apr 18, 2012

看来需要提供个 Json.clearEntityCache() 的方法,以便 OSGI 热加载,更换后调用
不过看起来,所有用静态函数缓存了 Class 的地方都会有这样的问题 ...

wendal added a commit that referenced this issue Apr 20, 2012
@wendal
Copy link
Member

wendal commented Apr 20, 2012

fixed

@wendal wendal closed this as completed Apr 20, 2012
@ghost ghost assigned wendal Apr 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants