Bug 39495 - compiler Not Compatible to JLS Specification!!!
Summary: compiler Not Compatible to JLS Specification!!!
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.1.1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-01 02:29 EDT by lalit CLA
Modified: 2003-07-04 06:22 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.