You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Michael Newcomb (JIRA)" <de...@myfaces.apache.org> on 2014/12/01 00:31:12 UTC

[jira] [Commented] (MYFACES-3945) _ClassByteCodeAnnotationFilter does not handle SE8 .class files properly

    [ https://issues.apache.org/jira/browse/MYFACES-3945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14229272#comment-14229272 ] 

Michael Newcomb commented on MYFACES-3945:
------------------------------------------

Symptom is logged error:

{{monospaced}}
org.apache.myfaces.config.annotation._ClassByteCodeAnnotationFilter couldContainAnnotationsOnClassDef WARNING: Unknown tag in constants pool: 18
org.apache.myfaces.config.annotation._ClassByteCodeAnnotationFilter couldContainAnnotationsOnClassDef WARNING: Unknown tag in constants pool: 15
{{monospaced}}

Faces-annotated classes that use lambdas don't work properly or are not recognized at all.

Attached fix correctly processes the new tag types found in: https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.4.8

New types are:
* CONSTANT_MethodHandle_info
* CONSTANT_MethodType_info 
* CONSTANT_InvokeDynamic_info 


> _ClassByteCodeAnnotationFilter does not handle SE8 .class files properly
> ------------------------------------------------------------------------
>
>                 Key: MYFACES-3945
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3945
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.2.6
>         Environment: All
>            Reporter: Michael Newcomb
>            Priority: Minor
>
> MyFaces 2.2.6 will not register classes with the FacesConverter attribute, etc., if they contain lambdas or other Java 8 features.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)