Fixes for bug #1326088
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / lookup / BlockScope.java
index f366aaa..b6cc496 100644 (file)
 package net.sourceforge.phpdt.internal.compiler.lookup;
 
 import net.sourceforge.phpdt.core.compiler.CharOperation;
+import net.sourceforge.phpdt.internal.compiler.ast.AbstractMethodDeclaration;
+import net.sourceforge.phpdt.internal.compiler.ast.ConstructorDeclaration;
+import net.sourceforge.phpdt.internal.compiler.ast.TypeDeclaration;
 import net.sourceforge.phpdt.internal.compiler.problem.ProblemReporter;
-import net.sourceforge.phpeclipse.internal.compiler.ast.AbstractMethodDeclaration;
-import net.sourceforge.phpeclipse.internal.compiler.ast.ConstructorDeclaration;
-import net.sourceforge.phpeclipse.internal.compiler.ast.TypeDeclaration;
 
 public class BlockScope extends Scope {
 
@@ -418,7 +418,7 @@ public class BlockScope extends Scope {
                                        if (!((ReferenceBinding) binding).canBeSeenBy(this))
                                                return new ProblemReferenceBinding(
                                                        CharOperation.subarray(compoundName, 0, currentIndex),
-                                                       binding,
+                                                       (ReferenceBinding)binding,
                                                        NotVisible);
                                        break foundType;
                                }
@@ -522,7 +522,7 @@ public class BlockScope extends Scope {
                                        if (!((ReferenceBinding) binding).canBeSeenBy(this))
                                                return new ProblemReferenceBinding(
                                                        CharOperation.subarray(compoundName, 0, currentIndex),
-                                                       binding, 
+                                                       (ReferenceBinding)binding, 
                                                        NotVisible);
                                        break foundType;
                                }