Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler Internal Error on Empty Binding #29

Closed
doug777 opened this issue Mar 16, 2018 · 0 comments
Closed

Compiler Internal Error on Empty Binding #29

doug777 opened this issue Mar 16, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@doug777
Copy link

doug777 commented Mar 16, 2018

The following incomplete code causes the error below when building for JS.

<svg:Text text="{}"/>

Internal error: java.lang.StringIndexOutOfBoundsException: String index out
of range: 0 java.lang.String.charAt(String.java:658)
org.apache.royale.compiler.internal.codegen.js.jx.LiteralEmitter.emit(LiteralEmitter.java:159)
org.apache.royale.compiler.internal.codegen.js.royale.JSRoyaleEmitter.emitLiteral(JSRoyaleEmitter.java:850)
org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.visitLiteral(ASBlockWalker.java:466)
org.apache.royale.compiler.internal.visitor.as.ASNodeSwitch.handle(ASNodeSwitch.java:373)
org.apache.royale.compiler.internal.visitor.as.ASNodeHandler.handle(ASNodeHandler.java:85)
org.apache.royale.compiler.internal.visitor.as.BeforeAfterStrategy.handle(BeforeAfterStrategy.java:110)
org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.walk(ASBlockWalker.java:157)
org.apache.royale.compiler.internal.codegen.as.ASEmitter.stringifyNode(ASEmitter.java:1574)
org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyaleEmitter.outputBindingInfoAsData(MXMLRoyaleEmitter.java:1244)
org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyaleEmitter.emitBindingData(MXMLRoyaleEmitter.java:1196)
org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyaleEmitter.emitDocument(MXMLRoyaleEmitter.java:637)
org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyaleBlockWalker.visitDocument(MXMLRoyaleBlockWalker.java:69)
org.apache.royale.compiler.internal.visitor.mxml.MXMLNodeSwitch.handle(MXMLNodeSwitch.java:84)
org.apache.royale.compiler.internal.codegen.mxml.MXMLBlockWalker.walk(MXMLBlockWalker.java:149)
org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyaleBlockWalker.visitFile(MXMLRoyaleBlockWalker.java:61)
org.apache.royale.compiler.internal.visitor.mxml.MXMLNodeSwitch.handle(MXMLNodeSwitch.java:90)
org.apache.royale.compiler.internal.codegen.mxml.MXMLBlockWalker.walk(MXMLBlockWalker.java:149)
org.apache.royale.compiler.internal.codegen.mxml.MXMLBlockWalker.visitCompilationUnit(MXMLBlockWalker.java:168)
org.apache.royale.compiler.internal.codegen.mxml.MXMLWriter.writeTo(MXMLWriter.java:71)
org.apache.royale.compiler.clients.MXMLJSCRoyale.compile(MXMLJSCRoyale.java:374)
org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.java:240)
org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoyale.java:197)
org.apache.royale.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:345)
org.apache.royale.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:281)
org.apache.royale.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:240)
org.apache.royale.compiler.clients.MXMLJSC.main(MXMLJSC.java:222)

@aharui aharui self-assigned this Mar 16, 2018
@aharui aharui closed this as completed in 8b0ee71 Mar 16, 2018
@carlosrovira carlosrovira added this to the v0.9.3 milestone Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants