Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366680 - Stack overflow error during code editing
Summary: Stack overflow error during code editing
Status: CLOSED DUPLICATE of bug 368446
Alias: None
Product: CDT
Classification: Tools
Component: cdt-codan (show other bugs)
Version: 8.0.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: CDT Codan Inbox CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 05:31 EST by Iakov Minochkin CLA
Modified: 2012-02-10 00:37 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iakov Minochkin CLA 2011-12-14 05:31:08 EST
Build Identifier: 20110916-0149

Internal error occurs ( java.lang.StackOverflowError ) during editing base class name in class definition.

Reproducible: Always

Steps to Reproduce:
1. create empty class A
2. write ': public A'
3. error occurs
Comment 1 Anton Leherbauer CLA 2011-12-14 05:47:52 EST
I could reproduce:

java.lang.StackOverflowError
	at java.lang.reflect.Array.newInstance(Unknown Source)
	at org.eclipse.cdt.core.parser.util.ArrayUtil.trim(ArrayUtil.java:152)
	at org.eclipse.cdt.core.parser.util.ArrayUtil.trim(ArrayUtil.java:170)
	at org.eclipse.cdt.internal.core.dom.parser.cpp.ClassTypeHelper.getDeclaredMethods(ClassTypeHelper.java:377)
	at org.eclipse.cdt.internal.core.dom.parser.cpp.CPPClassType.getDeclaredMethods(CPPClassType.java:368)
	at org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructor.getDestructor(NonVirtualDestructor.java:43)
	at org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructor.hasVirtualDestructor(NonVirtualDestructor.java:52)
	at org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructor.hasVirtualDestructor(NonVirtualDestructor.java:60)
	at org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructor.hasVirtualDestructor(NonVirtualDestructor.java:60)
	at org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructor.hasVirtualDestructor(NonVirtualDestructor.java:60)
[...]
Comment 2 Marc-André Laperle CLA 2012-02-10 00:37:28 EST

*** This bug has been marked as a duplicate of bug 368446 ***