Details
-
Type: Bug
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 1.2.2
-
Fix Version/s: 1.3.1
-
Component/s: Converters
-
Labels:None
Description
According to the api for CGLIBEnhancedConverter, this converter can only be used if "only one CAllback is registered". The code to check this condition is actually incorrect:
line 84:
if (callbacks.length > 1) {
it should be:
if (Arrays.asList(callbacks).size() > 1){
This makes the code break with Hibernate proxies, even though it shouldn't.
Sorry, but I don't see a difference. Why should the first condition break Hibernate proxies ?