<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
Hi Marc,<br>
<br>
> Is there any good reason not to remove the “final” modifier
from the class definition?<br>
<br>
Providing extensibility is not as simple as "removing the final
modifier". This would be an API change that needs to be motivated
and discussed just like any other API change. That discussion needs
to include how this would benefit applications (not just yours), and
also discuss how the extensibility should be added. All currently
public methods need to be examined to see which ones would be made
extensible, and which should be left as final (since all methods in
a final class are implicitly final). The class docs and the docs for
each non-final method will need to explain how it should be
overridden and whether there any considerations for doing so.<br>
<br>
If a good case can be made for making this class extensible, then we
can discuss the proposed changes on this list. Please see the New
features / API additions sections of the CONTRIBUTING guidelines [1]
for what needs to happen.<br>
<br>
> We would like to have this change ASAP.<br>
<br>
The earliest this change could show up would be in JavaFX 21, and
that would only happen if someone was sufficiently motivated enough
to do the work needed for the change, and if there is general
agreement.<br>
<br>
-- Kevin<br>
<br>
[1]
<a class="moz-txt-link-freetext" href="https://github.com/openjdk/jfx/blob/master/CONTRIBUTING.md#new-features--api-additions">https://github.com/openjdk/jfx/blob/master/CONTRIBUTING.md#new-features--api-additions</a><br>
<br>
<br>
<div class="moz-cite-prefix">On 3/8/2023 3:30 AM, Toni, Marc wrote:<br>
</div>
<blockquote type="cite" cite="mid:AM0PR01MB470668918959C7A14942AAB683B49@AM0PR01MB4706.eurprd01.prod.exchangelabs.com">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">There is an open
Enhancement issue (<a href="https://bugs.openjdk.org/browse/JDK-8090467" moz-do-not-send="true" class="moz-txt-link-freetext">https://bugs.openjdk.org/browse/JDK-8090467</a>),
back from 2011, to allow extending from the NumberAxis
class.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">We (at Vector Germany)
want to extend from NumberAxis to overwrite the
implementations of “calculateTickValues” and
“calculateMinorTickMarks” for better tick marks depending on
the tick unit.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">For testing purposes, we
copied the implementation of NumberAxis and refactored the
two methods. But due to licensing issues, we must not use
this approach.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is there any good reason
not to remove the “final” modifier from the class
definition? We would like to have this change ASAP.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:black;background:white;mso-fareast-language:DE" lang="EN-US">Best regards,</span><span style="background:white;mso-fareast-language:DE" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:white;mso-fareast-language:DE" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE" lang="EN-US">Marc Toni<o:p></o:p></span></p>
</div>
</blockquote>
<br>
</body>
</html>