Skip to content

Commit 4982655

Browse files
authored
1 parent c48b48f commit 4982655

File tree

4 files changed

+55
-15
lines changed

4 files changed

+55
-15
lines changed

news/4.33/jdt.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ <h2>Java Compiler</h2>
131131
</tr>
132132

133133
<tr id="removed-support-for-java7-and-below">
134-
<td class="title"><a href="#removed-support-for-java7-and-below">Removed support for souce, target and release Java 7 and below</a></td>
134+
<td class="title"><a href="#removed-support-for-java7-and-below">Removed support for source, target and release Java 7 and below</a></td>
135135
<td class="content">
136136
<!-- https://github.com/eclipse-jdt/eclipse.jdt.ui/pull/1367 -->
137137
<p>The following compiler options are now supported only for Java 8 and above:</p>
36.2 KB
Loading
24.4 KB
Loading

news/4.34/jdt.html

Lines changed: 54 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
<body>
2424
<h2>Java Development Tools</h2>
2525
<ul>
26-
<!--<li><a href="#JavaXX">Java&trade; XX Support</a></li>-->
27-
<li><a href="#JUnit">JUnit</a></li>
26+
<li><a href="#JavaXX">Java&trade; 23 Support</a></li>
27+
<!--li><a href="#JUnit">JUnit</a></li-->
2828
<li><a href="#JavaEditor">Java Editor</a></li>
2929
<li><a href="#JavaViewsAndDialogs">Java Views and Dialogs</a></li>
3030
<li><a href="#JavaCompiler">Java Compiler</a></li>
31-
<li><a href="#JavaFormatter">Java Formatter</a></li>
31+
<!--li><a href="#JavaFormatter">Java Formatter</a></li>
3232
<li><a href="#Debug">Debug</a></li>
33-
<li><a href="#JDTDev">JDT Developers</a></li>
33+
<li><a href="#JDTDev">JDT Developers</a></li-->
3434
</ul>
3535

3636
<!-- ****************** START OF N&N TABLE ****************** -->
@@ -42,13 +42,29 @@ <h2>Java Development Tools</h2>
4242
<tbody>
4343

4444
<!-- ******************* Java XX Support ************************************* -->
45-
<!--
4645
<tr>
47-
<td id="JavaXX" class="section" colspan="2">
48-
<h2>Java&trade; XX Support </h2>
46+
<td id="Java23" class="section" colspan="2">
47+
<h2>New Java&trade; Language Features</h2>
4948
</td>
5049
</tr>
51-
-->
50+
<tr id="Java_23"> <!-- https://github.com/eclipse-jdt/eclipse.jdt.core/issues/1396 -->
51+
<td class="title">Java Language Features</td>
52+
<td class="content">
53+
<p>
54+
The release notably includes the following Java features:
55+
<br/>
56+
<a href="https://openjdk.org/jeps/467">JEP 467: Markdown Documentation Comments</a>
57+
<br/>
58+
<a href="https://openjdk.org/jeps/455">JEP 455: Primitive Types in Patterns, instanceof, and switch (Preview)</a>
59+
<br/>
60+
<a href="https://openjdk.org/jeps/476">JEP 476: Module Import Declarations (Preview)</a>
61+
<br/>
62+
<a href="https://openjdk.org/jeps/477">JEP 477: Implicitly Declared Classes and Instance Main Methods (Third Preview)</a>
63+
<br/>
64+
<a href="https://openjdk.org/jeps/482">JEP 482: Flexible Constructor Bodies (Second Preview)</a>
65+
</p>
66+
</td>
67+
</tr>
5268
<!-- ******************* End of Java XX Support ************************************* -->
5369

5470
<!-- ******************* JUnit ************************************* -->
@@ -102,7 +118,7 @@ <h2>Java Editor </h2>
102118
<td class="content">
103119
The if/else to switch clean-up has been enhanced to properly handle the case where the value can be null. In the if/else statement, this is handled intrinsically either by an else statement or falling through the if/else if, but when converting to a switch statement, either the switch must be embedded in an if statement to test for null or for Java 21 or above, a <b>case null</b> statement needs to be added.
104120
<p>The clean-up is accessed on the <b>Code style</b> tab of the clean-up configuration dialog under <b>Control statements</b> and selecting: <b>Convert if/else if/else chain with 3 blocks min to switch</b>.</p>
105-
<p>Applying the clean-up to the following code:<p>
121+
<p>Applying the clean-up to the following code:</p>
106122
<p><img src="images/ifelse-to-switch-null-before.png" alt="convert if/else to switch before"/></p>
107123
<p>results in the following when Java version is less than 21</p>
108124
<p><img src="images/ifelse-to-switch-null-after.png" alt="convert if/else to switch after"/></p>
@@ -120,6 +136,32 @@ <h2>Java Editor </h2>
120136
<h2>Java Views and Dialogs</h2>
121137
</td>
122138
</tr>
139+
<tr id="markdown-doc">
140+
<td class="title">Rendering Markdown Documentation Comments</td>
141+
<td class="content">
142+
<p>
143+
In this release, JDT has added HTML parsing and rendering support for
144+
markdown documentation comments on Java programming elements. This comes as a
145+
standard feature at source level 23. The HTML rendering
146+
is provided both on hover and Javadoc view.
147+
</p>
148+
<p>
149+
Here are some examples of how the markdown comments get rendered:
150+
</p>
151+
<p>
152+
Hovering in the editor:
153+
</p>
154+
<p>
155+
<img src="images/markdown_hover.png" alt="Markdown Comments"/>
156+
</p>
157+
<p>
158+
Javadoc View:
159+
</p>
160+
<p>
161+
<img src="images/markdown_javadoc.png" alt="Markdown Comments"/>
162+
</p>
163+
</td>
164+
</tr>
123165
<tr id="new-filter-options">
124166
<td class="title"> New Filter Options in Call Hierarchy </td>
125167
<td class="content">
@@ -132,11 +174,9 @@ <h2>Java Views and Dialogs</h2>
132174
In the following picture you can see the new filter Options!
133175
</p>
134176
<p>
135-
<img src="images/show-all-code.png" alt="Filter Options">
177+
<img src="images/show-all-code.png" alt="Filter Options"/>
136178
</p>
137179
</td>
138-
<h2>Java Views and Dialogs</h2>
139-
</td>
140180
</tr>
141181
<tr id="move-filter-button">
142182
<td class="title"> Show the Filters in the buttons bar of the Call Hierarchy view </td>
@@ -146,13 +186,13 @@ <h2>Java Views and Dialogs</h2>
146186
With the new, more accessible filters button, changing the filters is easier than ever, especially now that there are more and better options to filter the results.
147187
</p>
148188
<p>
149-
<img src="images\move-filtersbutton-to-top.png" alt="Filters Button on Top bar">
189+
<img src="images\move-filtersbutton-to-top.png" alt="Filters Button on Top bar"/>
150190
</p>
151191
<p>
152192
You can still use the old way to access the filter like so:
153193
</p>
154194
<p>
155-
<img src="images/move-filtersbutton-to-top-other-way.png" alt="old menu">
195+
<img src="images/move-filtersbutton-to-top-other-way.png" alt="old menu"/>
156196
</p>
157197
</td>
158198
</tr>

0 commit comments

Comments
 (0)