[ 
https://issues.apache.org/jira/browse/CAMEL-12725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16575895#comment-16575895
 ] 

ASF GitHub Bot commented on CAMEL-12725:
----------------------------------------

zregvart closed pull request #2464: CAMEL-12725: [ERROR] 
/sobject-pojo-optional.vm
URL: https://github.com/apache/camel/pull/2464
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-pojo-optional.vm
 
b/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-pojo-optional.vm
index 3caea042b82..55d9ce16255 100644
--- 
a/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-pojo-optional.vm
+++ 
b/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-pojo-optional.vm
@@ -61,7 +61,7 @@ import 
com.fasterxml.jackson.databind.annotation.JsonSerialize;
 public class ${desc.Name}Optional extends AbstractSObjectBase {
 
 #foreach ( $field in $desc.Fields )
-#set ( ($fieldType = $utility.getFieldType($desc, $field)) && ($fieldType) )
+#set ( $fieldType = $utility.getFieldType($desc, $field) )
 #if ( $utility.notBaseField($field.Name) )
 #set ( $fieldName = $field.Name )
 #set ( $isMultiSelectPicklist = $utility.isMultiSelectPicklist($field) )


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> [ERROR] /sobject-pojo-optional.vm: Encountered "(" at line 64, column 8.
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-12725
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12725
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-salesforce
>    Affects Versions: 2.21.0, 2.21.1, 2.21.2, 2.22.0
>            Reporter: Tinus Aamand Norstved
>            Priority: Trivial
>
> When using "optionals" in the camel-salesforce-maven-plugin it will throw an 
> error like the following:
> {{[INFO] Generating Java Classes...}}
> {{[ERROR] /sobject-pojo-optional.vm: Encountered "(" at line 64, column 8.}}
> {{Was expecting one of:}}
> {{ <WHITESPACE> ...}}
> {{ <NEWLINE> ...}}
> {{ <IDENTIFIER> ...}}
> {{ "{" ...}}
> {{[ERROR] ResourceManager: parse exception: Encountered "(" at 
> /sobject-pojo-optional.vm[line 64, column 8]}}
> {{Was expecting one of:}}
> {{ <WHITESPACE> ...}}
> {{ <NEWLINE> ...}}
> {{ <IDENTIFIER> ...}}
> {{ "{" ...}}
>  
> This is caused by a change in 
> [https://github.com/apache/camel/commit/2a4038c66ddc86d081e96a69eb9200f9ff498fb4#diff-ecf95a5795fc049a5d3c45ffcaf5ef00]
>  which sets the following line:
> #set ( ($fieldType = $utility.getFieldType($desc, $field)) && ($fieldType) )
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to