[ 
https://issues.apache.org/jira/browse/FLINK-5005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15962087#comment-15962087
 ] 

ASF GitHub Bot commented on FLINK-5005:
---------------------------------------

Github user DieBauer commented on the issue:

    https://github.com/apache/flink/pull/3703
  
    I'm running into an issue with asm in for example the flink-scala module, 
when compiling with 2.12.
    
    ```
    java.io.IOException: Class not found
        at org.objectweb.asm.ClassReader.a(Unknown Source)
        at org.objectweb.asm.ClassReader.<init>(Unknown Source)
        at 
org.apache.flink.api.scala.ClosureCleaner$.getClassReader(ClosureCleaner.scala:44)
        at 
org.apache.flink.api.scala.ClosureCleaner$.getInnerClasses(ClosureCleaner.scala:92)
        at 
org.apache.flink.api.scala.ClosureCleaner$.clean(ClosureCleaner.scala:115)
        at org.apache.flink.api.scala.DataSet.clean(DataSet.scala:125)
        at org.apache.flink.api.scala.DataSet$$anon$12.<init>(DataSet.scala:910)
    ```
    since the closurecleaner was initially copied from spark, I've looked there 
and found an issues (https://github.com/apache/spark/pull/9512) regarding asm5 
and java8. 
    However, flink is already using asm5 in the closurecleaner. Their 
dependency is         
    
    ```
    <groupId>org.apache.xbean</groupId>
    <artifactId>xbean-asm5-shaded</artifactId>
    ```
    and ours is from org.ow2.asm, asm. There are things going on in the shaded 
plugin in the parent pom with regard to relocating dependencies of asm, but I'm 
not sure how that all works out. 
    
    So for now, I'm a bit puzzled why we get this error. 
    
    @greghogan you're right, the profile jdk8 is only enabling the module with 
examples in java8. But since they are also compiled in the scala-2.11 case, I 
thought we want to have them? We can drop it of course. 



> Publish Scala 2.12 artifacts
> ----------------------------
>
>                 Key: FLINK-5005
>                 URL: https://issues.apache.org/jira/browse/FLINK-5005
>             Project: Flink
>          Issue Type: Improvement
>          Components: Scala API
>            Reporter: Andrew Roberts
>
> Scala 2.12 was [released|http://www.scala-lang.org/news/2.12.0] today, and 
> offers many compile-time and runtime speed improvements. It would be great to 
> get artifacts up on maven central to allow Flink users to migrate to Scala 
> 2.12.0.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to