Skip to content
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

Unresolved reference for newer APIs in Kotlin DSL script #28927

Open
ErfanSn opened this issue Apr 23, 2024 · 3 comments
Open

Unresolved reference for newer APIs in Kotlin DSL script #28927

ErfanSn opened this issue Apr 23, 2024 · 3 comments
Labels
a:bug in:kotlin-dsl 👋 team-triage Issues that need to be triaged by a specific team

Comments

@ErfanSn
Copy link

ErfanSn commented Apr 23, 2024

Current Behavior

Inability to call APIs available in Java version 8 above e.g. XPath.evaluateExpression

Expected Behavior

This problem is not seen when Groovy language is used

Context (optional)

No response

Steps to Reproduce

Use the Kotlin language as a script and for example, write this piece of code in the build script files and call the build task.

val xPath = XPathFactory.newInstance().newXPath()
val component = xPath.evaluateExpression("/project/component", null)

Gradle version

8.7

Build scan URL (optional)

No response

Your Environment (optional)

No response

@ov7a
Copy link
Member

ov7a commented Apr 23, 2024

We appreciate the effort, but we must ask for more information so that we can triage it.

We do not see an immediate root cause, and we need a minimal reproducible example for the triage. If we have a reproducer, we may be able also to suggest workarounds or ways to avoid the problem.

The ideal way to provide a reproducer is to leverage our reproducer template. You can also use Gradle Project Replicator to reproduce the structure of your project.

This issue will be closed after 7 days unless you provide more information.

@ov7a ov7a added the pending:reproducer Indicates that the issue requires a reproducer or will be closed after 7 days label Apr 23, 2024
@ErfanSn
Copy link
Author

ErfanSn commented Apr 25, 2024

Here you are, the cause

@github-actions github-actions bot removed the pending:reproducer Indicates that the issue requires a reproducer or will be closed after 7 days label Apr 25, 2024
@ov7a ov7a added in:kotlin-dsl 👋 team-triage Issues that need to be triaged by a specific team and removed to-triage labels Apr 25, 2024
@ov7a
Copy link
Member

ov7a commented Apr 25, 2024

Thanks!


This issue needs a decision from the team responsible for that area. They have been informed. Response time may vary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug in:kotlin-dsl 👋 team-triage Issues that need to be triaged by a specific team
Projects
None yet
Development

No branches or pull requests

2 participants