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

Mark Struberg edited comment on OWB-1429 at 11/8/23 3:04 PM:
-------------------------------------------------------------

Java 21 also requires the new TCK - where they introduced new bugs/non spec 
compliant behaviour :( I've now challenged a few more tests to make it pass.

*edit* just figured that this is about OWB-2.x. I'll dig and see what I can do 
to make it work. xbean-asm-4.24 uses ASM-9.6 which even supports Java22 
already. So it should work. Can you probably provide a sample project to 
showcase the problem would be very helpful - txs!



was (Author: struberg):
Java 21 also requires the new TCK - where they introduced new bugs/non spec 
compliant behaviour :( I've now challenged a few more tests to make it pass.

*edit* just figured that this is about OWB-2.x. I'll dig and see what I can do 
to make it work.

> Java 21 not supported?
> ----------------------
>
>                 Key: OWB-1429
>                 URL: https://issues.apache.org/jira/browse/OWB-1429
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.27
>            Reporter: Torsten Stolpmann
>            Priority: Major
>
> I am porting our application from Java 11 to Java 21.
> During initialization, I get the following exception from OpenWebBeans 2.0.27:
> Caused by: java.lang.RuntimeException: Unable to read class definition for 
> com.sun.faces.context.FacesFileNotFoundException
>     at 
> org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.java:1180)
>     at 
> org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:153)
>     at 
> org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:166)
>     at 
> org.apache.webbeans.corespi.scanner.xbean.OwbAnnotationFinder.<init>(OwbAnnotationFinder.java:41)
>     at 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.initFinder(AbstractMetaDataDiscovery.java:138)
>     at 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.scan(AbstractMetaDataDiscovery.java:177)
>     ... 33 more
> Caused by: java.lang.IllegalArgumentException: Unsupported class file major 
> version 65
>     at org.apache.xbean.asm9.ClassReader.<init>(ClassReader.java:199)
>     at org.apache.xbean.asm9.ClassReader.<init>(ClassReader.java:180)
>     at org.apache.xbean.asm9.ClassReader.<init>(ClassReader.java:166)
>     at org.apache.xbean.asm9.ClassReader.<init>(ClassReader.java:287)
>     at 
> org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.java:1176)
> I already updated the org.apache.xbean:xbean-asm9-shaded dependency to the 
> latest version 4.24.
> Is OpenWebBeans 2.0.27 not supposed to work with Java 21?
> What else can I try?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to