This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 23719 - fastjavac bug in "do while" statement
Summary: fastjavac bug in "do while" statement
Status: CLOSED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: -FFJ-
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Misha Bykov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-17 21:30 UTC by rlee
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
This is testcase for this bug (429 bytes, text/plain)
2002-05-18 07:38 UTC, genero
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rlee 2002-05-17 21:30:16 UTC
[FFJ CUSTBUG]

javac compiles the following 2 versions of the 
returnTest method without error. However, 
fastjavac generates the
             following error when attempting to 
compile the second version. 

             'return' without value from private 
boolean returnTest2()

                 private boolean returnTest(){
                     bo olean b = true;
                     wh ile(true){
                     &n bsp;   if(b){ 
                     &n bsp;       retu rn b;
                     &n bsp;   }else{ 
                     &n bsp;       b = true;
                     &n bsp;       cont inue;
                     &n bsp;   }
                     }< BR>     }
                 
                 private boolean returnTest2(){
                     bo olean b = true;
                     do {
                     &n bsp;   if(b){ 
                     &n bsp;       retu rn b;
                     &n bsp;   }else{ 
                     &n bsp;       b = true;
                     &n bsp;       cont inue;
                     &n bsp;   }
                     }w hile(true);
                 }

             It should also be noted that if the 
continue statement is removed. The method again 
compiles without error.
Comment 1 genero 2002-05-18 07:38:11 UTC
Created attachment 5839 [details]
This is testcase for this bug
Comment 2 genero 2002-05-18 07:40:02 UTC
This bug is reproducible on fastjavac build #532. 
Comment 3 Tomas Hurka 2002-06-25 17:39:13 UTC
I am sorry, but I this is not bug in NetBeans, so I am closing it. I have to improve our bug statistics. :-)
Comment 4 Quality Engineering 2003-07-01 13:11:50 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 5 Quality Engineering 2003-07-01 13:18:38 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 6 Quality Engineering 2007-09-20 12:21:12 UTC
Reorganization of java component