<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>I think this may be a bit unclear from this post, but you're
proposing I think to make `Node`, `Shape` and `Shape3D` sealed.
For those unaware, you're not allowed to extend these classes
(despite being public). For example Node says in its
documentation:</p>
<p> * An application should not extend the Node class directly.
Doing so may lead to<br>
* an UnsupportedOperationException being thrown.</p>
<p>Currently this is enforced at runtime in NodeHelper.<br>
</p>
<p>--John<br>
</p>
<div class="moz-cite-prefix">On 01/02/2023 15:47, Thiago Milczarek
Sayão wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAAP_wu=stZe_HC4jgi=L1pN1nbKCKJtXNx-bB=q7A=Z0sSODPw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi,</div>
<div><br>
</div>
<div>NodeHelper.java has this:</div>
<div>
<pre><span style="color:rgb(116,157,237)">throw new </span><span style="color:rgb(222,188,126)">UnsupportedOperationException</span>(
<span style="color:rgb(126,196,130)">"Applications should not extend the "
</span><span style="color:rgb(126,196,130)"> </span>+ nodeType + <span style="color:rgb(126,196,130)">" class directly."</span>);</pre>
</div>
<div><br>
</div>
<div>I think it's replaceable with selead classes. Am I right?</div>
<div><br>
</div>
<div>The benefit will be compile time error instead of runtime.<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>-- Thiago.<br>
</div>
<div><br>
</div>
</div>
</blockquote>
</body>
</html>