“Classpath mode”是指在WildFly文档中提到的一种模式。

huangapple go评论91阅读模式
英文:

What is "classpath mode", as seen in WildFly documentation?

问题

【野飞(WildFly) 16版本的文档】(https://www.wildfly.org/news/2019/02/27/WildFly16-Final-Released/)指出:

> 野飞16同样在Java 8上经过了充分的测试并且运行良好。我们计划至少在野飞18之前继续支持Java 8。
>
> 请注意,野飞在Java 11和12上以类路径模式运行。

这是什么意思?

英文:

The WildFly documentation for version 16 says

> WildFly 16 also is heavily tested and runs well on Java 8. We plan to
> continue to support Java 8 at least through WildFly 18.
>
> Please note that WildFly runs on Java 11 and 12 in classpath mode.

What does this mean?

答案1

得分: 1

'Classpath mode' 是指在引入 Java 9 模块系统之前,Java 之前一直使用的工作模式。

它与 'module mode' 相对应。

Classpath mode

在编译时,Java 编译器不直接编译模块声明。

可观察性(JLS 7.3)仅由宿主系统确定,并对所有编译单元保持一致。宿主系统通常将类路径和/或源路径上的类视为整个可观察的宇宙(以及在命令行上命名的类)。

这就是今天 Java 的工作方式。

请参阅 Project Jigsaw: JDK Modularization Tips

英文:

'Classpath mode' is just how Java has always previously worked prior to the introduction of the Java 9 module system.

It is used in juxtaposition to 'module mode'.

> Classpath mode
>
> At compile-time, a Java compiler does not directly
> compile a module declaration.
>
> Observability (JLS 7.3) is determined solely by the host system, and
> consistently for all compilation units. The host system typically
> considers classes on the classpath and/or sourcepath as the entire
> observable universe (plus classes named on the command line).
>
> This is how Java works today.

See Project Jigsaw: JDK Modularization Tips

huangapple
  • 本文由 发表于 2020年9月1日 18:24:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/63685844.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定