| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <html lang="en"> |
| <head> |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2011. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." > |
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <link rel="STYLESHEET" href="../../book.css" charset="ISO-8859-1" type="text/css"> |
| <title>Adopting 3.7 mechanisms and APIs</title> |
| </head> |
| |
| <body> |
| |
| <h1>Adopting 3.7 mechanisms and APIs</h1> |
| <p> |
| This section describes changes that are required if you are trying to change |
| your 3.6 plug-in to adopt the 3.7 mechanisms and APIs. |
| </p> |
| |
| <ol> |
| <li><a href="#jls4">AST.JLS4 for Java 7 constructs in 3.7.1</a></li> |
| </ol> |
| |
| <hr> |
| |
| <!-- ############################################## --> |
| <h2>1. <a name="#jls4">AST.JLS4 for Java 7 constructs in 3.7.1</a></h2> |
| <p> |
| A new AST level <code>org.eclipse.jdt.core.dom.AST#JLS4</code> has been added for Java 7 language changes. |
| Clients of previous AST levels are recommended to adopt the new AST level and add support for the new constructs |
| (<code>UnionType</code>, <code>TryStatement#resources() / #RESOURCES_PROPERTY</code>). |
| </p> |
| <p> |
| <code>org.eclipse.jdt.core.compiler.ReconcileContext#getAST4()</code> should be used were possible. |
| </p> |
| <p> |
| <code>org.eclipse.jdt.ui.SharedASTProvider#getAST(..)</code> now returns a JLS4 AST. |
| </p> |
| <p> |
| Note that these changes only affect Eclipse 3.7.1 and 3.8. They are not present in 3.7. |
| </p> |
| |
| <!-- ############################################## --> |
| |
| </body> |
| </html> |