Ceylon 1.2 二进制兼容性
Ceylon 1.2 Binary Compatibility
我尝试使用 Ceylon 编译器 1.2 版编译源代码,而我之前使用 Ceylon 编译器 1.1 版成功编译过,但我收到以下错误消息:
source/com/example/helloworld/module.ceylon:2: error: version '1.1.0' of module 'ceylon.net' was compiled by an incompatible version of the compiler (binary version 7.0 of module is not compatible with binary version 8.0 of this compiler)
import ceylon.net "1.1.0" ;
^
source/com/example/helloworld/module.ceylon:2: error: version '1.1.0' of module 'ceylon.collection' was compiled by an incompatible version of the compiler (binary version 7.0 of module is not compatible with binary version 8.0 of this compiler)
import ceylon.net "1.1.0" ;
^
source/com/example/helloworld/module.ceylon:2: error: version '1.1.0' of module 'ceylon.io' was compiled by an incompatible version of the compiler (binary version 7.0 of module is not compatible with binary version 8.0 of this compiler)
import ceylon.net "1.1.0" ;
^
source/com/example/helloworld/module.ceylon:2: error: version '1.1.0' of module 'ceylon.file' was compiled by an incompatible version of the compiler (binary version 7.0 of module is not compatible with binary version 8.0 of this compiler)
import ceylon.net "1.1.0" ;
我想错误消息中的“... binary version 8.0 ...”指的是 Java 版本。
在两次编译尝试中(第一次使用 Ceylon 1.1,第二次使用 1.2)我使用了 Java 版本 8,我不想将其改回 7。
用 Java 版本 8 编译 Ceylon SDK 有帮助吗?我怎样才能与整个 Ceylon 发行版分开呢?
如何将Ceylon SDK的源代码导入到我的项目中并与我的项目一起编译?
不,那实际上是 Ceylon 的二进制版本,与 Java 无关。 Ceylon 1.1 是二进制版本 7,Ceylon 1.2 是二进制版本 8。不幸的是,我们无法提供这些版本之间的二进制兼容性。
您必须在 Ceylon 1.2 中使用 1.2.0
SDK 模块。
错误消息中的二进制版本指的是 Ceylon 二进制版本,不幸的是,我猜它与当前的 JVM 版本相匹配。
Ceylon兼容JVM 7和JVM 8,但Ceylon 1.2.0程序必须使用Ceylon 1.2.0模块;未维护与 Ceylon 1.1.0 的二进制兼容性。
这里的解决方案是简单地将导入更改为import ceylon.net "1.2.0";
。
我尝试使用 Ceylon 编译器 1.2 版编译源代码,而我之前使用 Ceylon 编译器 1.1 版成功编译过,但我收到以下错误消息:
source/com/example/helloworld/module.ceylon:2: error: version '1.1.0' of module 'ceylon.net' was compiled by an incompatible version of the compiler (binary version 7.0 of module is not compatible with binary version 8.0 of this compiler)
import ceylon.net "1.1.0" ;
^
source/com/example/helloworld/module.ceylon:2: error: version '1.1.0' of module 'ceylon.collection' was compiled by an incompatible version of the compiler (binary version 7.0 of module is not compatible with binary version 8.0 of this compiler)
import ceylon.net "1.1.0" ;
^
source/com/example/helloworld/module.ceylon:2: error: version '1.1.0' of module 'ceylon.io' was compiled by an incompatible version of the compiler (binary version 7.0 of module is not compatible with binary version 8.0 of this compiler)
import ceylon.net "1.1.0" ;
^
source/com/example/helloworld/module.ceylon:2: error: version '1.1.0' of module 'ceylon.file' was compiled by an incompatible version of the compiler (binary version 7.0 of module is not compatible with binary version 8.0 of this compiler)
import ceylon.net "1.1.0" ;
我想错误消息中的“... binary version 8.0 ...”指的是 Java 版本。
在两次编译尝试中(第一次使用 Ceylon 1.1,第二次使用 1.2)我使用了 Java 版本 8,我不想将其改回 7。
用 Java 版本 8 编译 Ceylon SDK 有帮助吗?我怎样才能与整个 Ceylon 发行版分开呢?
如何将Ceylon SDK的源代码导入到我的项目中并与我的项目一起编译?
不,那实际上是 Ceylon 的二进制版本,与 Java 无关。 Ceylon 1.1 是二进制版本 7,Ceylon 1.2 是二进制版本 8。不幸的是,我们无法提供这些版本之间的二进制兼容性。
您必须在 Ceylon 1.2 中使用 1.2.0
SDK 模块。
错误消息中的二进制版本指的是 Ceylon 二进制版本,不幸的是,我猜它与当前的 JVM 版本相匹配。
Ceylon兼容JVM 7和JVM 8,但Ceylon 1.2.0程序必须使用Ceylon 1.2.0模块;未维护与 Ceylon 1.1.0 的二进制兼容性。
这里的解决方案是简单地将导入更改为import ceylon.net "1.2.0";
。