Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell11
提交
5244f978
D
dragonwell11
项目概览
openanolis
/
dragonwell11
通知
7
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell11
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5244f978
编写于
5月 28, 2013
作者:
S
sundar
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8015459: Octane test run fails on Turkish locale
Reviewed-by: lagergren, attila
上级
3d2cf429
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
17 addition
and
10 deletion
+17
-10
nashorn/src/jdk/nashorn/internal/codegen/CodeGenerator.java
nashorn/src/jdk/nashorn/internal/codegen/CodeGenerator.java
+2
-1
nashorn/src/jdk/nashorn/internal/objects/DateParser.java
nashorn/src/jdk/nashorn/internal/objects/DateParser.java
+3
-2
nashorn/src/jdk/nashorn/internal/parser/TokenType.java
nashorn/src/jdk/nashorn/internal/parser/TokenType.java
+2
-1
nashorn/src/jdk/nashorn/internal/runtime/GlobalFunctions.java
...orn/src/jdk/nashorn/internal/runtime/GlobalFunctions.java
+3
-2
nashorn/src/jdk/nashorn/internal/runtime/JSType.java
nashorn/src/jdk/nashorn/internal/runtime/JSType.java
+2
-1
nashorn/src/jdk/nashorn/internal/runtime/Logging.java
nashorn/src/jdk/nashorn/internal/runtime/Logging.java
+2
-1
nashorn/src/jdk/nashorn/internal/runtime/ScriptRuntime.java
nashorn/src/jdk/nashorn/internal/runtime/ScriptRuntime.java
+2
-1
nashorn/src/jdk/nashorn/internal/runtime/options/OptionTemplate.java
.../jdk/nashorn/internal/runtime/options/OptionTemplate.java
+1
-1
未找到文件。
nashorn/src/jdk/nashorn/internal/codegen/CodeGenerator.java
浏览文件 @
5244f978
...
...
@@ -58,6 +58,7 @@ import java.util.EnumSet;
import
java.util.Iterator
;
import
java.util.LinkedList
;
import
java.util.List
;
import
java.util.Locale
;
import
java.util.TreeMap
;
import
jdk.nashorn.internal.codegen.ClassEmitter.Flag
;
...
...
@@ -2220,7 +2221,7 @@ final class CodeGenerator extends NodeOperatorVisitor<CodeGeneratorLexicalContex
}
method
.
convert
(
Type
.
OBJECT
);
}
else
if
(
value
instanceof
Boolean
)
{
method
.
getField
(
staticField
(
Boolean
.
class
,
value
.
toString
().
toUpperCase
(),
Boolean
.
class
));
method
.
getField
(
staticField
(
Boolean
.
class
,
value
.
toString
().
toUpperCase
(
Locale
.
ENGLISH
),
Boolean
.
class
));
}
else
{
load
(
rhs
);
method
.
convert
(
unaryNode
.
getType
());
...
...
nashorn/src/jdk/nashorn/internal/objects/DateParser.java
浏览文件 @
5244f978
...
...
@@ -32,6 +32,7 @@ import static java.lang.Character.SPACE_SEPARATOR;
import
static
java
.
lang
.
Character
.
UPPERCASE_LETTER
;
import
java.util.HashMap
;
import
java.util.Locale
;
/**
* JavaScript date parser. This class first tries to parse a date string
...
...
@@ -486,7 +487,7 @@ public class DateParser {
while
(
pos
<
limit
&&
isAsciiLetter
(
string
.
charAt
(
pos
)))
{
pos
++;
}
final
String
key
=
string
.
substring
(
start
,
pos
).
toLowerCase
();
final
String
key
=
string
.
substring
(
start
,
pos
).
toLowerCase
(
Locale
.
ENGLISH
);
final
Name
name
=
names
.
get
(
key
);
// then advance to end of name
while
(
pos
<
length
&&
isAsciiLetter
(
string
.
charAt
(
pos
)))
{
...
...
@@ -683,7 +684,7 @@ public class DateParser {
Name
(
final
String
name
,
final
int
type
,
final
int
value
)
{
assert
name
!=
null
;
assert
name
.
equals
(
name
.
toLowerCase
());
assert
name
.
equals
(
name
.
toLowerCase
(
Locale
.
ENGLISH
));
this
.
name
=
name
;
// use first three characters as lookup key
...
...
nashorn/src/jdk/nashorn/internal/parser/TokenType.java
浏览文件 @
5244f978
...
...
@@ -25,6 +25,7 @@
package
jdk.nashorn.internal.parser
;
import
java.util.Locale
;
import
static
jdk
.
nashorn
.
internal
.
parser
.
TokenKind
.
BINARY
;
import
static
jdk
.
nashorn
.
internal
.
parser
.
TokenKind
.
BRACKET
;
import
static
jdk
.
nashorn
.
internal
.
parser
.
TokenKind
.
FUTURE
;
...
...
@@ -249,7 +250,7 @@ public enum TokenType {
}
public
String
getNameOrType
()
{
return
name
==
null
?
super
.
name
().
toLowerCase
()
:
name
;
return
name
==
null
?
super
.
name
().
toLowerCase
(
Locale
.
ENGLISH
)
:
name
;
}
public
TokenType
getNext
()
{
...
...
nashorn/src/jdk/nashorn/internal/runtime/GlobalFunctions.java
浏览文件 @
5244f978
...
...
@@ -30,6 +30,7 @@ import static jdk.nashorn.internal.lookup.Lookup.MH;
import
java.lang.invoke.MethodHandle
;
import
java.lang.invoke.MethodHandles
;
import
java.util.Locale
;
/**
* Utilities used by Global class.
...
...
@@ -373,10 +374,10 @@ loop:
}
else
if
(
ch
<
256
)
{
sb
.
append
(
'%'
);
final
byte
b
=
(
byte
)
ch
;
sb
.
append
(
Integer
.
toHexString
(
b
&
0xFF
).
toUpperCase
());
sb
.
append
(
Integer
.
toHexString
(
b
&
0xFF
).
toUpperCase
(
Locale
.
ENGLISH
));
}
else
{
sb
.
append
(
"%u"
);
sb
.
append
(
Integer
.
toHexString
(
ch
&
0xFFFF
).
toUpperCase
());
sb
.
append
(
Integer
.
toHexString
(
ch
&
0xFFFF
).
toUpperCase
(
Locale
.
ENGLISH
));
}
}
...
...
nashorn/src/jdk/nashorn/internal/runtime/JSType.java
浏览文件 @
5244f978
...
...
@@ -28,6 +28,7 @@ package jdk.nashorn.internal.runtime;
import
static
jdk
.
nashorn
.
internal
.
codegen
.
CompilerConstants
.
staticCall
;
import
static
jdk
.
nashorn
.
internal
.
runtime
.
ECMAErrors
.
typeError
;
import
java.util.Locale
;
import
jdk.internal.dynalink.beans.StaticClass
;
import
jdk.nashorn.internal.codegen.CompilerConstants.Call
;
import
jdk.nashorn.internal.parser.Lexer
;
...
...
@@ -111,7 +112,7 @@ public enum JSType {
*/
public
final
String
typeName
()
{
// For NULL, "object" has to be returned!
return
((
this
==
NULL
)
?
OBJECT
:
this
).
name
().
toLowerCase
();
return
((
this
==
NULL
)
?
OBJECT
:
this
).
name
().
toLowerCase
(
Locale
.
ENGLISH
);
}
/**
...
...
nashorn/src/jdk/nashorn/internal/runtime/Logging.java
浏览文件 @
5244f978
...
...
@@ -26,6 +26,7 @@
package
jdk.nashorn.internal.runtime
;
import
java.util.HashMap
;
import
java.util.Locale
;
import
java.util.Map
;
import
java.util.Map.Entry
;
import
java.util.logging.ConsoleHandler
;
...
...
@@ -117,7 +118,7 @@ public final class Logging {
if
(
""
.
equals
(
value
))
{
level
=
Level
.
INFO
;
}
else
{
level
=
Level
.
parse
(
value
.
toUpperCase
());
level
=
Level
.
parse
(
value
.
toUpperCase
(
Locale
.
ENGLISH
));
}
final
String
name
=
Logging
.
lastPart
(
key
);
...
...
nashorn/src/jdk/nashorn/internal/runtime/ScriptRuntime.java
浏览文件 @
5244f978
...
...
@@ -36,6 +36,7 @@ import java.lang.invoke.MethodHandle;
import
java.lang.reflect.Array
;
import
java.util.Collections
;
import
java.util.Iterator
;
import
java.util.Locale
;
import
java.util.NoSuchElementException
;
import
java.util.Objects
;
import
jdk.internal.dynalink.beans.StaticClass
;
...
...
@@ -788,7 +789,7 @@ public final class ScriptRuntime {
return
false
;
}
throw
typeError
(
"in.with.non.object"
,
rvalType
.
toString
().
toLowerCase
());
throw
typeError
(
"in.with.non.object"
,
rvalType
.
toString
().
toLowerCase
(
Locale
.
ENGLISH
));
}
/**
...
...
nashorn/src/jdk/nashorn/internal/runtime/options/OptionTemplate.java
浏览文件 @
5244f978
...
...
@@ -267,7 +267,7 @@ public class OptionTemplate implements Comparable<OptionTemplate> {
this
.
params
=
arg
;
break
;
case
"type"
:
this
.
type
=
arg
.
toLowerCase
(
Locale
.
ROOT
);
this
.
type
=
arg
.
toLowerCase
(
Locale
.
ENGLISH
);
break
;
case
"default"
:
this
.
defaultValue
=
arg
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录