Community
Participate
Working Groups
Is actually some part of the Lucene API exported?
(In reply to Marcel Bruch from comment #0) > Is actually some part of the Lucene API exported? Technically yes, but logically maybe not. The one part of the API that causes this uses constraint (automatically derived using "Calculate Uses" in the Manifest editor) is the following constructor: @VisibleForTesting ModelIndex(Directory index) This is only "public" API to classes in the same package, in particular to our test fragment. If our point of view is that we disallow split packages then this is indeed a superfluous constraint. If we remove the constraint (which makes sense, IMHO), it's just a pity that we will have to remember this exception in on future and be careful that not other, real uses of Lucene API slip beneath our radar.
(In reply to Andreas Sewe from comment #1) > @VisibleForTesting > ModelIndex(Directory index) I see. > If we remove the constraint (which makes sense, IMHO), it's just a pity that > we will have to remember this exception in on future and be careful that not > other, real uses of Lucene API slip beneath our radar. Yes. I've solution too. The only workaround I can think of ATM is to not use the lucene type as argument but Object instead. This wouldn't break much and could be acceptable (but strange, I agree)
(In reply to Marcel Bruch from comment #2) other, real uses of Lucene API slip beneath our radar. > > Yes. I've solution too. The only workaround I can think of ATM is to not use > the lucene type as argument but Object instead. This wouldn't break much and > could be acceptable (but strange, I agree) Yes, that would work. As long as there's a comment that explain why there's a strange downcast, we may not end up too confused in the future. So, +1 from me.
https://git.eclipse.org/r/31789
Fix is merged