下载  >  开发技术  >  Java  > Java_Virtual_Machine_Specification_Java_SE_7_中文版

Java_Virtual_Machine_Specification_Java_SE_7_中文版 评分:

Java_Virtual_Machine_Specification_Java_SE_7_中文版 Java虚拟机规范 中文版
Java虚拟机规范一译者序 最后,请允许我再介绍一下本书三位译者的技术背景与分工 彐周志明(ww.icyfenix.com&weib。.cm/icyfenix):远光软件平台开发部部门经理, 平台架构师,不愿意脱离编码的一线码农。著有《深入理解Java虚拟机:Jw髙级特性与最 佳实践》。关注各种aτa应用,略懂oSGi、Jaτa虚拟机和⊥作流。在本书翻译⊥作中负责 全文统稿;前言和第1、2、6、7章的翻译;第3、4、5章的校审⊥作。 吴璞渊( wuyuan. steve.ccm):就臥于西门子,偏向程序和工作流设汁,喜好Java各 种新技术并倒腾。在本书翻译工作中负责第3章以及第章的1至7节。。 彐冶秀刚(1anyu.iteye.com):思科半台工栏师,从事分布式系统的研究与开发,爱好Java 平台技术且正在努力成长中。在本书翻译工作中负责第5章及第4章的9至11节 周志明 1年11月2 第3页/共387页 Java虚拟机规范一版权声明 版权声明 1.本翻译工作完全基于个人兴趣爱好以及学术研究目的,不涉及出版或任何其他商业行为。本次 翻译与 Oracle或其他Java虚拟机厂商无关,译文是非官方的翻译, 2.译者曾经尝试邮件联系过原文作者,但是一直未获得到回复。根据我国著作权法第22条规定, 以教学、科研为目的,可以不经著作权人许可翻译其已经发表的作品,不向其攴付报酬,但应 当指明作者姓名、作品名称,且不得出版发行。因此本译文的传播,必须严格控制在学习与科 学研究氾围内,任何人未经原文作者和译者同意,不得将译文的全部或部分用于出版或其他商 业行为。 3.在符合第2条的前提下,任何人都可任意方式传播、使用本译文的部分或全部内容,无须预 先知会译者,只要保留作、译者联系信息即可。如果需要进行商业使用,则必须到原作者和详 者的授权。 附原文版权声明如下: Specification: JSR 000924 Java M Virtual Machine Specification( Specification) Version: 7 Status: Final release Release: July 2011 Copyright 2011 Oracle America, Inc. and/ or its affiliates. All rights reserved 500 Oracle Parkway M/S 5op7, California 94065, U. S. A LIMITED LICENSE GRANTS 1. License for Evaluation Purposes. Oracle hereby grants you a fully-paid non exclusive, non transferable, worldwide, limited license (without the right to sublicense), under Oracle's applicable intellectual property rights to view, download, use and reproduce the Specification only for the purpose of internal evaluation. This includes (i) developing applications intended to run on an implementation of the Specification, provided that such applications do not themselves implement any portion (s) f the Specification, and (ii) discussing the Specification with any third party; and (iii) excerpting brief portions of the Specification in oral or written communications which discuss the Specification provided that such excerpts do not in the aggregate constitute a significant portion of the Specification 2. License for the Distribution of Compliant Implementations. Oracle also grants you perpetual, non-exclusive, non-transferable, worldwide, fully paid-up, royalty free? 第4页/共387页 Java虚拟机规范一版权声明 limited license (without the right to sublicense) under any applicable copyrights or subject to the provisions of subsection 4 below, patent rights it may have covering the Specification to create and or distribute an Independent Implementation of the Specification that:(a) fully implements the Specification including all its required interfaces and functionality; (b)does not modify, subset, superset or otherwise extend the licensor Name Space, or include any public or protected packages, classes, Java interfaces, fields or methods within the licensor Name Space other than those required/authorized by the Specification or Specifications being implemented; and (c) passes the Technology Compatibility Kit (including satisfying the requirements of the applicable TCK Users Guide) for such Specification (" Compliant Implementation ).In addition, the foregoing license is expressly conditioned on your not acting outside its scope. No license is granted hereunder for any other purpose (including, for example modifying the Specification, other than to the extent of your fair use rights, or distributing the Specification to third parties). Also, no right, title, or interest in or to any trademarks, service marks, or trade names of Oracle or Oracle s licensors is granted hereunder. Java, and Java-related logos, marks and names are trademarks or registered trademarks of Oracle in the U.S. and other countries. 3. Pass-through Conditions. You need not include limitations (a)-(c) from the previous paragraph or any other particular pass through requirements in any license You grant concerning the use of your Independent Implementation or products derived from it. However except with respect to Independent Implementat ions (and products derived from them)that satisfy limitations (a)-(c) from the previous paragraph, You may neither: (a) grant or othery wise pass through to your licensees any licenses under Oracles applicable intellectual property rights nor (b) authorize your licensees to make any claims concerning their implementat s compliance with the Specification in question 4. Reciprocity Concerning Patent Licenses a. With respect to any patent claims covered by the license granted under subparagraph 2 above that would be fringed by all technically feasible implementations of the Specification, such license is condi tioned upon your offering on fair, reasonable and non-discriminatory terms, to any party secking it from You, a perpetual, non-exclusive non transferable, worldwide license under Your patent rights which are or would be infringed by all technically feasible implementations of the Specification to develop distribute and use a Compliant Implementation b With respect to any patent claims owned by Oracle and covered by the license granted under subparagraph 2, whether or not their infringement can be avoided in a technically feasible manner when implement ing the Specification, such license shall terminate with respect to such claims if You initiate a claim against Oracle that it has, in the course of performing its responsibilities as the Specification Lead, induced any other entity to infringe Your patent rights. c Also with respect to any patent claims owned by Oracle and covered by the license granted 第5页/共387页 Java虚拟机规范一版权声明 under subparagraph 2 above, where the infringement of such claims can be avoided in a technically feasible manner when implementing the Specification such license, with respect to such claims, shall terminate if You initiate a claim against Oracle that its making having made, using, offering to sell, selling or importing a Compliant Implementation infringes Your patent rights 5. Definitions. For the purposes of this agreement:Independent Implementation shall mean an implementation of the Specification that nei ther derives from any of Oracle s source code or binary code materials nor, except with an appropriate and separate license from urac I includes any of Oracle s source code or binary code materials; Licensor Name Space" shall mean the public class or interface declarations whose names begin with java,javax com. sun or their equivalents in any subsequent naming convention adopted by Oracle through the Java Community Process, or any recognized successors or replacements thereof and Technology Compatibility Kit or TCK shall mean the test suite and accompanying TCK User s Guide provided by Oracle which corresponds to the Specification and that was available either (i) from Oracle 120 days before the first release of Your Independent Implementation that allows its use for commercial purposes, or (ii) more recently than 120 days from such release but against which You clect to test your implementation of the Specification This agreement will terminate immediately wi thout notice from Oracle if you breach the Agreement or act outside the scope of the licenses granted above DISCLAIMER OF WARRANTIES THE SPECIFICATION IS PROVIDED AS IS ORACLE MAKES NO REPRESENTATIONS OR WARRANTIES THER EXPRESS OR IMPLIED. INCLLDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT (INCLUDING AS A CONSEQUENCE OF ANY PRACTICE OR IMPLEMENTATION OF THE SPECIFICATION, OR THAT THE CONTENTS OF THE SPECIFICATION ARE SUITABLE FOR ANY PURPOSE. This document does not represent any commitment. to release or implement any portion of the Specification in any product. In addition, the Specification could include technical inaccuracies or typographical crrors LIMITATION OF LIABILITY O THE EXTENT NOT PROHIBITED BY LAW. IN NO EVENT WILL ORACLE OR ITS LICENSORS BE LIABLE FOR ANY DAMAGES, INCLUDING WITHOUT LIMITATION, LOST REVENUE PROFITS OR DATA, OR FOR SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CALSED AND REGARDLESS OF TIE TIIEORY OF LIABILITY ARISING OUT OF OR RELATED IN ANY WAY TO YOUR IIAVING IMPLEMENT ING OR OTHERWISE USING THE SPECIFICATION, EVEN IF ORACLE AND/OR ITS LICENSORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES You will indemnify, hold harmless, and defend Oracle and its licensors from any claims arising or resulting from:(i) your use of the Specification;(ii) the use or distribution of your Java application, applet and or implementation; and or(iii) any claims that later versions or releases of any Specification furnished to you are incompatible with the 第6页/共387页 Java虚拟机规范一版权声明 Specification provided to you under this license RESTRICTED RIGHTS LEGEND U.S. Government: If this Specification is being acquired by or on behalf of the U.S. Government or by a U.S. Government prime contractor or subcontractor (at any tier),ti hen the government' s rights in the Software and accompanying documentation shall be only as set forth in this license; this is in accordance with 48 C F.R. 227 7201 through 227. 7202-4 (for Depar tment of Defense (DoD)acquisitions)and with 48 C.F.R. 2.101 and 12. 212(for DoD acquisitions) REPORT If you provide Oracle with any comments or sugges tions concerning the Specification (Feedback), you hereby: (i)agree that such Feedback is provided on a non-proprietary and non confidential basis, and (ii) grant Oracle a perpetual, non exclusive, worldwide fully paid-up, irrevocable license, with the right to sublicense through multiple levels of sublicensees, to incorporate, disclose, and use wi thout l imitation the Feedback for anv purpose GENERAL TERMS Any action related to this Agreement will be governed by California law and controlling U. S. federal law. The u.n. convention for the internat ional sale of goods and the choice of law rules of any jurisdiction will not apply. The Specification is subject to U. s. export control laws and may be sub ject to export or import regulations in other countries. Licensee agrees to comply strictly with all such laws and regulations and acknowledges that it has the respons ibility to obtain such licenses to export, re-export or impor t as may be required after delivery to Licensee. This Agreement is the parties' entire agreement relating to its subject matter. It supersedes all prior or contemporaneous oral or written communications, proposals, conditions, representations and warranties and prevails over any conflicting or additional terms of any quote, order, acknowledgment, or other communication between the parties relating to its sub ject latter during the term of this Agrecment. No modification to this Agreement will be binding, unless in writing and signed by an authorized representative of each party. 第7页/共387页 Java虚拟机规范一目录 目录 译者序 版权声明 4 目录 ··· 前言 14 第二版说明..., ···: 自春 ·· ..,,.15 Java se7版说明.., ,,15 第1章引言 ,18 1.1简史 1.2Java虚拟机 ······· ..18 1.3各章节提要.... 19 1.4说明 20 第2章Java虚拟机结构. 21 2.1c1ass文件格式 1 2.2数据类型 22 2.3原始类型与值 ,22 2.3.1整型类型与整型值 2.3.2浮点类型、取值集合及浮点值 .3.3 returnAddress类型和值 26 2.3.4 boolean类型 4引用类型与值... 2.5运行时薮据区 2.5.1PC寄存器 ,28 2.5.2 Java 虚拟机栈 ,,28 堆 29 方法区 第8页/共387页 Java虚拟机规范一目录 2.5.5运行时常量池 2.5.6本地方法栈 2.6栈帧 2.6.1局部变量表. 32 2.6.2操作数栈 2.6.3动态链接 自非自非 2.6.4方法正常调用完成 2.6.5方法异常调用完成,. 2.7对象的表示, 2.8浮点算法 2.8.1Java虚拟机和IEE754中的浮点算法.. 2.8.2浮点模式. ········· 2.8.3数值集合转换 ········ 2.9初始化方法的特殊命名 非非 2.10异常. 38 2.11字节码指令集简介 40 2.11.1数据类型与Java虚拟机 41 2.11.2加载和存储指令 4∠ 2.11.3运算指令,,,, 11.4类型转换指令...,, 2.11.5对象创建与操作.. 。。,,,,,,,,,47 2.11.6操作数栈管理指令 。,,,,48 2.11.7控制转移指令 ..,..48 2.11.8方法调用和返回指令 49 2.11.9抛出异常 49 2.11.10同步 49 2.12类库 2.13公有设计,私有实现.......,,,51 第3章为JAVA虚拟机编译 ,53 第9页/共387页 Java虚拟机规范一目录 3.1示例的格式说明 3.2常量、局部变量的使用和控制结构 3.3算术运算 3.4访问运行时常量池 3.5更多的控制结构示例 61 3.6接收参数..,,., 自非自非 64 3.7方法调用,,, 3.8使用类实例,..., ,,67 3.9数组, 3.10编译 swi tch语句. 3.11使用操作数栈 3.12抛出异常和处理异常 ········· 7∠ 3.13编译 inally语句块 ········ 3.14同步. 非非 31 3.15注解. 32 第4章C1ass文件格式 ,,,,,,,,,,.,,,,84 A.1C1assi1e结构 85 4.2各种内部表示名称 90 4.2.1类和接口的二进制名称 30 4.2.2非全限定名.. 4.3描述符和签名 4.3.1语法符号 4.3.2字段描述符. 4.3.3方法描述符 ,,,,93 4.3.4签名 94 4.4常量池 4.4.1 CONSTANT1 ass info结构 98 4.1.2 CONSTANT Fieldref info, CONSTANT Methodref info Nh CNST2 NT IntcrfaceMethodref info结构 第10页/共387页

...展开详情
2014-06-03 上传 大小:2.59MB
举报 收藏 (9)
分享

评论 下载该资源后可以进行评论 共18条

zhangjie0315 对于java深入了解是一把好钥匙
2019-04-18
回复
u011759107 很好的资源
2018-07-24
回复
a31ai10831 很好的资源
2018-05-08
回复
kkkloveyou 不错,高清~
2018-05-03
回复
dienh880426 下载出问题了
2017-11-22
回复