[infinispan-issues] [JBoss JIRA] (IPROTO-88) Replace usages of javassist.CtClass.toClass() with javassist.CtClass.toClass(java.lang.Class) for JDK 11 compatibility

Nistor Adrian (Jira) issues at jboss.org
Thu Mar 26 08:00:38 EDT 2020


    [ https://issues.redhat.com/browse/IPROTO-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14009754#comment-14009754 ] 

Nistor Adrian commented on IPROTO-88:
-------------------------------------

XClass.asClass() method is deprecated since day one unfortunately. Normally, that method should have existed only in the ReflectionClass implementation and users of XClass should have used downcasting, also there should have been only like 1-2 such usages, but for whatever reason I cannot remember now why it got into the XClass interface. I'll try to re-examine the option of moving it down to ReflectionClass rather than keeping it deprecated. And I'll get back today to your PR [~johnou] , after some unexpected PTO :). Thanks for your contribution and your patience!

> Replace usages of javassist.CtClass.toClass() with javassist.CtClass.toClass(java.lang.Class) for JDK 11 compatibility
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: IPROTO-88
>                 URL: https://issues.redhat.com/browse/IPROTO-88
>             Project: Infinispan ProtoStream
>          Issue Type: Bug
>            Reporter: Nistor Adrian
>            Assignee: Nistor Adrian
>            Priority: Major
>             Fix For: 4.3.3.Final
>
>
> The javadoc of javassist.CtClass.toClass() explains why.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list