[
https://issues.apache.org/jira/browse/FLEX-33837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pratyoosh Sharma updated FLEX-33837:
------------------------------------
Description:
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}
was:
It seems like FlexJS compiler 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}
> 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.1#6144)