Debian Codegraph @

README.html

raw symbols SCIP
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <!--
3
4 Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved.
5 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6
7 This code is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License version 2 only, as
9 published by the Free Software Foundation. Oracle designates this
10 particular file as subject to the "Classpath" exception as provided
11 by Oracle in the LICENSE file that accompanied this code.
12
13 This code is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 version 2 for more details (a copy is included in the LICENSE file that
17 accompanied this code).
18
19 You should have received a copy of the GNU General Public License version
20 2 along with this work; if not, write to the Free Software Foundation,
21 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
22
23 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
24 or visit www.oracle.com if you need additional information or have any
25 questions.
26
27 -->
28
29
30 <html>
31 <head>
32 <meta http-equiv="content-type"
33 content="text/html; charset=ISO-8859-1">
34 <title>README - AsmTools - Version 7.0</title>
35 <style>
36 body, tr {
37 font-family: Arial, Helvetica, sans-serif;
38 font-size: 12px;
39 }
40 table { font-family: Arial, Helvetica, sans-serif;
41 background-color: #FFFFFF;
42 margin-top: 0px; padding-top: 0px;
43 border-top-width: 0px; border-right-width: 0px;
44 border-bottom-width: 0px; border-left-width: 0px;
45 margin-bottom: 10px; margin-left: 0px;
46 padding-bottom: 5px; padding-left: 5px
47 }
48 th
49 { font-family: Arial, Helvetica, sans-serif;
50 text-align: left; vertical-align: bottom;
51 padding-top: 5px; padding-right: 10px;
52 padding-left: 10px; white-space: nowrap
53 border-top-width: 0px; border-right-width: 0px;
54 border-bottom-width: 0px; border-left-width: 0px;
55 padding-bottom: 5px; font-size: 12px;
56 }
57 td
58 { font-family: Arial, Helvetica, sans-serif;
59 padding-right:10px; padding-left: 10px; padding-top: 7px;
60 padding-bottom: 7px; border-top-width: 0px;
61 border-bottom-width: 0px; border-left-width: 0px;
62 border-right-width: 0px; vertical-align: top;
63 font-size: 12px;
64 }
65 td p
66 { font-family: Arial, Helvetica, sans-serif;
67 padding-right:10px; padding-left: 10px; padding-top: 10px
68 border-top-width: 0px; border-right-width: 0px;
69 border-bottom-width: 0px; border-left-width: 0px;
70 vertical-align: top; font-size: 12px;
71 }
72 td h1 { text-align: center
73 }
74 td h2 { text-align: center; padding-top: 0px
75 }
76 td h3 { text-align: center; padding-top: 0px
77 }
78 td h4 { text-align: center; padding-top: 0px
79 }
80 table.Code { margin-bottom: 0.5em; border: 0;
81 margin-top: 0.5em;
82 }
83 table.Screen { margin-top: 0.5em; margin-bottom: 0.5em;
84 border: 1px solid #1E475B;
85 }
86 .Untitled { margin-bottom: 1.0em; margin-top: 1.0em;
87 }
88 .NoBorder { margin-top: 1.0em; margin-bottom: 1.0em;
89 line-height: 2pt; }
90
91 .sun-darkblue { color: #FFFFFF; background-color: #1E475B }
92 .sun-lightblue { background-color: #638093 }
93 </style>
94 <meta http-equiv="content-type"
95 content="text/html; charset=ISO-8859-1">
96 </head>
97 <body>
98 <table border="0" cellpadding="0" cellspacing="0" width="100%">
99 <tbody>
100 <tr>
101 <td class="sun-lightblue">&nbsp;</td>
102 </tr>
103 <tr>
104 <td class="sun-darkblue">
105 <center>
106 <h1>Release Notes</h1>
107 <h2>AsmTools</h2>
108 </h2>
109 <h2>April 2020</h2>
110 </center>
111 </td>
112 </tr>
113 <tr>
114 <td class="sun-lightblue">&nbsp;</td>
115 </tr>
116 </tbody>
117 </table>
118 <p><a name="_top"></a><br>
119 [<a href="#_maincontent">Skip TOC</a>]</p>
120 <h2>Table of Contents</h2>
121 <dl>
122 <dt><a href="#introduction">Introduction</a></dt>
123 <dt><a href="#new_in_release">New in This Release</a> </dt>
124 <dt><a href="#system_requirements">System Requirements</a></dt>
125 <dt><a href="#release_contents">Release Contents</a></dt>
126 <dt><a href="#installation">Installation</a></dt>
127 <dt><a href="#using">Using AsmTools</a></dt>
128 <dt><a href="#known_bugs_and_issues">Known Bugs and Issues</a></dt>
129 <dt><a href="#source">Obtaining Sources</a></dt>
130 <dt><a href="#building">Building from Sources</a></dt>
131 <dt><a href="#contribute">Contribute</a></dt>
132 </dl>
133 <a name="introduction"></a><a name="_maincontent"></a>
134 <h2>Introduction</h2>
135
136 <p>
137 AsmTools is a
138 software package containing a collection of tools that you can use to
139 encode and decode a Java class file, without using a Javac compiler.
140 You can use AsmTools to create class files which can not normally be
141 produced by a compiler. These class files can be used during the
142 development process to test the compliance of a Virtual Machine (VM) to
143 its specification.</p>
144 <p>
145 These
146 release notes contain information about the ASM Tools version 7.0.
147 See the (
148 <a href="https://wiki.openjdk.java.net/display/CodeTools/Main">CodeTools</a> project)
149 <a href="https://wiki.openjdk.java.net/display/CodeTools/AsmTools">AsmTools</a> OpenJDK project page for more information about AsmTools.
150 </p>
151 <p class="nav-link">[<a href="#_top">Top</a>]</p>
152 <a name="new_in_release" id="new_in_release"></a>
153
154
155 <h2>New in This Release</h2>
156 <h3>New Features</h3>
157 <p>
158 </p>
159 <table summary="This table is a summary of New Features for Asm Tools"
160 border="1" cellpadding="12">
161 <tbody>
162 <tr>
163 <th class="sun-darkblue" scope="col"><b>Bug ID </b></th>
164 <th class="sun-darkblue" scope="col"><b>Description</b></th>
165 </tr>
166 <tr>
167 <td>
168 <a href="https://bugs.openjdk.java.net/browse/CODETOOLS-7902525">CODETOOLS-7902525</a>
169 </td>
170 <td>
171 Asmtools support: JEP 360 Sealed Types(Preview)
172 </td>
173 </tr>
174 <tr>
175 <td>
176 <a href="https://bugs.openjdk.java.net/browse/CODETOOLS-7902524">CODETOOLS-7902524</a>
177 </td>
178 <td>
179 Asmtools support: JEP 359 Records(Preview)
180 </td>
181 </tr>
182 </tbody>
183 </table>
184 <p>
185 </p>
186
187 <h3>Fixed Bugs</h3>
188 <p>
189 </p>
190 <table summary="This table is a summary of bug fixes for Asm Tools"
191 border="1" cellpadding="12">
192 <tbody>
193 <tr>
194 <th class="sun-darkblue" scope="col"><b>Bug ID </b></th>
195 <th class="sun-darkblue" scope="col"><b>Description</b></th>
196 </tr>
197 <tr>
198 <td>
199 <a href="https://bugs.openjdk.java.net/browse/CODETOOLS-7902618">CODETOOLS-7902618</a>
200 </td>
201 <td>
202 Asmtools does not support jasm output/input for TypeAnnotations.
203 </td>
204 </tr>
205 <tr>
206 <td>
207 <a href="https://bugs.openjdk.java.net/browse/CODETOOLS-7902643">CODETOOLS-7902643</a>
208 </td>
209 <td>
210 Asmtools(jasm) does not support signature attributes in field_info, component_info
211 </td>
212 </tr>
213 <tr>
214 <td>
215 <a href="https://bugs.openjdk.java.net/browse/CODETOOLS-7902644">CODETOOLS-7902644</a>
216 </td>
217 <td>
218 Asmtools (jcoder) fails if an jcod file contains CONSTANT_Utf8_info with non-normative char sequences
219 </td>
220 </tr>
221 <tr>
222 <td>
223 <a href="https://bugs.openjdk.java.net/browse/CODETOOLS-7902648">CODETOOLS-7902648</a>
224 </td>
225 <td>
226 jasm has no clues about how to interpret CONSTANT_MethodHandle_info:reference_kind in an invokedynamic instruction
227 </td>
228 </tr>
229 </tbody>
230 </table>
231 <p class="nav-link">[<a href="#_top">Top</a>]</p>
232 <p><a name="system_requirements"></a></p>
233 <h2>System Requirements</h2>
234 <p>
235 Using ASM Tools requires a properly configured, certified Java
236 Platform, Standard Edition (Java SE&#8482; platform) runtime environment
237 version 1.8 or later, or a Java SE platform 8.0 runtime environment.
238 </p>
239 <p class="nav-link">[<a href="#_top">Top</a>]</p>
240 <a name="installation"></a>
241 <h2>Installation</h2>
242 To install the AsmTools, simply unzip the&nbsp; asmtools-7.0.zip
243 distribution file in the directory of your choice. Optionally, you may
244 wish to define an environment variable (ASMTOOLSHOME) to point to this
245 location for your convenience.
246 <p class="nav-link">[<a href="#_top">Top</a>]</p>
247 <a name="release_contents"></a>
248 <h2>Release Contents</h2>
249 <p>
250 This section lists the components under the base subdirectory structure
251 (<code>asmtools-7.0/</code>)
252 that is created when you unzip the AsmTools distribution archive during
253 installation.
254 </p>
255 <h3>Important Component Descriptions and Locations</h3>
256 <table style="width: 85%;"
257 summary="This table describes AsmTools's primary external components."
258 border="1" cellpadding="12">
259 <tbody>
260 <tr>
261 <th><b><u>Component</u></b></th>
262 <th><b><u>Description</u></b></th>
263 </tr>
264 <tr>
265 <td><a href="README.html"><tt>README.html</tt></a></td>
266 <td>The AsmTools release notes (this document). </td>
267 </tr>
268 <tr>
269 <td><tt>lib/asmtools.jar</tt></td>
270 <td>The AsmTools library.<br>
271 </td>
272 </tr>
273 </tbody>
274 </table>
275 <p class="nav-link"><span style="font-weight: bold;">Note*</span> If
276 you are creating a local copy of AsmTools, you can not move the /lib
277 folder to a different location.&nbsp; AsmTools relies on the relative
278 location of this folder.
279 </p>
280 <p class="nav-link">[<a href="#_top">Top</a>]</p>
281 <a name="using" id="using"></a>
282 <h2>Using AsmTools</h2>
283 <p>AsmTools have the following synopsis:</p>
284 <div style="margin-left: 40px;">
285 <pre>java -jar ${ASMTOOLSHOME}/asmtools.jar TOOL FILE<br> [TOOL="jasm" | "jdis" | "jcoder" | jdec | jcdec]<br> [FILE=xxx.jasm (for jasm command) | xxx.jcod (for jcod command) | xxx.class for jdis, jdec, or jcdec command]<br><br></pre>
286 </div>
287 <p> Examples: </p>
288 <div style="margin-left: 40px;">
289 <br>
290 % java -jar ${ASMTOOLSHOME}/asmtools.jar jasm MyClass.jasm <br>
291 (produces MyClass.class)<br>
292 <br>
293 % java -jar ${ASMTOOLSHOME}/asmtools.jar jdis MyClass.class &gt;
294 MyClass.jasm <br>
295 (produces MyClass.jasm)<br>
296 <br>
297 % java -jar ${ASMTOOLSHOME}/asmtools.jar jcoder MyClass.jcod <br>
298 (produces MyClass.class)<br>
299 <br>
300 % java -jar ${ASMTOOLSHOME}/asmtools.jar jdec MyClass.class &gt;
301 MyClass.jcod <br>
302 (produces MyClass.jcod)
303 </div>
304
305 <p>
306 Assembler Syntax and tool usage is covered in the
307 <a href="https://wiki.openjdk.java.net/display/CodeTools/AsmTools">AsmTools project wiki</a>.
308 </p>
309 <br>
310 <h3>Operating Modes</h3>
311 <p>There are no operating modes.</p>
312 <p><span class="nav-link">[<a href="#_top">Top</a>]</span></p>
313 <p><a name="known_bugs_and_issues" id="known_bugs_and_issues"></a></p>
314 <h2>Known Bugs and Issues</h2>
315 <p>
316 Many attributes (in the class file, as specified by the
317
318 <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html">Java VM Specification, Chapter 4)</a>
319
320 are covered in the JASM syntax, but not all.
321 </p>
322 <p><span class="nav-link">[<a href="#_top">Top</a>]</span></p>
323 <p><a name="contribute" id="contribute"></a></p>
324 <h2>Contribute</h2><p>
325 The AsmTools open source project was created in order to develop a community that will improve it, further the development of Java assembly tools, and use Java assemblers to develop test suites. We encourage you to browse, download, contribute, and get involved.
326 </p>
327
328 <p><span class="nav-link">[<a href="#_top">Top</a>]</span></p>
329 <p><a name="source" id="source"></a></p>
330 <h2>Obtaining the Sources</h2>
331 <p>
332 The sources for <a href="">ASM Tools</a> 7.0 and later is available via the community
333 <a href="http://www.openjdk.org/">OpenJDK</a> project. The sources are stored
334 and accessed through a Mercurial repository, which the public may access in a
335 read-only fashion. Committing to changes to the sources is accomplished by
336 first contributing through a proxy developer to establish ones self, which can
337 then lead to rights to contribute directly. More information can be found on
338 the <a href="http://openjdk.java.net/projects/">OpenJDK Projects</a> landing page.
339 </p>
340
341 <p>
342 The general form for obtaining a copy of the current source tree is:</p>
343 <pre>
344 % hg clone http://hg.openjdk.java.net/code-tools/asmtools asmtools-ro
345 </pre>
346 This places a copy of the entire source tree in the asmtools-ro directory. From
347 that directory, you can then view and build the sources, as described in the next
348 section. Note that this copy is of the development version of the sources,
349 you may need to extract a different revision if you want a copy from a specific
350 period of time.
351
352
353 <p>
354 At the time of writing, the current version of Mercurial (<code>hg</code>)
355 is 2.9.1. See the <a href="https://wiki.openjdk.java.net/display/CodeTools/ASM+Tools">
356 OpenJDK ASM Tools</a> main page for updated and more detailed information.
357 </p>
358
359 <p><span class="nav-link">[<a href="#_top">Top</a>]</span></p>
360 <p><a name="building" id="building"></a></p>
361 <h2>Building the Sources</h2>
362 <p>
363 Building the sources requires Ant version 1.8 or later (1.10.1 is current at the
364 time of writing), and the built-in build is compatible with using an IDE.
365 The sources are designed for Java 8 and if you invoke <code>ant</code> with this
366 runtime, your chance of encountering an abnormal conditions due to your runtime
367 or compiler (or javadoc) version.
368 </p>
369
370 <p>
371 General requirements:
372 </p>
373 <ul>
374 <li>ant, version 1.8 or later
375 <li>Java 8 runtime and compiler (minimum and recommended)
376 <li>10MB free disk space (3MB for source tree, 7MB for build output)
377 </ul>
378
379 <p>
380 The general steps to do a build from source from the command line:
381 </p>
382 <ol>
383 <li><a href="#sources">Obtain Sources</a>
384 <li>Make your current directory <code>&lt;topdir&gt;/build/</code>
385 <li>Invoke ant:<br><code>% ant</code>
386 <li>Output appears in a directory above (one above &lt;topdir&gt;),
387 such as: <code>../../asmtools-7.0-build/</code>
388 </ol>
389
390 <p>
391 A common variation of the build command to force <code>ant</code> to use a particular
392 installation of Java on your machine:
393 </p>
394 <pre>
395 # JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home ANTHOME=/usr/share/ant ant
396 </pre>
397 This example for common *nix shells (<code>zsh, bash, sh</code>), alter it as needed for your
398 command environment. You can test your invocation of <code>ant</code> by running it with
399 the <code>-diagnostics</code> flag, where it will indicate which Java it is
400 using.
401
402
403 <p>
404 The build file itself is <code>build/build.xml</code>, this is the file you can
405 specify in your IDE for building.
406 </p>
407
408 <!-- end of sections, footer matter follows -->
409 <p><br>
410 </p>
411 <p class="nav-link">[<a href="#_top">Top</a>]</p>
412 <hr>
413
414 <hr noshade="noshade">
415 <p><a href="legal/copyright.txt">Copyright</a> &copy; 2008, 2020, Oracle and/or its affiliates. All rights reserved.
416 Use is subject to license terms.The majority of the Assember Tools project is released under the <A
417 HREF="http://openjdk.java.net/legal/gplv2+ce.html">GNU
418 General Public License Version 2 (GPLv2)</A></p>
419 </body>
420 </html>