Closed sjoerdtalsma closed 2 weeks ago
@Marcono1234 I hate to ask, but since you contributed before, could you have a look at this pull request I have prepared as new baseline for a greatly simplified, quicker 2.0 version?
By no means you have to do a full, detailed review (although welcome). A quick opinion on the API changes would already be greatly appreciated! 🙏
Sorry for the delay. I am currently not using this library, so I don't know how the changes and the new API feels for users. However, to me the changes look good and reasonable because they really simplify multiple parts.
I did not have an in-depth look at the changes, but hopefully the review comments are useful nonetheless.
@Marcono1234 thank you so much for the review and the many issues you caught!
I am contemplating on creating actual modules instead of the automatic modulenames currently used. But those will definitely require tests with both a java8 and java 9+ test project, so still quite a bit of work, also because the serviceloader mechanism works differntly then.
Just in case you aren't aware of it, the ModiTect Maven Plugin can be used to add a module descriptor to the JAR. And if you specify <jvmVersion>9</jvmVersion>
, then it will be a Multi-Release JAR, and the module-info.class
should (in most cases) not cause issues for Java 8 users of your library.
But I am not sure if it is worth it adding a module descriptor instead of using automatic module names at the moment.
Main tasks to create new development baseline for next major release (v2).
ContextManager.getActiveContext()
replaced bygetActiveContextValue()
.ContextManager.clear()
will require an implementation.is part of ContextManager interface.@Deprecated(forRemoval=true)
is to be removed.@since 2.0.0
for new functionality