Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
2dfc6810
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看板
提交
2dfc6810
编写于
3月 13, 2014
作者:
P
pchelko
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8037287: Windows build failed after JDK-8030787
Reviewed-by: serb, bagiras
上级
f02e7533
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
9 deletion
+10
-9
src/share/native/sun/awt/image/awt_parseImage.c
src/share/native/sun/awt/image/awt_parseImage.c
+10
-9
未找到文件。
src/share/native/sun/awt/image/awt_parseImage.c
浏览文件 @
2dfc6810
...
@@ -182,6 +182,11 @@ static int checkChannelOffsets(RasterS_t *rasterP, int dataArrayLength) {
...
@@ -182,6 +182,11 @@ static int checkChannelOffsets(RasterS_t *rasterP, int dataArrayLength) {
int
awt_parseRaster
(
JNIEnv
*
env
,
jobject
jraster
,
RasterS_t
*
rasterP
)
{
int
awt_parseRaster
(
JNIEnv
*
env
,
jobject
jraster
,
RasterS_t
*
rasterP
)
{
jobject
joffs
=
NULL
;
jobject
joffs
=
NULL
;
/* int status;*/
/* int status;*/
jclass
singlePixelPackedSampleModelClass
=
NULL
;
jclass
integerComponentRasterClass
=
NULL
;
jclass
byteComponentRasterClass
=
NULL
;
jclass
shortComponentRasterClass
=
NULL
;
jclass
bytePackedRasterClass
=
NULL
;
if
(
JNU_IsNull
(
env
,
jraster
))
{
if
(
JNU_IsNull
(
env
,
jraster
))
{
JNU_ThrowNullPointerException
(
env
,
"null Raster object"
);
JNU_ThrowNullPointerException
(
env
,
"null Raster object"
);
...
@@ -226,7 +231,7 @@ int awt_parseRaster(JNIEnv *env, jobject jraster, RasterS_t *rasterP) {
...
@@ -226,7 +231,7 @@ int awt_parseRaster(JNIEnv *env, jobject jraster, RasterS_t *rasterP) {
rasterP
->
sppsm
.
isUsed
=
0
;
rasterP
->
sppsm
.
isUsed
=
0
;
jclass
singlePixelPackedSampleModelClass
=
(
*
env
)
->
FindClass
(
env
,
singlePixelPackedSampleModelClass
=
(
*
env
)
->
FindClass
(
env
,
"java/awt/image/SinglePixelPackedSampleModel"
);
"java/awt/image/SinglePixelPackedSampleModel"
);
CHECK_NULL_RETURN
(
singlePixelPackedSampleModelClass
,
-
1
);
CHECK_NULL_RETURN
(
singlePixelPackedSampleModelClass
,
-
1
);
if
((
*
env
)
->
IsInstanceOf
(
env
,
rasterP
->
jsampleModel
,
if
((
*
env
)
->
IsInstanceOf
(
env
,
rasterP
->
jsampleModel
,
...
@@ -264,17 +269,13 @@ int awt_parseRaster(JNIEnv *env, jobject jraster, RasterS_t *rasterP) {
...
@@ -264,17 +269,13 @@ int awt_parseRaster(JNIEnv *env, jobject jraster, RasterS_t *rasterP) {
rasterP
->
jsampleModel
,
rasterP
->
jsampleModel
,
g_SMHeightID
);
g_SMHeightID
);
jclass
integerComponentRasterClass
=
(
*
env
)
->
FindClass
(
env
,
integerComponentRasterClass
=
(
*
env
)
->
FindClass
(
env
,
"sun/awt/image/IntegerComponentRaster"
);
"sun/awt/image/IntegerComponentRaster"
);
CHECK_NULL_RETURN
(
integerComponentRasterClass
,
-
1
);
CHECK_NULL_RETURN
(
integerComponentRasterClass
,
-
1
);
jclass
byteComponentRasterClass
=
(
*
env
)
->
FindClass
(
env
,
byteComponentRasterClass
=
(
*
env
)
->
FindClass
(
env
,
"sun/awt/image/ByteComponentRaster"
);
"sun/awt/image/ByteComponentRaster"
);
CHECK_NULL_RETURN
(
byteComponentRasterClass
,
-
1
);
CHECK_NULL_RETURN
(
byteComponentRasterClass
,
-
1
);
jclass
shortComponentRasterClass
=
(
*
env
)
->
FindClass
(
env
,
shortComponentRasterClass
=
(
*
env
)
->
FindClass
(
env
,
"sun/awt/image/ShortComponentRaster"
);
"sun/awt/image/ShortComponentRaster"
);
CHECK_NULL_RETURN
(
shortComponentRasterClass
,
-
1
);
CHECK_NULL_RETURN
(
shortComponentRasterClass
,
-
1
);
jclass
bytePackedRasterClass
=
(
*
env
)
->
FindClass
(
env
,
bytePackedRasterClass
=
(
*
env
)
->
FindClass
(
env
,
"sun/awt/image/BytePackedRaster"
);
"sun/awt/image/BytePackedRaster"
);
CHECK_NULL_RETURN
(
bytePackedRasterClass
,
-
1
);
CHECK_NULL_RETURN
(
bytePackedRasterClass
,
-
1
);
if
((
*
env
)
->
IsInstanceOf
(
env
,
jraster
,
integerComponentRasterClass
)){
if
((
*
env
)
->
IsInstanceOf
(
env
,
jraster
,
integerComponentRasterClass
)){
rasterP
->
jdata
=
(
*
env
)
->
GetObjectField
(
env
,
jraster
,
g_ICRdataID
);
rasterP
->
jdata
=
(
*
env
)
->
GetObjectField
(
env
,
jraster
,
g_ICRdataID
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录