Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Commit 82bafc6

Browse files
committed
8301190: [vectorapi] The typeChar of LaneType is incorrect when default locale is tr
Backport-of: c3ff151457102cd45e3c7a49a235a04066beca60
1 parent 7880add commit 82bafc6

File tree

1 file changed

+2
-2
lines changed
  • src/jdk.incubator.vector/share/classes/jdk/incubator/vector

1 file changed

+2
-2
lines changed

src/jdk.incubator.vector/share/classes/jdk/incubator/vector/LaneType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -65,7 +65,7 @@ enum LaneType {
6565
// int:128 or int:4 or float:16, report the size in the
6666
// printName. If we do unsigned or vector or bit lane types,
6767
// report that condition also.
68-
this.typeChar = printName.toUpperCase().charAt(0);
68+
this.typeChar = genericElementType.getSimpleName().charAt(0);
6969
assert("FDBSIL".indexOf(typeChar) == ordinal()) : this;
7070
// Same as in JVMS, org.objectweb.asm.Opcodes, etc.:
7171
this.basicType = basicType;

0 commit comments

Comments
 (0)