Bug 39495

Summary: compiler Not Compatible to JLS Specification!!!
Product: [Eclipse Project] JDT Reporter: lalit <lalit.bhatia>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0.2   
Target Milestone: 2.1.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description lalit CLA 2003-07-01 02:29:02 EDT
According to jls the following code should compile..
 
public class Test{
     static{
         x=10;
       }

     {
        a=5;
    }
    static int x;
    int a,b;
 }//end of class

(Reference jls2draft.pdf page 92-93)

but couldnt get it compiled in WSAD5.0!!!

Does that mean the compiler(jitc) in WSAD5.0 is not compatible to jls!!!

Thnx and Rgds,
Lalit Bhatia
Comment 1 Philipe Mulet CLA 2003-07-01 06:22:05 EDT
Correcting title. The VM has nothing to do with the bytecode compiler.
Comment 2 Philipe Mulet CLA 2003-07-01 06:25:00 EDT
Cannot reproduce, it compiles fine with latest 3.0 integration build.
Which build are you using, and which error are you obtaining ?

Comment 3 Philipe Mulet CLA 2003-07-01 06:40:54 EDT
Actually, WSAD 5.0 is Eclipse 2.0.2. This issue got addressed since then.
Comment 4 David Audel CLA 2003-07-01 12:02:03 EDT
It compile fine with 2.1.1 RC4.
Comment 5 Philipe Mulet CLA 2003-07-03 07:20:30 EDT
Lalit,

This problem will be gone in WSAD6.0. Is it ok to close ?
Comment 6 Philipe Mulet CLA 2003-07-03 18:14:33 EDT
Waiting for information, please reopen.
Comment 7 lalit CLA 2003-07-04 05:28:51 EDT
I m convinced with the Philippe Mulet that this ll be resolved in wsad6.0
Comment 8 Philipe Mulet CLA 2003-07-04 06:21:28 EDT
Closing
Comment 9 Philipe Mulet CLA 2003-07-04 06:22:02 EDT
Closing, problem got addressed in subsequent version.