Bug 43317

Summary: incorrect compilation error in IProblem
Product: [Eclipse Project] JDT Reporter: Kelvin <kelvin>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 Keywords: needinfo
Version: 2.1.1   
Target Milestone: 3.0 M7   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.