Eugene Vologzhanin created TAP5-2564:

             Summary: Unwanted auto-boxing while annotation visiting 
                 Key: TAP5-2564
             Project: Tapestry 5
          Issue Type: Bug
          Components: tapestry-ioc
    Affects Versions: 5.3.8
            Reporter: Eugene Vologzhanin

Line #64: final Object result = method.invoke(value);
If method return boolean, result wil be <b>java.lang.Boolean</b> not 
In this case in rutime will be Caused by: java.lang.ClassCastException: 
java.lang.Boolean cannot be cast to java.lang.Enum.

I fix with:
                MemberValue memberValue;
                if (method.getReturnType().isPrimitive()) {
                    memberValue = Annotation.createMemberValue(this.constPool,
                } else {
                    memberValue = Annotation.createMemberValue(this.constPool,


This message was sent by Atlassian JIRA

Reply via email to