Apache OpenOffice (AOO) Bugzilla – Issue 96055
idlc: ambiguous && || sequence
Last modified: 2009-03-23 12:09:53 UTC
in idlc/source/astscope.cxx there is... if ( (NT_service == m_nodeType) && ((pDecl->getNodeType() == NT_interface_member) && (pDeclaration->getNodeType() == NT_interface)) || ((pDecl->getNodeType() == NT_service_member) && (pDeclaration->getNodeType() == NT_service))) taking the three bracketed terms this is effectively if ( X && Y || Z) and so binds as if ( (X && Y) || Z ) but looking at the names of the terms it looks a little ambiguous. Might the intent actually be... if ( X && (Y || Z) ) i.e. if ( (NT_service == m_nodeType) && ( ((pDecl->getNodeType() == NT_interface_member) && (pDeclaration->getNodeType() == NT_interface)) || ((pDecl->getNodeType() == NT_service_member) && (pDeclaration->getNodeType() == NT_service)) ) ) or is the intent truly... if ( ( (NT_service == m_nodeType) && ((pDecl->getNodeType() == NT_interface_member) && (pDeclaration->getNodeType() == NT_interface)) ) || ((pDecl->getNodeType() == NT_service_member) && (pDeclaration->getNodeType() == NT_service)) )
Created attachment 57839 [details] my suspicion is that is should be like so, but maybe not, depends on the intent
Juergen, please have a look ...
accepted
fixed on cws jsc312
jsc -> cn: please verify on cws jsc312
verified in cws
closing