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

Release under dual license #36

Open
ChristianSchwarz opened this issue Feb 1, 2017 · 1 comment
Open

Release under dual license #36

ChristianSchwarz opened this issue Feb 1, 2017 · 1 comment

Comments

@ChristianSchwarz
Copy link

Is it possible to release type-tools under MIT-license too?
The mockito project (MIT-license) wan't to use typetools to resolve typeparamters from lambda expressions. Actually it is not desired to depend on an additional libs, so the only solution seems to be a releaase under dual license so mockito can copy/paste the required class into the mockito code base.
Maybe know an other solution?

@jhalterman
Copy link
Owner

jhalterman commented Feb 1, 2017

@ChristianSchwarz I don't mind switching to an MIT license if Mockito decides to use TypeTools. We do have an outstanding issue around resolving lambdas in Java 9, but there seems to be a good workaround.

As for including TypeTools in Mockito, if not as a library, you may just want to use something like the Maven shade plugin to repackage the TypeTools source (just one class) into Mockito as part of its build. I have other libraries that do this sort of thing - example here. It's worth noting though that lambda resolution depends on sun.reflect.ConstantPool, so it will only work on runtimes where that is present, such as OpenJDK, Oracle, etc.

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

2 participants