Community
Participate
Working Groups
Build Identifier: LR Parser's action class CPPBuildASTParserAction throws UnsupportedOperationException by its function consumeDeclarationSimple. This is caused by Collections.emptyList() used by the function tried to add a an entry, but it doesn't support add operation. Reproducible: Always
Created attachment 177900 [details] A fix patch applied to org.eclipse.cdt.core.lrparser
The fix patch will target 701 and head stream.
Applied to cdt_7_0 and HEAD.
I think this bug has popped up a couple times now. Might be a good idea to replace all uses of Collections.emptyList() in the actions to ensure it doesn't happen again.
(In reply to comment #4) > I think this bug has popped up a couple times now. Might be a good idea to > replace all uses of Collections.emptyList() in the actions to ensure it doesn't > happen again. Thanks, Mike. I check my workspace and there is no more parser action function uses it.
*** cdt cvs genie on behalf of crecoskie *** Bug 324150 - LR Parser's action class CPPBuildASTParserAction throws UnsupportedOperationException by its function consumeDeclarationSimple. [*] CPPBuildASTParserAction.java 1.68 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/cpp/CPPBuildASTParserAction.java?root=Tools_Project&r1=1.67&r2=1.68 [*] CPPBuildASTParserAction.java 1.65.2.3 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/cpp/CPPBuildASTParserAction.java?root=Tools_Project&r1=1.65.2.2&r2=1.65.2.3
This is fixed.