[
https://issues.apache.org/jira/browse/FLINK-1799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14487263#comment-14487263
]
ASF GitHub Bot commented on FLINK-1799:
---------------------------------------
GitHub user aljoscha opened a pull request:
https://github.com/apache/flink/pull/582
[FLINK-1799][scala] Fix handling of generic arrays
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/aljoscha/flink fix-scala-generic-arrays
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/582.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #582
----
commit ac1b4111704933169f46515caffbe2607d263677
Author: Aljoscha Krettek <[email protected]>
Date: 2015-04-09T12:05:08Z
[FLINK-1799][scala] Fix handling of generic arrays
----
> Scala API does not support generic arrays
> -----------------------------------------
>
> Key: FLINK-1799
> URL: https://issues.apache.org/jira/browse/FLINK-1799
> Project: Flink
> Issue Type: Bug
> Reporter: Till Rohrmann
> Assignee: Aljoscha Krettek
>
> The Scala API does not support generic arrays at the moment. It throws a
> rather unhelpful error message ```InvalidTypesException: The given type is
> not a valid object array```.
> Code to reproduce the problem is given below:
> {code}
> def main(args: Array[String]) {
> foobar[Double]
> }
> def foobar[T: ClassTag: TypeInformation]: DataSet[Block[T]] = {
> val tpe = createTypeInformation[Array[T]]
> null
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)