Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
30881c22
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
30881c22
编写于
10月 26, 2012
作者:
D
dxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
4239752: FileSystem should be a platform-specific class to avoid native code
Reviewed-by: alanb, dholmes, erikj, jgish
上级
e8b256a6
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
39 addition
and
34 deletion
+39
-34
make/java/java/Exportedfiles.gmk
make/java/java/Exportedfiles.gmk
+3
-1
make/java/java/FILES_c.gmk
make/java/java/FILES_c.gmk
+1
-2
make/java/java/FILES_java.gmk
make/java/java/FILES_java.gmk
+2
-1
make/java/java/mapfile-vers
make/java/java/mapfile-vers
+1
-2
makefiles/CompileJavaClasses.gmk
makefiles/CompileJavaClasses.gmk
+2
-1
makefiles/mapfiles/libjava/mapfile-vers
makefiles/mapfiles/libjava/mapfile-vers
+1
-2
src/share/classes/java/io/File.java
src/share/classes/java/io/File.java
+1
-1
src/share/classes/java/io/FileSystem.java
src/share/classes/java/io/FileSystem.java
+1
-8
src/solaris/classes/java/io/DefaultFileSystem.java
src/solaris/classes/java/io/DefaultFileSystem.java
+13
-8
src/windows/classes/java/io/DefaultFileSystem.java
src/windows/classes/java/io/DefaultFileSystem.java
+14
-8
未找到文件。
make/java/java/Exportedfiles.gmk
浏览文件 @
30881c22
#
# Copyright (c) 1997, 20
06
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1997, 20
12
, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -66,6 +66,7 @@ FILES_export = \
java/util/prefs/FileSystemPreferences.java \
java/io/Console.java \
java/io/FileDescriptor.java \
java/io/DefaultFileSystem.java \
java/io/InputStream.java \
java/io/FileInputStream.java \
java/io/FileOutputStream.java \
...
...
@@ -142,6 +143,7 @@ FILES_export = \
java/io/Console.java \
java/io/FileSystem.java \
java/io/FileDescriptor.java \
java/io/DefaultFileSystem.java \
java/io/InputStream.java \
java/io/FileInputStream.java \
java/io/FileOutputStream.java \
...
...
make/java/java/FILES_c.gmk
浏览文件 @
30881c22
#
# Copyright (c) 1996, 20
06
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1996, 20
12
, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -32,7 +32,6 @@ FILES_c = \
Compiler.c \
Console_md.c \
Double.c \
FileSystem_md.c \
FileDescriptor_md.c \
FileInputStream.c \
FileInputStream_md.c \
...
...
make/java/java/FILES_java.gmk
浏览文件 @
30881c22
#
# Copyright (c) 1996, 201
1
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1996, 201
2
, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -438,6 +438,7 @@ JAVA_JAVA_java = \
java/io/File.java \
java/io/FileSystem.java \
java/io/FileDescriptor.java \
java/io/DefaultFileSystem.java \
java/io/FilenameFilter.java \
java/io/FileFilter.java \
java/io/FilePermission.java \
...
...
make/java/java/mapfile-vers
浏览文件 @
30881c22
#
# Copyright (c) 1997, 20
09
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1997, 20
12
, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -87,7 +87,6 @@ SUNWprivate_1.1 {
Java_java_io_FileOutputStream_open;
Java_java_io_FileOutputStream_write;
Java_java_io_FileOutputStream_writeBytes;
Java_java_io_FileSystem_getFileSystem;
Java_java_io_ObjectInputStream_bytesToDoubles;
Java_java_io_ObjectInputStream_bytesToFloats;
Java_java_io_ObjectOutputStream_doublesToBytes;
...
...
makefiles/CompileJavaClasses.gmk
浏览文件 @
30881c22
...
...
@@ -312,7 +312,8 @@ $(eval $(call SetupJavaCompilation,BUILD_JDK,\
JDK_BASE_HEADER_CLASSES:=java.lang.Integer \
java.lang.Long \
java.net.SocketOptions \
sun.nio.ch.IOStatus
sun.nio.ch.IOStatus \
java.io.FileSystem
JDK_BASE_HEADER_JAVA_FILES:=$(patsubst %,$(JDK_TOPDIR)/src/share/classes/%.java,\
$(subst .,/,$(JDK_BASE_HEADER_CLASSES)))
...
...
makefiles/mapfiles/libjava/mapfile-vers
浏览文件 @
30881c22
#
# Copyright (c) 1997, 20
09
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1997, 20
12
, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -87,7 +87,6 @@ SUNWprivate_1.1 {
Java_java_io_FileOutputStream_open;
Java_java_io_FileOutputStream_write;
Java_java_io_FileOutputStream_writeBytes;
Java_java_io_FileSystem_getFileSystem;
Java_java_io_ObjectInputStream_bytesToDoubles;
Java_java_io_ObjectInputStream_bytesToFloats;
Java_java_io_ObjectOutputStream_doublesToBytes;
...
...
src/share/classes/java/io/File.java
浏览文件 @
30881c22
...
...
@@ -153,7 +153,7 @@ public class File
/**
* The FileSystem object representing the platform's local file system.
*/
private
static
final
FileSystem
fs
=
FileSystem
.
getFileSystem
();
private
static
final
FileSystem
fs
=
Default
FileSystem
.
getFileSystem
();
/**
* This abstract pathname's normalized pathname string. A normalized
...
...
src/share/classes/java/io/FileSystem.java
浏览文件 @
30881c22
/*
* Copyright (c) 1998, 20
05
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 20
12
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -32,13 +32,6 @@ package java.io;
abstract
class
FileSystem
{
/**
* Return the FileSystem object representing this platform's local
* filesystem.
*/
public
static
native
FileSystem
getFileSystem
();
/* -- Normalization and construction -- */
/**
...
...
src/solaris/
native/java/io/FileSystem_md.c
→
src/solaris/
classes/java/io/DefaultFileSystem.java
浏览文件 @
30881c22
/*
* Copyright (c)
1998
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c)
2012
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -23,13 +23,18 @@
* questions.
*/
#include "jni.h"
#include "jni_util.h"
#include "java_io_FileSystem.h"
package
java.io
;
/**
*
* @since 1.8
*/
class
DefaultFileSystem
{
JNIEXPORT
jobject
JNICALL
Java_java_io_FileSystem_getFileSystem
(
JNIEnv
*
env
,
jclass
ignored
)
{
return
JNU_NewObjectByName
(
env
,
"java/io/UnixFileSystem"
,
"()V"
);
/**
* Return the FileSystem object for Unix-based platform.
*/
public
static
FileSystem
getFileSystem
()
{
return
new
UnixFileSystem
();
}
}
src/windows/
native/java/io/FileSystem_md.c
→
src/windows/
classes/java/io/DefaultFileSystem.java
浏览文件 @
30881c22
/*
* Copyright (c)
1998,
2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -23,12 +23,18 @@
* questions.
*/
#include <windows.h>
#include "jni.h"
#include "jni_util.h"
package
java.io
;
JNIEXPORT
jobject
JNICALL
Java_java_io_FileSystem_getFileSystem
(
JNIEnv
*
env
,
jclass
ignored
)
{
return
JNU_NewObjectByName
(
env
,
"java/io/WinNTFileSystem"
,
"()V"
);
/**
*
* @since 1.8
*/
class
DefaultFileSystem
{
/**
* Return the FileSystem object for Windows platform.
*/
public
static
FileSystem
getFileSystem
()
{
return
new
WinNTFileSystem
();
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录