Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
所有1.3版都与哪个版本的Java兼容?_Java_Hamcrest - Fatal编程技术网

所有1.3版都与哪个版本的Java兼容?

所有1.3版都与哪个版本的Java兼容?,java,hamcrest,Java,Hamcrest,我找不到有关问题的任何信息: BUILDING.txt文件源代码中的Java hamcrest all v1.3与哪个版本兼容?包含以下语句: --[ Build requirements ]------------------------------------- * JDK 1.5 Note: that this is a buildtime dependency for 1.5 specific features. However the final built jars sho

我找不到有关问题的任何信息: BUILDING.txt文件源代码中的Java hamcrest all v1.3与哪个版本兼容?

包含以下语句:

--[ Build requirements ]-------------------------------------

* JDK 1.5
  Note: that this is a buildtime dependency for 1.5 specific
  features. However the final built jars should run on 1.4
  and 1.3 JVMs with some features unavailable.
Ant build.xml中的javac命令进一步支持这一点

看起来像,但你为什么不呢?
<javac srcdir="@{srcdir}" destdir="build/temp/@{modulename}-${version}.jar.contents" 
    debug="${debug}" target="1.5" includeantruntime="false">
    ...
</javac>
import static org.gradle.api.JavaVersion.VERSION_1_7

sourceCompatibility = VERSION_1_7
targetCompatibility = VERSION_1_7