-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
bugSomething isn't workingSomething isn't working
Description
In the following code, the "return" statement is flagged as an error:
A return statement must be contained inside a function body. cfls
Maybe the syntax checker should ignore the code inside java{} and <cfjava /> blocks?
Thanks!
<cfscript>
instance = java {
import java.math.BigDecimal;
import com.braintreegateway.*;
public class Braintree {
public static BraintreeGateway getGateway() {
BraintreeGateway gateway = new BraintreeGateway(
Environment.SANDBOX,
"xxx",
"xxx",
"xxx"
);
return gateway;
}
}
}
</cfscript>
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
