[68cat][editor]text gets mutilated when "surround with try...catch"

View: New views
4 Messages — Rating Filter:   Alert me  

[68cat][editor]text gets mutilated when "surround with try...catch"

by Alied Pérez Martínez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi:
To make the story short:
before:
<code>
BranchGroup model = fullModels.get(getModelIndex());
</code>

<code>
BranchGroup model = null;
try {
   nchGroup model = fullModels.get(getModelIndex());
} catch (Exception e) {
}
</code>

this hapens when I select the whole line. If I select only the code
(without the \n), works fine

Re: [68cat][editor]text gets mutilated when "surround with try...catch" (errata)

by Alied Pérez Martínez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Actually, the text is not "mutilated", it shoul not keep the type at
all. also, I miss the after, before the second code block, but I guess
you got the idea.

El 15/10/2009 18:51, Alied Pérez Martínez escribió:

> Hi:
> To make the story short:
> before:
> <code>
> BranchGroup model = fullModels.get(getModelIndex());
> </code>
>
> <code>
> BranchGroup model = null;
> try {
> nchGroup model = fullModels.get(getModelIndex());
> } catch (Exception e) {
> }
> </code>
>
> this hapens when I select the whole line. If I select only the code
> (without the \n), works fine


Re: [68cat][editor]text gets mutilated when "surround with try...catch" (errata)

by Jiri Kovalsky :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alied,

   could you please report this if you can reliably reproduce this behavior? I haven't found it in the IssueZilla and it works fine for me.

Thanks for your cooperation,
-Jirka

Alied Pérez Martínez wrote:

> Actually, the text is not "mutilated", it shoul not keep the type at
> all. also, I miss the after, before the second code block, but I guess
> you got the idea.
>
> El 15/10/2009 18:51, Alied Pérez Martínez escribió:
>> Hi:
>> To make the story short:
>> before:
>> <code>
>> BranchGroup model = fullModels.get(getModelIndex());
>> </code>
>>
>> <code>
>> BranchGroup model = null;
>> try {
>> nchGroup model = fullModels.get(getModelIndex());
>> } catch (Exception e) {
>> }
>> </code>
>>
>> this hapens when I select the whole line. If I select only the code
>> (without the \n), works fine

Re: [68cat][editor]text gets mutilated when "surround with try...catch" (errata)

by Alied Pérez Martínez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

done. I waited to check the last build. reported in [1].
Product Version: NetBeans IDE Dev (Build nbms-and-javadoc-4128-on-091020)
Java: 1.7.0-ea; Java HotSpot(TM) Client VM 16.0-b06
System: Windows Vista version 6.0 running on x86; Cp1252; es_ES (nb)

[1]http://www.netbeans.org/issues/show_bug.cgi?id=175181

El 20/10/2009 12:53, Jiri Kovalsky escribió:
> Alied,
>
> could you please report this if you can reliably reproduce this
> behavior? I haven't found it in the IssueZilla and it works fine for me.
>
> Thanks for your cooperation,
> -Jirka
>
> Alied Pérez Martínez wrote: