You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Owen Thomas <ow...@gmail.com> on 2021/07/11 05:30:16 UTC
Losing instanceof variables when class renamed.
Hello.
Thought this might be of interest. When using NB 12.4 with Java SE 16 SDK,
I'm beginning to use the newly available enhancement to the instanceof
operator.
When I rename a class in which this operator is used, the renaming process
seems to remove the variable name that follows the instanceof operator. The
variable 'sig' is removed after the class is renamed to FrameSignal.
It might be of interest to some people here; there may even be a bug
already outstanding for this apparent problem. See the attached screenshot
of what happens to my code when I rename the class.
Owen.
Re: Losing instanceof variables when class renamed.
Posted by Owen Thomas <ow...@gmail.com>.
Goodo Jan. Thanks for letting me know. :)
On Tue, 13 Jul 2021 at 16:32, Jan Lahoda <la...@gmail.com> wrote:
> Thanks for the report, Owen. I am looking into this.
>
> Jan
>
> On Sun, Jul 11, 2021 at 7:30 AM Owen Thomas <ow...@gmail.com>
> wrote:
>
>> Hello.
>>
>> Thought this might be of interest. When using NB 12.4 with Java SE 16
>> SDK, I'm beginning to use the newly available enhancement to the instanceof
>> operator.
>>
>> When I rename a class in which this operator is used, the renaming
>> process seems to remove the variable name that follows the instanceof
>> operator. The variable 'sig' is removed after the class is renamed to
>> FrameSignal.
>>
>> It might be of interest to some people here; there may even be a bug
>> already outstanding for this apparent problem. See the attached screenshot
>> of what happens to my code when I rename the class.
>>
>> Owen.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: users-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
Re: Losing instanceof variables when class renamed.
Posted by Jan Lahoda <la...@gmail.com>.
Thanks for the report, Owen. I am looking into this.
Jan
On Sun, Jul 11, 2021 at 7:30 AM Owen Thomas <ow...@gmail.com>
wrote:
> Hello.
>
> Thought this might be of interest. When using NB 12.4 with Java SE 16 SDK,
> I'm beginning to use the newly available enhancement to the instanceof
> operator.
>
> When I rename a class in which this operator is used, the renaming process
> seems to remove the variable name that follows the instanceof operator. The
> variable 'sig' is removed after the class is renamed to FrameSignal.
>
> It might be of interest to some people here; there may even be a bug
> already outstanding for this apparent problem. See the attached screenshot
> of what happens to my code when I rename the class.
>
> Owen.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists