<div dir="ltr">Hi Jan, thank you very much. I`ll look into the issue later today</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 26, 2024 at 4:43 PM Jan Lahoda <<a href="mailto:jan.lahoda@oracle.com">jan.lahoda@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
<p>Hi Olexandr,</p>
<p><br>
</p>
<p>Thanks for the report. I've filled:<br>
<a href="https://bugs.openjdk.org/browse/JDK-8338981" target="_blank">https://bugs.openjdk.org/browse/JDK-8338981</a></p>
<p><br>
</p>
<p>Jan</p>
<p><br>
</p>
<div>On 26. 08. 24 14:28, Olexandr Rotan
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hello. Recently, I have started a new project to
explore Babylon code reflection API (LInq), and thought that
using sealed classes to represent operand type would be really
suitable (function calls, column refs etc.). However, I want to
only expose one interface/abstract class for each of those
types, while actual implementations are private classes inside
sealed classes. However, when I tried to compile something like
this (simplified for brevity):
<div><br>
</div>
<div>
<pre style="color:rgb(188,190,196);font-family:"JetBrains Mono",monospace"><span style="color:rgb(207,142,109)">sealed class </span>Tmp <span style="color:rgb(207,142,109)">permits </span>Tmp.A {
<span style="color:rgb(207,142,109)">private static final class </span>A <span style="color:rgb(207,142,109)">extends </span>Tmp {
}
}</pre>
<pre style="color:rgb(188,190,196);font-family:"JetBrains Mono",monospace"></pre>
<pre><span style="background-color:rgb(243,243,243)"><font color="#000000" face="arial, sans-serif">I got following error:</font></span></pre>
<pre>error: A has private access in Tmp</pre>
<pre></pre>
<pre><font face="arial, sans-serif">Is this behaviour expected or not?
(I would assume second since intellij code analysis didn't mark this as error)
If it's later, I would ask some JDK member to file a bug report (I noticed that they
are processed faster then non-member requests), and I will try to fix this. If it`s
premier, then what is the motivation behind this?</font></pre>
<pre><span style="background-color:rgb(243,243,243)">
</span></pre>
</div>
</div>
</blockquote>
</div>
</blockquote></div>