You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Piotr Zarzycki (JIRA)" <ji...@apache.org> on 2017/03/14 20:24:41 UTC

[jira] [Commented] (FLEX-33837) Compiler assumes that there will be a file for each goog.require

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

Piotr Zarzycki commented on FLEX-33837:
---------------------------------------

[~aharui],

This bug is pretty old - Do you think it's  still occur ?

Piotr

> Compiler assumes that there will be a file for each goog.require
> ----------------------------------------------------------------
>
>                 Key: FLEX-33837
>                 URL: https://issues.apache.org/jira/browse/FLEX-33837
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FlexJS
>         Environment: Development 
>            Reporter: Pratyoosh Sharma
>
> It seems like FlexJS compiler assumes that there will be a file for each goog.require dependency, while closure allows multiple classes to be declared in the same .js file.
> Some of the closure internal classes use the same construct & its impossible to compile them currently using FlexJS
> E.g. goog.events.BrowserEvent.MouseButton is defined in goog/events/browserevent.js & referenced by goog.fx.dragger compiling this with FlexJS results in this error
> {code}
> java.io.FileNotFoundException: 
> 	at java.io.FileInputStream.open(Native Method)
> 	at java.io.FileInputStream.<init>(FileInputStream.java:120)
> 	at java.io.FileInputStream.<init>(FileInputStream.java:79)
> 	at org.apache.flex.compiler.internal.graph.GoogDepsWriter.getDirectDependencies(GoogDepsWriter.java:343)
> 	at org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWriter.java:111)
> {code}



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