mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 356239 - ClassCastException in ClassTypeHelper.getOwnMethods.
This commit is contained in:
parent
42eaf65363
commit
d93f3d3532
1 changed files with 3 additions and 4 deletions
|
@ -314,11 +314,10 @@ public class ClassTypeHelper {
|
|||
private static ObjectSet<ICPPMethod> getOwnMethods(ICPPClassType classType) {
|
||||
ObjectSet<ICPPMethod> set= new ObjectSet<ICPPMethod>(4);
|
||||
set.addAll(classType.getDeclaredMethods());
|
||||
if (classType instanceof IProblemBinding) {
|
||||
return set;
|
||||
IScope scope = classType.getCompositeScope();
|
||||
if (scope instanceof ICPPClassScope) {
|
||||
set.addAll(((ICPPClassScope) scope).getImplicitMethods());
|
||||
}
|
||||
ICPPClassScope scope= (ICPPClassScope) classType.getCompositeScope();
|
||||
set.addAll(scope.getImplicitMethods());
|
||||
return set;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue