Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
160306dc
Unverified
提交
160306dc
authored
6 年前
作者:
Evgenij Ryazanov
提交者:
GitHub
6 年前
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1638 from katzyn/jdk11
Add support for Java 11 to test suite
上级
7a0c2456
449bcfd8
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
65 行增加
和
37 行删除
+65
-37
.travis.yml
.travis.yml
+1
-1
pom.xml
h2/pom.xml
+1
-1
changelog.html
h2/src/docsrc/html/changelog.html
+14
-0
TestDateStorage.java
h2/src/test/org/h2/test/db/TestDateStorage.java
+9
-0
TestKeywords.java
h2/src/test/org/h2/test/unit/TestKeywords.java
+2
-2
TestNetUtils.java
h2/src/test/org/h2/test/unit/TestNetUtils.java
+5
-0
Build.java
h2/src/tools/org/h2/build/Build.java
+32
-32
BuildBase.java
h2/src/tools/org/h2/build/BuildBase.java
+1
-1
没有找到文件。
.travis.yml
浏览文件 @
160306dc
...
@@ -8,7 +8,7 @@ cache:
...
@@ -8,7 +8,7 @@ cache:
matrix
:
matrix
:
include
:
include
:
-
jdk
:
openjdk1
0
-
jdk
:
openjdk1
1
dist
:
trusty
dist
:
trusty
group
:
edge
group
:
edge
sudo
:
required
sudo
:
required
...
...
This diff is collapsed.
Click to expand it.
h2/pom.xml
浏览文件 @
160306dc
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
<dependency>
<dependency>
<groupId>
org.ow2.asm
</groupId>
<groupId>
org.ow2.asm
</groupId>
<artifactId>
asm
</artifactId>
<artifactId>
asm
</artifactId>
<version>
6.1
</version>
<version>
7.0
</version>
<scope>
test
</scope>
<scope>
test
</scope>
</dependency>
</dependency>
<!-- END TEST DEPENDENCIES !-->
<!-- END TEST DEPENDENCIES !-->
...
...
This diff is collapsed.
Click to expand it.
h2/src/docsrc/html/changelog.html
浏览文件 @
160306dc
...
@@ -21,6 +21,20 @@ Change Log
...
@@ -21,6 +21,20 @@ Change Log
<h2>
Next Version (unreleased)
</h2>
<h2>
Next Version (unreleased)
</h2>
<ul>
<ul>
<li>
PR #1638: Add support for Java 11 to test suite
</li>
<li>
PR #1637: Remove explicit unboxing
</li>
<li>
PR #1635: Optimize UUID to VARCHAR conversion and use correct time check in Engine.openSession()
</li>
<li>
Issue #1632: TestMVTableEngine failure
</li>
<li>
PR #1631: Prepere to release: javadoc cleanup
</li>
<li>
PR #1630: fix duplicate words typos in comments and javadoc
</li>
<li>
PR #1627: Use lock to protect append buffer
</li>
<li>
Issue #1618: GROUP BY does not work with two identical columns in selected expressions
<li>
Issue #1618: GROUP BY does not work with two identical columns in selected expressions
</li>
</li>
<li>
Issue #1619: Two-phase commit regression in MASTER
<li>
Issue #1619: Two-phase commit regression in MASTER
...
...
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/db/TestDateStorage.java
浏览文件 @
160306dc
...
@@ -172,6 +172,15 @@ public class TestDateStorage extends TestDb {
...
@@ -172,6 +172,15 @@ public class TestDateStorage extends TestDb {
try
{
try
{
ArrayList
<
TimeZone
>
distinct
=
TestDate
.
getDistinctTimeZones
();
ArrayList
<
TimeZone
>
distinct
=
TestDate
.
getDistinctTimeZones
();
for
(
TimeZone
tz
:
distinct
)
{
for
(
TimeZone
tz
:
distinct
)
{
/*
* Some OpenJDKs have unusable timezones with negative DST that
* causes IAE in SimpleTimeZone().
*/
if
(
tz
.
getID
().
startsWith
(
"SystemV/"
))
{
if
(
tz
.
getDSTSavings
()
<
0
)
{
continue
;
}
}
// println(tz.getID());
// println(tz.getID());
TimeZone
.
setDefault
(
tz
);
TimeZone
.
setDefault
(
tz
);
DateTimeUtils
.
resetCalendar
();
DateTimeUtils
.
resetCalendar
();
...
...
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/unit/TestKeywords.java
浏览文件 @
160306dc
...
@@ -39,7 +39,7 @@ public class TestKeywords extends TestBase {
...
@@ -39,7 +39,7 @@ public class TestKeywords extends TestBase {
public
void
test
()
throws
Exception
{
public
void
test
()
throws
Exception
{
final
HashSet
<
String
>
set
=
new
HashSet
<>();
final
HashSet
<
String
>
set
=
new
HashSet
<>();
ClassReader
r
=
new
ClassReader
(
Parser
.
class
.
getResourceAsStream
(
"Parser.class"
));
ClassReader
r
=
new
ClassReader
(
Parser
.
class
.
getResourceAsStream
(
"Parser.class"
));
r
.
accept
(
new
ClassVisitor
(
Opcodes
.
ASM
6
)
{
r
.
accept
(
new
ClassVisitor
(
Opcodes
.
ASM
7
)
{
@Override
@Override
public
FieldVisitor
visitField
(
int
access
,
String
name
,
String
descriptor
,
String
signature
,
public
FieldVisitor
visitField
(
int
access
,
String
name
,
String
descriptor
,
String
signature
,
Object
value
)
{
Object
value
)
{
...
@@ -50,7 +50,7 @@ public class TestKeywords extends TestBase {
...
@@ -50,7 +50,7 @@ public class TestKeywords extends TestBase {
@Override
@Override
public
MethodVisitor
visitMethod
(
int
access
,
String
name
,
String
descriptor
,
String
signature
,
public
MethodVisitor
visitMethod
(
int
access
,
String
name
,
String
descriptor
,
String
signature
,
String
[]
exceptions
)
{
String
[]
exceptions
)
{
return
new
MethodVisitor
(
Opcodes
.
ASM
6
)
{
return
new
MethodVisitor
(
Opcodes
.
ASM
7
)
{
@Override
@Override
public
void
visitLdcInsn
(
Object
value
)
{
public
void
visitLdcInsn
(
Object
value
)
{
add
(
set
,
value
);
add
(
set
,
value
);
...
...
This diff is collapsed.
Click to expand it.
h2/src/test/org/h2/test/unit/TestNetUtils.java
浏览文件 @
160306dc
...
@@ -15,6 +15,7 @@ import javax.net.ssl.SSLContext;
...
@@ -15,6 +15,7 @@ import javax.net.ssl.SSLContext;
import
javax.net.ssl.SSLServerSocket
;
import
javax.net.ssl.SSLServerSocket
;
import
javax.net.ssl.SSLSession
;
import
javax.net.ssl.SSLSession
;
import
javax.net.ssl.SSLSocket
;
import
javax.net.ssl.SSLSocket
;
import
org.h2.build.BuildBase
;
import
org.h2.engine.SysProperties
;
import
org.h2.engine.SysProperties
;
import
org.h2.test.TestBase
;
import
org.h2.test.TestBase
;
import
org.h2.util.NetUtils
;
import
org.h2.util.NetUtils
;
...
@@ -57,6 +58,10 @@ public class TestNetUtils extends TestBase {
...
@@ -57,6 +58,10 @@ public class TestNetUtils extends TestBase {
* (no SSL certificate is needed).
* (no SSL certificate is needed).
*/
*/
private
void
testAnonymousTlsSession
()
throws
Exception
{
private
void
testAnonymousTlsSession
()
throws
Exception
{
if
(
BuildBase
.
getJavaVersion
()
>=
11
)
{
// Issue #1303
return
;
}
assertTrue
(
"Failed assumption: the default value of ENABLE_ANONYMOUS_TLS"
+
assertTrue
(
"Failed assumption: the default value of ENABLE_ANONYMOUS_TLS"
+
" property should be true"
,
SysProperties
.
ENABLE_ANONYMOUS_TLS
);
" property should be true"
,
SysProperties
.
ENABLE_ANONYMOUS_TLS
);
boolean
ssl
=
true
;
boolean
ssl
=
true
;
...
...
This diff is collapsed.
Click to expand it.
h2/src/tools/org/h2/build/Build.java
浏览文件 @
160306dc
...
@@ -136,10 +136,10 @@ public class Build extends BuildBase {
...
@@ -136,10 +136,10 @@ public class Build extends BuildBase {
public
void
coverage
()
{
public
void
coverage
()
{
compile
();
compile
();
downloadTest
();
downloadTest
();
downloadUsingMaven
(
"ext/org.jacoco.agent-0.8.
0
.jar"
,
downloadUsingMaven
(
"ext/org.jacoco.agent-0.8.
2
.jar"
,
"org.jacoco"
,
"org.jacoco.agent"
,
"0.8.
0
"
,
"org.jacoco"
,
"org.jacoco.agent"
,
"0.8.
2
"
,
"
f2748b949b5fc661e089e2eeef39891dfd10a7e
5"
);
"
1402427761df5c7601ff6e06280764833ed727b
5"
);
try
(
ZipFile
zipFile
=
new
ZipFile
(
new
File
(
"ext/org.jacoco.agent-0.8.
0
.jar"
)))
{
try
(
ZipFile
zipFile
=
new
ZipFile
(
new
File
(
"ext/org.jacoco.agent-0.8.
2
.jar"
)))
{
final
Enumeration
<?
extends
ZipEntry
>
e
=
zipFile
.
entries
();
final
Enumeration
<?
extends
ZipEntry
>
e
=
zipFile
.
entries
();
while
(
e
.
hasMoreElements
())
{
while
(
e
.
hasMoreElements
())
{
final
ZipEntry
zipEntry
=
e
.
nextElement
();
final
ZipEntry
zipEntry
=
e
.
nextElement
();
...
@@ -154,21 +154,21 @@ public class Build extends BuildBase {
...
@@ -154,21 +154,21 @@ public class Build extends BuildBase {
}
catch
(
IOException
ex
)
{
}
catch
(
IOException
ex
)
{
throw
new
RuntimeException
(
ex
);
throw
new
RuntimeException
(
ex
);
}
}
downloadUsingMaven
(
"ext/org.jacoco.cli-0.8.
0
.jar"
,
downloadUsingMaven
(
"ext/org.jacoco.cli-0.8.
2
.jar"
,
"org.jacoco"
,
"org.jacoco.cli"
,
"0.8.
0
"
,
"org.jacoco"
,
"org.jacoco.cli"
,
"0.8.
2
"
,
"
69e55ba110e6ffa91d72ed3df8e09aecf043b0ab
"
);
"
9595c53358d0306900183b5a7e6a70c88171ab4c
"
);
downloadUsingMaven
(
"ext/org.jacoco.core-0.8.
0
.jar"
,
downloadUsingMaven
(
"ext/org.jacoco.core-0.8.
2
.jar"
,
"org.jacoco"
,
"org.jacoco.core"
,
"0.8.
0
"
,
"org.jacoco"
,
"org.jacoco.core"
,
"0.8.
2
"
,
"
cc2ebdc1da53665ec788903bad65ee64345e4455
"
);
"
977b33afe2344a9ee801fd3317c54d8e1f9d7a79
"
);
downloadUsingMaven
(
"ext/org.jacoco.report-0.8.
0
.jar"
,
downloadUsingMaven
(
"ext/org.jacoco.report-0.8.
2
.jar"
,
"org.jacoco"
,
"org.jacoco.report"
,
"0.8.
0
"
,
"org.jacoco"
,
"org.jacoco.report"
,
"0.8.
2
"
,
"
1bcab2a451f5a382bc674857c8f3f6d3fa52151d
"
);
"
50e133cdfd2d31ca5702b73615be70f801d3ae26
"
);
downloadUsingMaven
(
"ext/asm-commons-
6.1
.jar"
,
downloadUsingMaven
(
"ext/asm-commons-
7.0
.jar"
,
"org.ow2.asm"
,
"asm-commons"
,
"
6.1
"
,
"org.ow2.asm"
,
"asm-commons"
,
"
7.0
"
,
"
8a8d242d7ce00fc937a245fae5b65763d13f7c
d1"
);
"
478006d07b7c561ae3a92ddc1829bca81ae0cd
d1"
);
downloadUsingMaven
(
"ext/asm-tree-
6.1
.jar"
,
downloadUsingMaven
(
"ext/asm-tree-
7.0
.jar"
,
"org.ow2.asm"
,
"asm-tree"
,
"
6.1
"
,
"org.ow2.asm"
,
"asm-tree"
,
"
7.0
"
,
"
701262d4b9bcbdc2d4b80617e82db9a2b7f4f088
"
);
"
29bc62dcb85573af6e62e5b2d735ef65966c4180
"
);
downloadUsingMaven
(
"ext/args4j-2.33.jar"
,
downloadUsingMaven
(
"ext/args4j-2.33.jar"
,
"args4j"
,
"args4j"
,
"2.33"
,
"args4j"
,
"args4j"
,
"2.33"
,
"bd87a75374a6d6523de82fef51fc3cfe9baf9fc9"
);
"bd87a75374a6d6523de82fef51fc3cfe9baf9fc9"
);
...
@@ -204,12 +204,12 @@ public class Build extends BuildBase {
...
@@ -204,12 +204,12 @@ public class Build extends BuildBase {
delete
(
files
(
"coverage/bin/org/h2/sample"
));
delete
(
files
(
"coverage/bin/org/h2/sample"
));
// Generate report
// Generate report
execJava
(
args
(
"-cp"
,
execJava
(
args
(
"-cp"
,
"ext/org.jacoco.cli-0.8.
0
.jar"
+
File
.
pathSeparator
"ext/org.jacoco.cli-0.8.
2
.jar"
+
File
.
pathSeparator
+
"ext/org.jacoco.core-0.8.
0
.jar"
+
File
.
pathSeparator
+
"ext/org.jacoco.core-0.8.
2
.jar"
+
File
.
pathSeparator
+
"ext/org.jacoco.report-0.8.
0
.jar"
+
File
.
pathSeparator
+
"ext/org.jacoco.report-0.8.
2
.jar"
+
File
.
pathSeparator
+
"ext/asm-
6.1
.jar"
+
File
.
pathSeparator
+
"ext/asm-
7.0
.jar"
+
File
.
pathSeparator
+
"ext/asm-commons-
6.1
.jar"
+
File
.
pathSeparator
+
"ext/asm-commons-
7.0
.jar"
+
File
.
pathSeparator
+
"ext/asm-tree-
6.1
.jar"
+
File
.
pathSeparator
+
"ext/asm-tree-
7.0
.jar"
+
File
.
pathSeparator
+
"ext/args4j-2.33.jar"
,
+
"ext/args4j-2.33.jar"
,
"org.jacoco.cli.internal.Main"
,
"report"
,
"coverage/jacoco.exec"
,
"org.jacoco.cli.internal.Main"
,
"report"
,
"coverage/jacoco.exec"
,
"--classfiles"
,
"coverage/bin"
,
"--classfiles"
,
"coverage/bin"
,
...
@@ -269,7 +269,7 @@ public class Build extends BuildBase {
...
@@ -269,7 +269,7 @@ public class Build extends BuildBase {
File
.
pathSeparator
+
"ext/org.osgi.core-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.core-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.enterprise-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.enterprise-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/jts-core-1.15.0.jar"
+
File
.
pathSeparator
+
"ext/jts-core-1.15.0.jar"
+
File
.
pathSeparator
+
"ext/asm-
6.1
.jar"
+
File
.
pathSeparator
+
"ext/asm-
7.0
.jar"
+
File
.
pathSeparator
+
javaToolsJar
;
File
.
pathSeparator
+
javaToolsJar
;
FileList
files
;
FileList
files
;
if
(
clientOnly
)
{
if
(
clientOnly
)
{
...
@@ -384,9 +384,9 @@ public class Build extends BuildBase {
...
@@ -384,9 +384,9 @@ public class Build extends BuildBase {
downloadOrVerify
(
"ext/junit-4.12.jar"
,
downloadOrVerify
(
"ext/junit-4.12.jar"
,
"junit"
,
"junit"
,
"4.12"
,
"junit"
,
"junit"
,
"4.12"
,
"2973d150c0dc1fefe998f834810d68f278ea58ec"
,
offline
);
"2973d150c0dc1fefe998f834810d68f278ea58ec"
,
offline
);
downloadUsingMaven
(
"ext/asm-
6.1
.jar"
,
downloadUsingMaven
(
"ext/asm-
7.0
.jar"
,
"org.ow2.asm"
,
"asm"
,
"
6.1
"
,
"org.ow2.asm"
,
"asm"
,
"
7.0
"
,
"
94a0d17ba8eb24833cd54253ace9b053786a9571
"
);
"
d74d4ba0dee443f68fb2dcb7fcdb945a2cd89912
"
);
}
}
private
void
downloadOrVerify
(
String
target
,
String
group
,
String
artifact
,
private
void
downloadOrVerify
(
String
target
,
String
group
,
String
artifact
,
...
@@ -669,7 +669,7 @@ public class Build extends BuildBase {
...
@@ -669,7 +669,7 @@ public class Build extends BuildBase {
File
.
pathSeparator
+
"ext/org.osgi.core-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.core-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.enterprise-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.enterprise-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/jts-core-1.15.0.jar"
+
File
.
pathSeparator
+
"ext/jts-core-1.15.0.jar"
+
File
.
pathSeparator
+
"ext/asm-
6.1
.jar"
+
File
.
pathSeparator
+
"ext/asm-
7.0
.jar"
+
File
.
pathSeparator
+
"ext/junit-4.12.jar"
,
File
.
pathSeparator
+
"ext/junit-4.12.jar"
,
"-subpackages"
,
"org.h2"
);
"-subpackages"
,
"org.h2"
);
...
@@ -704,7 +704,7 @@ public class Build extends BuildBase {
...
@@ -704,7 +704,7 @@ public class Build extends BuildBase {
File
.
pathSeparator
+
"ext/org.osgi.core-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.core-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.enterprise-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/org.osgi.enterprise-4.2.0.jar"
+
File
.
pathSeparator
+
"ext/jts-core-1.15.0.jar"
+
File
.
pathSeparator
+
"ext/jts-core-1.15.0.jar"
+
File
.
pathSeparator
+
"ext/asm-
6.1
.jar"
+
File
.
pathSeparator
+
"ext/asm-
7.0
.jar"
+
File
.
pathSeparator
+
"ext/junit-4.12.jar"
,
File
.
pathSeparator
+
"ext/junit-4.12.jar"
,
"-subpackages"
,
"org.h2"
,
"-subpackages"
,
"org.h2"
,
"-package"
,
"-package"
,
...
@@ -967,7 +967,7 @@ public class Build extends BuildBase {
...
@@ -967,7 +967,7 @@ public class Build extends BuildBase {
File
.
pathSeparator
+
"ext/jts-core-1.15.0.jar"
+
File
.
pathSeparator
+
"ext/jts-core-1.15.0.jar"
+
File
.
pathSeparator
+
"ext/slf4j-api-1.6.0.jar"
+
File
.
pathSeparator
+
"ext/slf4j-api-1.6.0.jar"
+
File
.
pathSeparator
+
"ext/slf4j-nop-1.6.0.jar"
+
File
.
pathSeparator
+
"ext/slf4j-nop-1.6.0.jar"
+
File
.
pathSeparator
+
"ext/asm-
6.1
.jar"
+
File
.
pathSeparator
+
"ext/asm-
7.0
.jar"
+
File
.
pathSeparator
+
javaToolsJar
;
File
.
pathSeparator
+
javaToolsJar
;
int
version
=
getJavaVersion
();
int
version
=
getJavaVersion
();
if
(
version
>=
9
)
{
if
(
version
>=
9
)
{
...
...
This diff is collapsed.
Click to expand it.
h2/src/tools/org/h2/build/BuildBase.java
浏览文件 @
160306dc
...
@@ -928,7 +928,7 @@ public class BuildBase {
...
@@ -928,7 +928,7 @@ public class BuildBase {
*
*
* @return the Java version (7, 8, 9, 10, 11, etc)
* @return the Java version (7, 8, 9, 10, 11, etc)
*/
*/
p
rotected
static
int
getJavaVersion
()
{
p
ublic
static
int
getJavaVersion
()
{
int
version
=
7
;
int
version
=
7
;
String
v
=
getJavaSpecVersion
();
String
v
=
getJavaSpecVersion
();
if
(
v
!=
null
)
{
if
(
v
!=
null
)
{
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论