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

Is it possible to use javax.tools.ToolProvider.getSystemJavaCompiler(): javax.tools.JavaCompiler function in oder to retreive the compiler? #166

Open
Vladislav0Art opened this issue Apr 15, 2024 · 1 comment
Labels
question Further information is requested

Comments

@Vladislav0Art
Copy link
Collaborator

Description

I came across a component that seams to provide a java compiler. Is it possible and reasonable to integrate it instead of manual search of the the compiler that its execute as a child process?

Note: I did not google it and did not check its use. The issue is created merely not to forget to have a look at this in the future.

@Vladislav0Art Vladislav0Art changed the title Is it possible to use javax.tools.ToolProvider.getSystemJavaCompiler(): javax.tools.JavaCompiler function in oder to retreive the compiler Is it possible to use javax.tools.ToolProvider.getSystemJavaCompiler(): javax.tools.JavaCompiler function in oder to retreive the compiler? Apr 15, 2024
@Vladislav0Art Vladislav0Art added the question Further information is requested label Apr 15, 2024
@pderakhshanfar
Copy link
Collaborator

Hey, if I am not mistaken, This API provides the Java version used for the plugin. However, the Java version for compiling generated tests will be different for each project. This is why we get the Java SDK set on the user's project and use that to make sure that the generated tests will also be compilable when integrated into the user's codebase.

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

No branches or pull requests

2 participants