Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse builder problem(does the internal eclipse builder fully comply to standards?)
Eclipse builder problem [message #506735] Sat, 09 January 2010 05:16 Go to next message
Eclipse UserFriend
Hi,

yesterday I ran into trouble with eclipse. While using the "internal java builder" the following code compiles an produces some output. Using "javac" via commandline the process fails with an assignment compatibility problem.

Is this a known problem? Or did I get something wrong?

enum test{A,B} 

class EnumTest{ 
    public void enumTest(Enum<?> enumValue){ 
        test b = (test) enumValue; 
//        test b = test.class.cast(enumValue); 
        System.out.println(b); 
    } 
} 

public class TestProject { 
    public static void main(String[] args) { 
        new EnumTest().enumTest(test.B); 
    } 
}
Re: Eclipse builder problem [message #506756 is a reply to message #506735] Sat, 09 January 2010 10:23 Go to previous messageGo to next message
Eclipse UserFriend
Le 2010-01-09 05:16, threadpool a écrit :
> enum test{A,B}
> class EnumTest{ public void enumTest(Enum<?> enumValue){ test b = (test)
> enumValue; // test b = test.class.cast(enumValue);
> System.out.println(b); } }
> public class TestProject { public static void main(String[] args) { new
> EnumTest().enumTest(test.B); } }
What version of Eclipse are you using?
Please open a bug report against JDT/Core and we will investigate.
--
Olivier
Re: Eclipse builder problem [message #506761 is a reply to message #506756] Sat, 09 January 2010 11:46 Go to previous message
Eclipse UserFriend
I'm using eclipse 3.5 - Galileo.
Previous Topic:Ant editor warning about missing AnnotationProcessorFactory class
Next Topic:Eclipse compile problem
Goto Forum:
  


Current Time: Thu Mar 27 13:35:08 EDT 2025

Powered by FUDForum. Page generated in 0.03303 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top