Skip to content

Commit

Permalink
WW-4449 Extends JSONWriter to support Javassist 3.18.1 and Hibernate …
Browse files Browse the repository at this point in the history
…4.3.7
  • Loading branch information
lukaszlenart committed Jan 21, 2015
2 parents 0f44e11 + b888275 commit d9973fe
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,18 @@ protected Method findBaseAccessor(Class clazz, Method accessor) {
} catch (Exception ex) {
LOG.debug(ex.getMessage(), ex);
}
} else {

//in hibernate4.3.7,because javassist3.18.1's class name generate rule is '_$$_jvst'+...
} else if(clazz.getName().contains("$$_jvst")){
try {
baseAccessor = Class.forName(
clazz.getName().substring(0, clazz.getName().indexOf("_$$")))
.getMethod(accessor.getName(), accessor.getParameterTypes());
} catch (Exception ex) {
LOG.debug(ex.getMessage(), ex);
}
}
else {
return accessor;
}
return baseAccessor;
Expand Down

0 comments on commit d9973fe

Please sign in to comment.