Skip to content

Commit c3ff151

Browse files
GlavoPaul Sandoz
authored and
Paul Sandoz
committedJan 27, 2023
8301190: [vectorapi] The typeChar of LaneType is incorrect when default locale is tr
Reviewed-by: psandoz
1 parent 7eff578 commit c3ff151

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

+2-2
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;

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Jan 27, 2023

@openjdk-notifier[bot]
Please sign in to comment.