blob: f5c7e081081dbc1e6febd669f9588049f4426c05 [file] [log] [blame]
Stephan Herrmann649fdb52011-05-15 14:12:16 +00001<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<html>
3<head>
4 <link rel=stylesheet type="text/css" href="../css/style.css">
5 <link rel=stylesheet type="text/css" href="../css/nn.css">
6 <title>OTDT 2.0.0 - New and Noteworthy</title>
7</head>
8<body>
9<h1>OTDT 2.0.0 - New and Noteworthy</h1>
10<div class="navigation"><i>Accumulating changes since the 0.7.1 Release - status: 2.0.0 RC1</i></div>
11<div class="navigation">On this page:
12<!--a href="#metrics">&bull; Metrics Plug-in</a-->
13<!--a href="#configuration">&bull; Configuration</a-->
14<a href="#views">&bull; Views/Dialogs</a>
15<a href="#assist">&bull; Content Assist</a>
16<a href="#refactor">&bull; Refactoring</a>
17<!--a href="#formatting">&bull; Formatting</a>
18<a href="#debug">&bull; Run/Debug</a-->
19<a href="#language">&bull; Language</a>
20<!--a href="#api">&bull; API</a-->
21<a href="#compiler">&bull; Compiler</a>
22<!--a href="#otre">&bull; Runtime</a>
23<a href="#otequinox">&bull; OT/Equinox</a-->
24</div>
25<table cellpadding="10" cellspacing="0" width="100%">
26 <colgroup>
27 <col width="20%">
28 <col width="80%">
29 </colgroup>
30 <tbody>
31<!--
32 <tr><td colspan="2" id="NAME"><h2>HEADING</h2></td></tr>
33 <tr>
34 <td><p align="right"><b>DESC</b><br>
35 <span class="since">since&nbsp;0.7.1</span><br>
36 <a class="buglink" title="TITLE" href="https://bugs.eclipse.org/308029">308029</a></p></td>
37 <td><p>
38
39 </p>
40 <p><img alt="TEXT" src="../images/screenshots/NN07/.png"></p>
41 <p></p>
42 </td>
43 </tr>
44 <div class="listbox"><div class="listing"><pre><code class="keyword">public team class</code> <font color="blue">MyTeam</font> {
45}</pre></div></div>
46-->
47 <tr><td colspan="2" id="views"><h2>Views & Dialogs</h2></td></tr>
48 <tr>
49 <td><p align="right"><b>Compiler preferences page cleaned up</b><br>
50 <span class="since">since&nbsp;0.8.0M5</span><br>
51 <a class="buglink" title="cleanup OT/J compiler preferences page" href="https://bugs.eclipse.org/335739">335739</a></p></td>
52 <td><p>The preference page for OT/J compiler options has be revamped following recent improvements in the JDT UI.
53 The page is now structured into expandable sections per group of problems.
54 Also incremental search within the tree of options is supported.
55 The option to disable "scoped keywords" was apparently never used and has been removed from the preferences.
56 </p>
57 <p><img alt="OT/J Compiler preferences" src="../images/screenshots/NN08/CompilerPreferences.png"></p>
58 <p></p>
59 </td>
60 </tr>
61
62 <tr><td colspan="2" id="assist"><h2>Content assist</h2></td></tr>
63 <tr>
64 <td><p align="right"><b>Create role method quickfix</b><br>
65 <span class="since">since&nbsp;0.8.0M4</span><br>
66 <a class="buglink" title="Quickfix method generation on missing replace callin method generates wrong method" href="https://bugs.eclipse.org/329988">329988</a></p></td>
67 <td><p>If a role class has a callin binding whose left-hand side does not resolve to an existing role method
68 a quickfix exists for creating the missing role method.
69 Since 0.8.0M4 this quickfix respects the signature of the bound base method even if the callin binding does not declare any signatures
70 (see the <b>int</b> parameter and return in the screenshot below):
71 </p>
72 <p><img alt="Create Role Method Quickfix" src="../images/screenshots/NN08/CreateRoleMethodQuickfix.png"></p>
73 <p></p>
74 </td>
75 </tr>
76 <tr><td colspan="2" id="refactor"><h2>Refactoring</h2></td></tr>
77 <tr>
78 <td><p align="right"><b>Extract role interface</b><br>
79 <span class="since">since&nbsp;0.8.0M6</span><br>
80 <a class="buglink" title="extract interface on a role should create a role interface" href="https://bugs.eclipse.org/339264">339264</a></p></td>
81 <td><p>A new option has been added to the Extract Interface refactoring:
82 If the enclosing class is a role class a new check box appears:
83 </p>
84 <p><img alt="Extract as role interface checkbox" src="../images/screenshots/NN08/ExtractInterface1.png"></p>
85 <p>If this box is checked the new interface will not be created as a top-level type (as normally done by the JDT),
86 but as a role interface of the current enclosing team.</p>
87 <p><img alt="Extract as role interface preview" src="../images/screenshots/NN08/ExtractInterface2.png"></p>
88 <p>The refactored result looks like this</p>
89 <p><img alt="Extract as role interface result" src="../images/screenshots/NN08/ExtractInterface3.png"></p>
90 </td>
91 </tr>
92<!--
93 <tr><td colspan="2" id="debug"><h2>Run / Debug</h2></td></tr>
94 <tr><td colspan="2" id="api"><h2>API</h2></td></tr>
95-->
96 </tr> <tr><td colspan="2" id="language"><h2>Language</h2></td></tr>
97 <tr>
98 <td><p align="right"><b>Precedence among tsupers</b><br>
99 <span class="since">since&nbsp;0.8.0M3</span><br>
100 <a class="buglink" title="[compiler] implement changed precedence among different tsupers" href="https://bugs.eclipse.org/326969">326969</a></p></td>
101 <td><p>
102 Previously, <a class="otjldlink" href="http://www.objectteams.org/def/1.3/s1.html#s1.5.e">OTJLD &sect;1.5(e)</a>
103 was inconsistent between its first and second sentences.
104 The first sentence defines the general precendence between <code class="keyword">super</code> and <code class="keyword">tsuper</code>,
105 which will remain unchanged.
106 However, the precendence among different tsupers has been adjusted as demonstrated using this example:
107 <div class="listbox"><div class="listing"><pre><code class="keyword">public team class</code> <font color="blue">Team0</font> {
108 <code class="keyword">protected team class</code> <font color="darkblue">InnerTeamA</font> {
109 <code class="keyword">protected class</code> <b>Role</b> {
110 <code class="keyword">public void</code> rm() { ... }
111 }
112 <code class="keyword">public void</code> tm() { ... }
113 }
114 <code class="keyword">protected team class</code> InnerTeamB <code class="keyword">extends</code> <font color="darkblue">InnerTeamA</font> {
115 <code class="keyword">protected class</code> <b>Role</b> {
116 <code class="keyword">public void</code> rm() { ... }
117 }
118 <code class="keyword">public void</code> tm() { ... }
119 }
120}
121<code class="keyword">public team class</code> <font color="blue">Team1 <code class="keyword">extends</code> Team0</font> {
122 <code class="keyword">protected team class</code> <font color="darkblue">InnerTeamA</font> {
123 <code class="keyword">protected class</code> <b>Role</b> {
124 <code class="keyword">public void</code> rm() { ... }
125 }
126 <code class="keyword">public void</code> tm() { ... }
127 }
128 <code class="keyword">protected team class</code> <font color="darkblue">InnerTeamB</font> <code class="keyword">extends</code> <font color="darkblue">InnerTeamA</font> {
129 <font color="green">// details inherited from Team1.InnerTeamA and Team0.InnerTeamB</font>
130 }
131}
132</pre></div></div>
133 When invoking <code>tm()</code> on an instance of <code>Team1.InnerTeamB</code> two implementation are
134 candidates for execution:<ul>
135 <li><code>Team1.InnerTeamA.tm()</code></li>
136 <li><code>Team0.InnerTeamB.tm()</code>,</li></ul>
137 from which <a class="otjldlink" href="http://www.objectteams.org/def/1.3/s1.html#s1.5.e">OTJLD &sect;1.5(e)</a>
138 selects <code>Team0.InnerTeamB</code>.<br />
139 Correspondingly, when invoking <code>rm()</code> on an instance of <code>Team1.InnerTeamB.R</code> two implementation are
140 candidates for execution:<ul>
141 <li><code>Team1.InnerTeamA.Role.rm()</code></li>
142 <li><code>Team0.InnerTeamB.Role.rm()</code>,</li></ul>
143 from which <a class="otjldlink" href="http://www.objectteams.org/def/1.3/s1.html#s1.5.e">OTJLD &sect;1.5(e)</a>
144 now selects <code>Team0.InnerTeamB.Role</code>, consistent with the above.
145 </p>
146 </td>
147 </tr>
148 <tr>
149 <td><p align="right"><b>Avoid role cache</b><br>
150 <span class="since">since&nbsp;0.8.0M6</span><br>
151 <a class="buglink" title="consider optimization by avoiding the role cache" href="https://bugs.eclipse.org/338582">338582</a></p></td>
152 <td><p>
153 It has been observed that maintaining a large number of roles in the team's internal cache may have significant
154 impact on program performance (observed at 100000 roles of one particular type).
155 A new means for fine tuning has been added for situations where role identity is irrelevant.
156 A role class may now be marked with <code>@Instantiation(ALWAYS)</code> meaning that each lifting operation for this role class
157 will immediately create a new role instance without consulting the role cache. In fact such roles will never be stored in
158 any internal cache. Please read the implications discussed in <a href="http://www.objectteams.org/def/1.3/s2.html#s2.3.1.d">OTJLD &sect;2.3.1(d)</a>.
159 </p>
160 </td>
161 </tr>
162 <tr><td colspan="2" id="compiler"><h2>Compiler</h2></td></tr>
163 <tr>
164 <td><p align="right"><b>Severity of write decapsulation</b><br>
165 <span class="since">since&nbsp;0.8.0M5</span><br>
166 <a class="buglink" title="separate tuning of severity of decapsulation in "set" callout-to-field" href="https://bugs.eclipse.org/335523">335523</a></p></td>
167 <td><p>When a role uses a callout <code class="keyword">set</code> to field with decapsulation this may be considered more severe
168 than a corresponding <code class="keyword">get</code> access. Therefor, the compiler now supports separate configurability for both
169 kinds of problems.
170 </p>
171 <p><img alt="Callouts to field with different severity" src="../images/screenshots/NN08/CalloutToFieldSeverity.png"></p>
172 <p></p>
173 </td>
174 </tr>
175
176<!--
177 <tr><td colspan="2" id="otre"><h2>Object Teams Runtime Environment</h2></td></tr>
178-->
179</table>
180</body>