Community
Participate
Working Groups
In the following program... ========== int main (int argc, char *argv[]) { enum { Z, F } func = Z; //select func=Z return 0; } ========== If you select 'func=Z', and invoke the Extract Local Variable refactoring, program throws the following exception: Caused by: java.lang.ClassCastException: org.eclipse.cdt.internal.core.dom.parser.c.CNodeFactory cannot be cast toorg.eclipse.cdt.core.dom.ast.cpp.ICPPNodeFactory at org.eclipse.cdt.internal.core.dom.rewrite.DeclarationGeneratorImpl.getName(DeclarationGeneratorImpl.java:332) at org.eclipse.cdt.internal.core.dom.rewrite.DeclarationGeneratorImpl.getDeclSpecForBinding(DeclarationGeneratorImpl.java:324) at org.eclipse.cdt.internal.core.dom.rewrite.DeclarationGeneratorImpl.createDeclSpecFromType(DeclarationGeneratorImpl.java:112) . . .