apangin / nalim

Fast Java native interface based on JVMCI
GNU General Public License v2.0
435 stars 30 forks source link

Separate GPL and non-GPL part? #7

Open trustin opened 1 year ago

trustin commented 1 year ago

The entire agent and public API of nalim are licensed under GPLv2 and thus it is impossible for most organization to use it as a compile time dependency.

It'd be nice if we could separate nalim into two components:

A user who calls Linker.linkClass() will still have the licensing problem, but the user can avoid it by specifying the list of the classes in the agent options instead of calling Linker.linkClass(). (Please correct me if this still causes any licensing issues.)

We could also improve the nalim agent to link the classes automatically, most likely by 1) intercepting the class-loading process or 2) looking for a certain file in a JAR.