Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell11
提交
6e0f945f
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,发现更多精彩内容 >>
提交
6e0f945f
编写于
2月 17, 2017
作者:
K
kvn
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8175052: [AOT] jaotc does not accept file name with .class
Reviewed-by: iveresov
上级
4336295f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
6 deletion
+12
-6
hotspot/src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/Main.java
...are/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/Main.java
+3
-1
hotspot/src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/collect/ClassSearch.java
....tools.jaotc/src/jdk/tools/jaotc/collect/ClassSearch.java
+1
-1
hotspot/src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/collect/SearchFor.java
...dk.tools.jaotc/src/jdk/tools/jaotc/collect/SearchFor.java
+3
-3
hotspot/src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/collect/classname/ClassNameSourceProvider.java
...ools/jaotc/collect/classname/ClassNameSourceProvider.java
+5
-1
未找到文件。
hotspot/src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/Main.java
浏览文件 @
6e0f945f
...
...
@@ -625,7 +625,9 @@ public class Main implements LogPrinter {
private
void
reportError
(
Throwable
e
)
{
log
.
println
(
"Error: "
+
e
.
getMessage
());
e
.
printStackTrace
(
log
);
if
(
options
.
info
)
{
e
.
printStackTrace
(
log
);
}
log
.
flush
();
}
...
...
hotspot/src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/collect/ClassSearch.java
浏览文件 @
6e0f945f
...
...
@@ -77,7 +77,7 @@ public class ClassSearch {
}
if
(
found
==
null
)
{
throw
new
InternalError
(
"Failed to find
: "
+
searchFor
.
toString
());
throw
new
InternalError
(
"Failed to find
"
+
searchFor
.
getType
()
+
" file: "
+
searchFor
.
getName
());
}
return
found
;
}
...
...
hotspot/src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/collect/SearchFor.java
浏览文件 @
6e0f945f
...
...
@@ -27,7 +27,7 @@ public class SearchFor {
private
final
String
type
;
public
SearchFor
(
String
name
)
{
this
(
name
,
"
unknown
"
);
this
(
name
,
""
);
}
public
SearchFor
(
String
name
,
String
type
)
{
...
...
@@ -36,7 +36,7 @@ public class SearchFor {
}
public
boolean
isUnknown
()
{
return
"
unknown
"
.
equals
(
type
);
return
""
.
equals
(
type
);
}
public
String
getType
()
{
...
...
@@ -49,6 +49,6 @@ public class SearchFor {
@Override
public
String
toString
()
{
return
type
+
":"
+
name
;
return
type
+
":
"
+
name
;
}
}
hotspot/src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/collect/classname/ClassNameSourceProvider.java
浏览文件 @
6e0f945f
...
...
@@ -31,7 +31,7 @@ import java.nio.file.Path;
import
java.nio.file.Paths
;
public
class
ClassNameSourceProvider
implements
SourceProvider
{
public
final
static
String
TYPE
=
"class
name
"
;
public
final
static
String
TYPE
=
"class"
;
private
final
ClassLoader
classLoader
;
public
ClassNameSourceProvider
(
FileSupport
fileSupport
)
{
...
...
@@ -47,6 +47,10 @@ public class ClassNameSourceProvider implements SourceProvider {
@Override
public
ClassSource
findSource
(
String
name
,
SearchPath
searchPath
)
{
Path
path
=
Paths
.
get
(
name
);
if
(
ClassSource
.
pathIsClassFile
(
path
))
{
name
=
ClassSource
.
makeClassName
(
path
);
}
try
{
classLoader
.
loadClass
(
name
);
return
new
ClassNameSource
(
name
,
classLoader
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录