You need to sign in to do that
Don't have an account?
Marc D Behr
Eclipse false syntax errors
I am using Eclipse Kepler Service Release 2 Build id: 20140224-0627 with Force.com IDE 31.0.0.201406301722 com.salesforce.ide.feature.feature.group salesforce.com and it keeps telling me that I have a syntax error when I create a controller extension.
Here is a segment of the code:
The IDE gives me an error on the line "myCase = (Case)caseCtrl.getRecord();" that reads:
Syntax(error = UnexpectedSyntaxError(loc = RealLoc(startIndex = 110, endIndex = 118, line = 6, column = 24), message = missing SEMICOLON at 'caseCtrl'))
If I copy and paste the exactly same code directly into SalesForce, it saves and runs fine. I think there is a bug in the syntax engine... the error message makes no sense since there is a semicolon at the end of the line.... thoughts?
Here is a segment of the code:
public with sharing class CaseExtensions { private Case myCase; public CaseExtensions(ApexPages.StandardController caseCtrl ) { myCase = (Case)caseCtrl.getRecord(); } }
The IDE gives me an error on the line "myCase = (Case)caseCtrl.getRecord();" that reads:
Syntax(error = UnexpectedSyntaxError(loc = RealLoc(startIndex = 110, endIndex = 118, line = 6, column = 24), message = missing SEMICOLON at 'caseCtrl'))
If I copy and paste the exactly same code directly into SalesForce, it saves and runs fine. I think there is a bug in the syntax engine... the error message makes no sense since there is a semicolon at the end of the line.... thoughts?
Jen Bennett
I was having the same issue with our CaseExtension class so I created a question out on the stack exchange and got an answer: http://salesforce.stackexchange.com/questions/45171/syntax-errors-in-eclipse/45183#45183