Bug 43317 - incorrect compilation error in IProblem
Summary: incorrect compilation error in IProblem
Status: CLOSED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M7   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2003-09-18 15:24 EDT by Kelvin CLA
Modified: 2009-08-30 02:09 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 Kelvin CLA 2003-09-18 15:24:31 EDT
// file 1
public interface I {
   public static final int ONE = 1;

}

// file 2
public class A {
   public void method() {
        short[] as = {(short)1};
        switch(as[0]) {         
           case I.ONE : break;
      }
   }
}

after you generate a CompilationUnit of class A, in the IProblem, one error 
said : Type mismatch : cannot convert from int to short
Comment 1 Philipe Mulet CLA 2003-09-19 05:32:57 EDT
Works fine for me in 3.0 world.
Comment 2 Philipe Mulet CLA 2003-09-19 05:41:28 EDT
Cannot reproduce either in 2.1.2.

Please provide reproduceable steps and reopen.
Comment 3 Philipe Mulet CLA 2004-01-15 19:18:49 EST
Closing as never reproduced in a long time.
Comment 4 Denis Roy CLA 2009-08-30 02:09:43 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.