Skip to content

Any way to clear the loadedClassesMap in CachedCompiler class #47

@hfeischl

Description

@hfeischl

I would like to dynamically change code during runtime but keep the same class name.

Currently the way it seems to work is that this line of code:
aClass = CompilerUtils.CACHED_COMPILER.loadFromJava(className1, javaCode);
will compile the code when it runs the first time.
The 2nd time it won't compile, it will returned the compiled class from cash instead (even if the input String javaCode is different.

Can I somehow force that every time I call that line of code it will re-compile?

Thanks a bunch
-H

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions