Community
Participate
Working Groups
Created attachment 207440 [details] patch
When Paul made the change for 362322 he had no way of knowing he needed to change CallStatementTemplate because CallStatementTemplate only had code for an Expression. In 362322 Paul said: I have updated the following classes to remove the extraneous checking for Enum and Expression annotion values: .... org.eclipse.edt.gen.javascripot.annotation.templates.XMLValueTemplate CallStatementTemplate is expecting an Expression which Paul removed XMLValueTemplate. My proposed change will use the code that Paul left in XMLValueTemplate. Since it is the exact same code for both, I re-factored it into EnumerationEntryTemplate.genRuntimeTypeName and am calling it from XMLValueTemplate and CallStatementTemplate. The attached patch is the proposed change.
Joe, thanks for putting this patch together on such short notice. Would it make sense to leave in the check for expression in ServicesCallStatementTemplate.java, and then remove that check after .7?
I applied the patch and was able to get a couple of external sample JSON services to work. Without the patch, neither service worked. Good find/fix!
Per Brian's comment I added the else if(Expression) and retested. I had removed this based on Paul's comment that it was not needed. Since the code already had an if(Expression) changing it to an else if(Expression) won't hurt.
verified