mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 01:06:01 +02:00
Bug 510226 - ClassCastException in PDOMCPPUnknownMemberClass.getOwner
Change-Id: Ib85621abe85f8ef29b0cd231f390f6c5447f6434
This commit is contained in:
parent
031938d831
commit
88ee3029fc
2 changed files with 6 additions and 4 deletions
|
@ -30,7 +30,7 @@ import org.eclipse.core.runtime.CoreException;
|
|||
* Represents a binding that is unknown because it depends on template arguments.
|
||||
*/
|
||||
public class CPPUnknownMember extends CPPUnknownBinding implements ICPPUnknownMember, ISerializableType {
|
||||
protected IType fOwner;
|
||||
protected final IType fOwner;
|
||||
|
||||
protected CPPUnknownMember(IType owner, char[] name) {
|
||||
super(name);
|
||||
|
|
|
@ -65,12 +65,14 @@ public class PDOMCPPUnknownMemberClass extends CPPUnknownMemberClass implements
|
|||
public long getBindingID() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public IIndexFragmentBinding getOwner() {
|
||||
return (IIndexFragmentBinding) super.getOwner();
|
||||
if (fOwner instanceof IIndexFragmentBinding)
|
||||
return (IIndexFragmentBinding) fOwner;
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public IIndexScope getScope() {
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue