You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "nameisjayant (via GitHub)" <gi...@apache.org> on 2023/02/27 07:15:18 UTC

[I] MethodHandle.invoke and MethodHandle.invokeExact are only supported starting with Android O (--min-api 26) (logging-log4j2)

nameisjayant opened a new issue, #1288:
URL: https://github.com/apache/logging-log4j2/issues/1288

   Hello basically i am using log4j library and this support minSdk 26 and currently i am using minSdk 21 but the problem is i cannot upgrade minSdk version to 26 .
   
   So is there any way to compatible midSdk 21 to 26 .. Any help would be appreciated
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] MethodHandle.invoke and MethodHandle.invokeExact are only supported starting with Android O (--min-api 26) (logging-log4j2)

Posted by "ppkarwasz (via GitHub)" <gi...@apache.org>.
ppkarwasz commented on issue #1288:
URL: https://github.com/apache/logging-log4j2/issues/1288#issuecomment-1445848684

   @nameisjayant,
   
   Although version 2.x has a baseline of Java 8, most of our users nowadays runs Java 11 or Java 17. That is why we must (at least partially) support JPMS.
   
   We introduced the `MethodHandle#invokeExact` call in [`ServiceLoaderUtil`](https://github.com/apache/logging-log4j2/blob/rel/2.18.0/log4j-api/src/main/java/org/apache/logging/log4j/util/ServiceLoaderUtil.java) for this exact reason, starting from version 2.18.0. I don't see a way to remove it.
   
   As a workaround, you can use version 2.17.2. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] MethodHandle.invoke and MethodHandle.invokeExact are only supported starting with Android O (--min-api 26) (logging-log4j2)

Posted by "ppkarwasz (via GitHub)" <gi...@apache.org>.
ppkarwasz closed issue #1288: MethodHandle.invoke and MethodHandle.invokeExact are only supported starting with Android O (--min-api 26)
URL: https://github.com/apache/logging-log4j2/issues/1288


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org