You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Hai Zhou (JIRA)" <ji...@apache.org> on 2017/08/21 12:02:00 UTC
[jira] [Comment Edited] (FLINK-7438) Some classes are eclipsed by
classes in package scala
[ https://issues.apache.org/jira/browse/FLINK-7438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16135076#comment-16135076 ]
Hai Zhou edited comment on FLINK-7438 at 8/21/17 12:01 PM:
-----------------------------------------------------------
I think the reason for this problem is [https://issues.scala-lang.org/browse/SI-8808].
this problem:
{panel:title=org.apache.flink.streaming.api.scala.WindowedStream.scala}
package org.apache.flink.streaming.api.scala
import org.apache.flink.util.OutputTag // permanently hidden warning here
class WindowedStream {
....
@PublicEvolving
def sideOutputLateData(outputTag: OutputTag[T]): WindowedStream[T, K, W] = {
// this OutputTag class is org.apache.flink.streaming.api.scala.OutputTag.scala
javaStream.sideOutputLateData(outputTag)
this
}
......
}
{panel}
{panel:title=org.apache.flink.streaming.api.scala.OutputTag.scala}
package org.apache.flink.streaming.api.scala
import org.apache.flink.util.{OutputTag => JOutputTag}
class OutputTag[T: TypeInformation](id: String) extends JOutputTag[T](id, implicitly[TypeInformation[T]])
object OutputTag {
def apply[T: TypeInformation](id: String): OutputTag[T] = new OutputTag(id)
}
{panel}
Actually used "org.apache.flink.streaming.api.scala.OutputTag.scala" in WindowedStream class.
So we remove "import org.apache.flink.util.OutputTag" in WindowedStream class, the warnning will disappear.
was (Author: yew1eb):
I think the reason for this problem is [https://issues.scala-lang.org/browse/SI-8808].
this problem:
{panel:title=org.apache.flink.streaming.api.scala.WindowedStream.scala}
package org.apache.flink.streaming.api.scala
import org.apache.flink.util.OutputTag // permanently hidden warning here
class WindowedStream {
....
@PublicEvolving
def sideOutputLateData(outputTag: OutputTag[T]): WindowedStream[T, K, W] = {
// this OutputTag class is org.apache.flink.streaming.api.scala.OutputTag.scala
javaStream.sideOutputLateData(outputTag)
this
}
......
}
{panel}
{panel:title=org.apache.flink.streaming.api.scala.OutputTag.scala}
package org.apache.flink.streaming.api.scala
import org.apache.flink.util.{OutputTag => JOutputTag}
class OutputTag[T: TypeInformation](id: String) extends JOutputTag[T](id, implicitly[TypeInformation[T]])
object OutputTag {
def apply[T: TypeInformation](id: String): OutputTag[T] = new OutputTag(id)
}
{panel}
> Some classes are eclipsed by classes in package scala
> -----------------------------------------------------
>
> Key: FLINK-7438
> URL: https://issues.apache.org/jira/browse/FLINK-7438
> Project: Flink
> Issue Type: Bug
> Components: Build System, DataStream API
> Reporter: Ted Yu
> Priority: Minor
>
> Noticed the following during compilation:
> {code}
> [WARNING] /flink/flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala/WindowedStream.scala:33: warning: imported `OutputTag' is permanently hidden by definition of object OutputTag in package scala
> [WARNING] import org.apache.flink.util.{Collector, OutputTag}
> [WARNING] ^
> [WARNING] /flink/flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala/WindowedStream.scala:33: warning: imported `OutputTag' is permanently hidden by definition of class OutputTag in package scala
> [WARNING] import org.apache.flink.util.{Collector, OutputTag}
> {code}
> We should avoid the warning e.r.t. OutputTag.
> There may be other occurrences of similar warning.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)