History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-4665
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: P0 P0
Assignee: Unassigned
Reporter: Elliot Winard
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

Compilation of some binary libraries fails

Created: 06/Sep/07 08:05 AM   Updated: 24/Oct/07 11:32 AM
Component/s: Compiler
Affects Version/s: 4.0.5WaffleCone
Fix Version/s: 4.0.5WaffleCone

Time Tracking:
Not Specified

File Attachments: 1. File library.lzx (9 kb)


Severity: Critical
Fixed in Change#: 6,385
Runtime: N/A
Fix in hand: False


 Description  « Hide
STEPS:
1. compile a binary lib
2. look at the output

EXPECTED:
compilation succeeds.

RESULTS: compilation fails
$ lzc --mcache on --runtime=swf8 -c library.lzx
Compiling: library.lzx to library.gz
No prec for ASTSuperCallExpression in super.$styles()
org.openlaszlo.sc.CompilerException
        at org.openlaszlo.sc.Compiler$ParseTreePrinter.maybeAddParens(Compiler.java:1294)
        at org.openlaszlo.sc.Compiler$ParseTreePrinter.visitAndOrExpressionSequence(Compiler.java:1305)
        at org.openlaszlo.sc.Compiler$ParseTreePrinter.visit(Compiler.java:989)
        at org.openlaszlo.sc.Compiler$ParseTreePrinter.visit(Compiler.java:864)
        at org.openlaszlo.sc.Compiler$ParseTreePrinter.visit(Compiler.java:864)
        at org.openlaszlo.sc.Compiler$ParseTreePrinter.visit(Compiler.java:864)
        at org.openlaszlo.sc.Compiler$ParseTreePrinter.visit(Compiler.java:864)
        at org.openlaszlo.sc.Compiler$ParseTreePrinter.visit(Compiler.java:864)
        at org.openlaszlo.sc.Compiler$ParseTreePrinter.visit(Compiler.java:864)
        at org.openlaszlo.sc.Compiler$ParseTreePrinter.visit(Compiler.java:864)
        at org.openlaszlo.sc.Compiler$ParseTreePrinter.visit(Compiler.java:864)
        at org.openlaszlo.sc.Compiler$ParseTreePrinter.visit(Compiler.java:864)
        at org.openlaszlo.sc.Compiler$ParseTreePrinter.visit(Compiler.java:864)
        at org.openlaszlo.sc.Compiler$ParseTreePrinter.visit(Compiler.java:864)
        at org.openlaszlo.sc.Compiler$ParseTreePrinter.visit(Compiler.java:864)
        at org.openlaszlo.sc.Compiler$ParseTreePrinter.visit(Compiler.java:864)
        at org.openlaszlo.sc.Compiler$ParseTreePrinter.visit(Compiler.java:864)
        at org.openlaszlo.sc.Compiler$ParseTreePrinter.visit(Compiler.java:864)
        at org.openlaszlo.sc.Compiler$ParseTreePrinter.print(Compiler.java:820)
        at org.openlaszlo.compiler.LibraryWriter.exportScript(LibraryWriter.java:146)
        at org.openlaszlo.compiler.LibraryWriter.close(LibraryWriter.java:209)
        at org.openlaszlo.compiler.Compiler.compile(Compiler.java:448)
        at org.openlaszlo.compiler.Compiler.compile(Compiler.java:173)
        at org.openlaszlo.compiler.Main.compile(Main.java:257)
        at org.openlaszlo.compiler.Main.lzc(Main.java:222)
        at org.openlaszlo.compiler.Main.main(Main.java:80)


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Elliot Winard - 06/Sep/07 09:03 AM
working on a smaller testcase right now

Elliot Winard - 06/Sep/07 09:07 AM
compiler emits error with attached library

P T Withington - 06/Sep/07 11:59 AM
r6385 | ptw | 2007-09-06 14:57:54 -0400 (Thu, 06 Sep 2007) | 19 lines
Changed paths:
   M /openlaszlo/branches/wafflecone/WEB-INF/lps/server/src/org/openlaszlo/sc/Compiler.java
   M /openlaszlo/branches/wafflecone/WEB-INF/lps/server/src/org/openlaszlo/sc/JavascriptCompressor.java

Change 20070906-ptw-D by ptw@dueling-banjos.local on 2007-09-06 14:47:23 EDT
    in /Users/ptw/OpenLaszlo/wafflecone
    for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone

Summary: Fix lossage in binary compressor

Bugs Fixed:
LPP-4665 'Compilation of some binary libraries fails'

Technical Reviewer: hminsky (pending)
QA Reviewer: ewinard (pending)

Details:
    

Tests:
    Test case from bug now compiles


Mamye Kratt - 24/Oct/07 11:32 AM
(trunk4 local build - r5967)
Fixed, successfully compiled library.