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

Add a JSR-199 based compiler #204

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marschall
Copy link

This pull request adds a JSR-199 based compiler, see #203. It implements in-memory compilation without the need for writing temporary files.

Limitations, it currently does not support loading classes from the TCCL, instead it uses the classpath parameter if set. I am not sure loading from the TCCL could be implemented. JavaFileManager#getClassLoader seems to be used only for annotation processors. JavaFileManager#getFileForInput seems to be used only for loading the source files. Instead JavaFileManager#list seems to be used for loading classes. Unfortunately we can not introspect a generic ClassLoader.

It currently lacks any tests, I would appreciate any guidance on what tests would be appropriate and any examples that you have.

I tried to follow the formatting conventions of other classes but couldn't find any documentation or settings.

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

Successfully merging this pull request may close these issues.

1 participant