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

Summary: fastjavac bug in "do while" statement
Product: java Reporter: rlee <rlee>
Component: UnsupportedAssignee: Misha Bykov <mbykov>
Status: CLOSED WONTFIX    
Severity: blocker    
Priority: P3    
Version: -FFJ-   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:
Attachments: This is testcase for 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