8000 java.lang.NoSuchMethodError: No static method requireNonNullElseGet · Issue #373 · commonmark/commonmark-java · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

java.lang.NoSuchMethodError: No static method requireNonNullElseGet #373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dlisagod opened this issue May 7, 2025 · 2 comments
Open
Labels

Comments

@dlisagod
Copy link
dlisagod commented May 7, 2025

Steps to reproduce the problem (provide example Markdown if applicable):

my markdown

Expected behavior:

expected HTML

Actual behavior:

actual HTML

(Also see what the reference implementation does: https://spec.commonmark.org/dingus/)

java.lang.NoSuchMethodError: No static method requireNonNullElseGet(Ljava/lang/Object;Ljava/util/function/Supplier;)Ljava/lang/Object; in class Ljava/util/Objects; or its super classes (declaration of 'java.util.Objects' appears in /system/framework/core-oj.jar)
at org.commonmark.parser.Parser$Builder.getInlineParserFactory(Parser.java:314)
at org.commonmark.parser.Parser$Builder.-$$Nest$mgetInlineParserFactory(Unknown Source:0)
at org.commonmark.parser.Parser.(Parser.java:43)
at org.commonmark.parser.Parser.(Unknown Source:0)
at org.commonmark.parser.Parser$Builder.build(Parser.java:137)

My runtime is jdk 17 ,android sdk 34.I see the same issue before #369 .And my commonmark version is lastest 0.24.0. Why would i get this bug.I see the source code in github it doesnt use requireNonNullElseGet

Image

@dlisagod dlisagod added the bug label May 7, 2025
@robinst
Copy link
Collaborator
robinst commented May 7, 2025

Yeah, this is fixed by:

Just not released yet.

@dlisagod
Copy link
Author
dlisagod commented May 7, 2025

Yeah, this is fixed by:

Just not released yet.

ok i will use the source code instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
0