Replies: 1 comment 1 reply
-
I agree that putting vector in public API may force the minimum Java version to something like Java 20 (we do not know yet when the vector API will be released). But it may be a question for the future. For now, the vector API is still in incubator and get incompatible changes from version to version. Some incompatible changes are already announced for next version (some methods to be removed in favour of Panama objects). I think that we should not put dependency to incubator API in the unit API, unless the unit API are made available only as a "preview" and not a formal release. For a formal release, I think that we need to wait for a formal release of vector API as well. Then the next question will be: do we need to put that in public API, or should it be considered as an implementation details? |
Beta Was this translation helpful? Give feedback.
-
We consider supporting the Java Vector API (#215) either now or whenever it leaves the incubator, so that features like Vector support offered earlier in JScience could be possible in a future version of the API.
However, based on discussions in the RI (around indriya#364) OpenJDK contributors including @AlanBateman reassured, that you must not declare any new class or Interface in a Multi-Release JAR that uses let's say elements in
jdk.incubator.vector
if those elements are not declared in the root (minimal JDK) element of the same MR JAR, as well.Of course that is impossible declaring say:
(just a guess, but any class or method that uses
Vector
types in the signature would be affected)because how would that work in the root source folder where
Vector
is completely unknown?What is the recommendation by the OpenJDK team especially for a possible new version of the JSR in the future?
Should a (presumable) Units of Measurement 3.0 then require a minimum version of Java like 16 or 17 (which is also an LTS) because the Vector API was not available before that?
Thanks and Regards,
Werner
Beta Was this translation helpful? Give feedback.
All reactions