-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiler error when compiling against JRE 8 #188
Comments
I've changed the method but don't have time to fix the build change too, unfortunately. |
I found another one. To fix, just add an import in one class. (I could have organized imports but then the patch wouldn't be as trivial as it looks now) diff --git a/base/org.codehaus.groovy20/src/org/codehaus/groovy/vmplugin/v5/Java5.java b/base/org.codehaus.groovy20/src/org/codehaus/groovy/vmplugin/v5/Java5.java import org.codehaus.groovy.GroovyBugError; |
Signed-off-by: Felix Dorner <[email protected]>
When using Java 8 to compile groovy-eclipse I get:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.25.0:compile (default-compile) on project org.codehaus.groovy.eclipse.codeassist.completion: Compilation failure: Compilation failure:
[ERROR] C:\Users\felix\git\groovy-eclipse\ide\org.codehaus.groovy.eclipse.codeassist.completion\src\org\codehaus\groovy\eclipse\codeassist\processors\CharArraySequence.java:[35]
[ERROR] char[] chars() {
[ERROR] ^^^^^^
[ERROR] The return type is incompatible with CharSequence.chars()
[ERROR] 1 problem (1 error)
[ERROR] -> [Help 1]
CharSequence.chars() is a new method that was added in Java 8 and it collides with this implementation.
This also makes me wonder: The "official" build should use a JRE 8 to compile groovy from e46 on, since Eclipse Neon requires that so these errors are detected.
The text was updated successfully, but these errors were encountered: