Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.2
Description
This seems related to GROOVY-6751.
This file:
import javafx.collections.FXCollections import groovy.transform.CompileStatic @CompileStatic class DupMethod { javafx.collections.ObservableList<String> tags = FXCollections.observableArrayList("first") void foo() { tags.addAll("foo") } }
gives the compilation error:
$ groovyc dupmethod.groovy
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
dupmethod.groovy: 11: [Static type checking] - Reference to method is ambiguous. Cannot choose between [boolean java.util.Collection <T>#addAll(T[]), boolean javafx.collections.ObservableList <E extends java.lang.Object>#addAll(E[])]
@ line 11, column 5.
tags.addAll("foo")
^
1 error
I don't get this error when compiling with Groovy version 2.2.2.
Attachments
Issue Links
- relates to
-
GROOVY-8788 Inconsistency in extension method selection with @CompileStatic
- Closed