Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Configure Eclipse to compile with javac instead of ECJ?
Configure Eclipse to compile with javac instead of ECJ? [message #1413309] Thu, 28 August 2014 04:54 Go to next message
Eclipse UserFriend
I have encountered some java8-related code in a maven project that compiles with the javac compiler, but gives compilation-errors in Eclipse (ECJ compiler differ from javac, I suppose).

I'm importing it in Eclipse-Luna with: Import => Maven => Existsing Maven Project

As a quick fix, is there a way to make Eclipse use javac in a maven-project (thus disabling the ECJ-compiler)?
Re: Configure Eclipse to compile with javac instead of ECJ? [message #1413397 is a reply to message #1413309] Thu, 28 August 2014 08:35 Go to previous messageGo to next message
Eclipse UserFriend
You can always deselect "Project > Build Automatically", but the editor will of course still show the error (there's no way to let the editor use javac).

OTOH, it would be great if you could extract a reproducing example and file a bug so we can analyse whether indeed this is a bug in ecj, or if javac accepts illegal source code.

S.
Re: Configure Eclipse to compile with javac instead of ECJ? [message #1413513 is a reply to message #1413397] Thu, 28 August 2014 14:33 Go to previous message
Eclipse UserFriend
I also posted the question here with a demo-example of the compiler-problem:

stackoverflow.com/questions/25544352/configure-eclipse-to-compile-with-javac-instead-of-ecj

Got answer it's already known bug, and has been fixed, but official release still pending...

[Updated on: Thu, 28 August 2014 14:34] by Moderator

Previous Topic:How does eclipse add blocks for control statement
Next Topic:Refactoring idea for org.eclipse.jdt.internal.compiler.ast.BinaryExpression
Goto Forum:
  


Current Time: Sun Aug 31 05:21:48 EDT 2025

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

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

Back to the top