On Tue, 5 May 2026 06:16:49 GMT, Xueming Shen <[email protected]> wrote:
> Two internal helper methods recently added to AbstractVector are currently > showing up in the public javadoc of concrete vector classes: > > - ByteVector > - ShortVector > - IntVector > - LongVector > - FloatVector > - DoubleVector > > The methods are: > > - protected final int subLanesToSwap(AbstractSpecies<?> srcSpecies) > - protected static <T> VectorShuffle<T> normalizeSubLanesForSpecies(...) > > These methods appear to be implementation helpers for the Big Endian > lane/sub-lane normalization path (JDK-8371187/PR #28425) and are not intended > to be part of the Vector API surface. > > Since the generated vector classes are in the same jdk.incubator.vector > package, "protected" does not seem necessary for access. Making these helpers > package-private should keep the implementation access intact while preventing > them from appearing as inherited protected API in public Javadoc. > > The PR removes "protected" from these 2 methods, making them package private > to keep them out of the public api surface. > > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: dab7414e Author: Xueming Shen <[email protected]> URL: https://git.openjdk.org/jdk/commit/dab7414e8d0780be00bca4502d251106d33b8f23 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod 8383830: Vector API: internal AbstractVector helper methods exposed in public Javadoc Reviewed-by: psandoz ------------- PR: https://git.openjdk.org/jdk/pull/31034
