Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322313 - stack overflow when calling MetaclassManager.getMetaclass() with String argument
Summary: stack overflow when calling MetaclassManager.getMetaclass() with String argument
Status: NEW
Alias: None
Product: XWT
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-11 02:45 EDT by Holger Hoch CLA
Modified: 2013-01-24 15:31 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Hoch CLA 2010-08-11 02:45:30 EDT
Build Identifier: 

Method #getMetaclass(Object object) of class org.eclipse.e4.xwt.internal.core.MetaclassManager enters infinite recursion when called with a String argument.
Reason is the statement 
 ... if (object instanceof String) {
	return getMetaclass((String) object);
     } ....
that calls the method itself with the same parameter
(I don't know if this method would ever be called with a String argument, just stumbled across when looking how namespaces are handled)

Reproducible: Always

Steps to Reproduce:
n/a