🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #528

Bug in Java formatter

#528
From: Carsten Hammer
Date: Sat, 18 Jun 2005 10:57
37 lines
1874 bytes
Hi,
JBuilder 2005 "formats" this sequence:

if(true)
            try
            {
                i++;
            }
            finally
            {
                System.out.println(i);
            }

like that


if (true) {
       try {
         i++;
       }
     }
     finally {
       System.out.println(i);
     }

if I choose "format all". This is obviously broken code.

And please dont care about if this code can make sense. Of course I 
experienced this problem with some more sensible but somewhat lengthy 
code that has not been written by me. (JB 11.0.320.0 Update 4)

As my software warranty contract ended I dont have the right to get bugs 
fixed any longer and my access to QC does not work it seems.

Can anybody confirm that this bug is still in the newest available JBuilder?
Best regards,
Carsten
Technical Details
Message-ID: <42b3fe05@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!pd7cy2so!pd7cy1no!shaw.ca!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,36d250948870920c,start
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 18 Jun 2005 12:57:12 +0200
From: Carsten Hammer <carsten.hammer@t-online.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language
Subject: Bug in Java formatter
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 84.131.96.227
Message-ID: <42b3fe05@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1119092229 84.131.96.227 (18 Jun 2005 03:57:09 -0700)
Lines: 37
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!pd7cy2so!pd7cy1no!shaw.ca!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail