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

create a module for dynamic classloading #312

Open
radai-rosenblatt opened this issue Apr 11, 2022 · 0 comments
Open

create a module for dynamic classloading #312

radai-rosenblatt opened this issue Apr 11, 2022 · 0 comments

Comments

@radai-rosenblatt
Copy link
Contributor

we have code for defining new classes att runtime in fast-avro.
we also use net.openhft:compiler in some of our unit tests to do similar things, but that has issues running under the most recent JDKs due to its use of raw reflection to define classes
we need to take our CompilerHelper class and expand it to allow replacing all these use cases.

desirable features:

  1. no reflective access to avoid issues on modern JREs (via subclassing ClassLoader, see https://docs.oracle.com/javase/9/docs/api/java/lang/ClassLoader.html)
  2. create a new ClassLoader (backed by a folder), have all compilation and classloading happen from tthis CL.
  3. write out all generated source to be compiled as well as generated class files to disk for debuggablity
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

No branches or pull requests

1 participant