java编译器的源代码在哪里? [英] Where is the source code for the java compiler?
问题描述
我正在寻找Sun标准java编译器的源代码, javac
。
I'm looking for the source code of Sun's standard java compiler, javac
.
jdk1.6.0 _07有一些相关的类,但它们是接口
( java.lang.Compiler
和 javax.tools.JavaCompiler
)。还有一些软件包在 com.sun.mirror。*
和 com.sun.source。*
下,似乎是用于表示java抽象语法树的接口。
jdk1.6.0_07 has a few classes that are related, but they are interfaces
(java.lang.Compiler
and javax.tools.JavaCompiler
). There's also some packages under com.sun.mirror.*
and com.sun.source.*
, which seem to be interfaces for representing the java abstract syntax tree.
但我找不到编译器源代码 - 任何人都知道它在哪里?
But I can't find the compiler source - anyone know where it is?
推荐答案
检查此站点 Java编程语言编译器(javac)组。来源位于Mercurial存储库中。
Check this site The Java programming-language compiler (javac) group. The sources are in the Mercurial repositories.
jdk7 / tl / langtools (适用于JDK 1.7)
jdk7/tl/langtools (for JDK 1.7)
jdk6 / jdk6 / langtools (对于JDK 1.6)
jdk6/jdk6/langtools (for JDK 1.6)
在我链接到的两个站点的标题中找到源的下载链接(在bz2中, zip和gz格式)
In the header of the two sites I linked to you find download links for the sources (in bz2, zip and gz format)
你有 src \ share \ classes \ com \\\\\\\\\\\\\\\\\\\
这篇关于java编译器的源代码在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!