Community
Participate
Working Groups
Created attachment 187132 [details] ClassCastException stack trace To understand what I am talking about, look at the line 91 in ElementImplForPhp.java from org.eclipse.php.core. There is an incorrect implementation of the interface method org.eclipse.wst.sse.core.internal.provisional.INodeNotifier.getExistingAdapter(Object type) in the class org.eclipse.php.internal.core.documentModel.dom.ElementImplForPhp . While the interface does not impose any constraints on the type of the parameter 'type', the implementation in ElementImplForPhp.getExistingAdapter assumes, that 'type' parameter has 'Class' type. No type checking is added. On some workspaces it may lead to ClassCastException. As an example I have attached a stack trace when PDT is used along with JBoss Tools.
Created attachment 187133 [details] Patch for ElementImplForPhp.java A patch is attached. It just adds instanceof checking before the class casting.
hi Yahor, thanks,the patch has been applied:)
Closing...