-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # loader/build.xml # loader/pom.xml # test/tickets/LDEV4899.cfc
- Loading branch information
Showing
7 changed files
with
78 additions
and
17 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
core/src/main/java/lucee/transformer/bytecode/expression/AsExpression.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package lucee.transformer.bytecode.expression; | ||
|
||
import lucee.transformer.bytecode.Statement; | ||
|
||
public interface AsExpression { | ||
public Statement getStatement(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,52 @@ | ||
component extends="org.lucee.cfml.test.LuceeTestCase" labels="syntax" skip=true{ | ||
|
||
function run( testResults, testBox ) { | ||
describe("Testcase for LDEV-4899 - compiler crash", function() { | ||
it( title="lucee.runtime.type.Closure not found by org.objectweb.asm", body=function( currentSpec ) { | ||
expect( function(){ | ||
//var prop = args.prop ?: function(){ return "" }; | ||
}).notToThrow(); | ||
}); | ||
}); | ||
} | ||
} | ||
component extends = "org.lucee.cfml.test.LuceeTestCase" labels="struct" { | ||
|
||
function run( testResults, testBox ) { | ||
describe( "Testcase for LDEV-4899", function() { | ||
it( title="testing elvis with default closure", skip="true", body=function( currentSpec ) { | ||
var prop = a.b.c ?: function(){ return "" }; | ||
}); | ||
it( title="testing elvis with default lambda", skip="true", body=function( currentSpec ) { | ||
var prop = a.b.c ?: () => "susi"; | ||
}); | ||
|
||
it( title="testing elvis with default array", skip="true", body=function( currentSpec ) { | ||
var prop = a.b.c ?: [1,2,3]; | ||
}); | ||
|
||
it( title="testing elvis with default struct", skip="true", body=function( currentSpec ) { | ||
var prop = a.b.c ?: {a:1}; | ||
}); | ||
|
||
it( title="testing elvis with default component", skip="true", body=function( currentSpec ) { | ||
var prop = a.b.c ?: new Query(); | ||
}); | ||
|
||
it( title="testing elvis with default inline component", skip="true", body=function( currentSpec ) { | ||
var prop = a.b.c ?: new component {}; | ||
}); | ||
|
||
|
||
it( title="testing elvis with default array of closure", skip="true", body=function( currentSpec ) { | ||
var prop = a.b.c ?: [function(){ return "" }]; | ||
}); | ||
it( title="testing elvis with default array of lambda", skip="true", body=function( currentSpec ) { | ||
var prop = a.b.c ?: [() => "susi"]; | ||
}); | ||
|
||
it( title="testing elvis with default array of struct", skip="true", body=function( currentSpec ) { | ||
var prop = a.b.c ?: [{a:1}]; | ||
}); | ||
|
||
it( title="testing elvis with default array of component", skip="true", body=function( currentSpec ) { | ||
var prop = a.b.c ?: [new Query()]; | ||
}); | ||
|
||
it( title="testing elvis with default array of inline component", skip="true", body=function( currentSpec ) { | ||
var prop = a.b.c ?: [new component {}]; | ||
}); | ||
|
||
|
||
|
||
}); | ||
} | ||
} |