Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Block.java')
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Block.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Block.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Block.java
index ab8efa0069..de2a55f30f 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Block.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Block.java
@@ -90,8 +90,6 @@ public void generateCode(BlockScope currentScope, CodeStream codeStream) {
if (this.statements != null) {
for (Statement stmt : this.statements) {
stmt.generateCode(this.scope, codeStream);
- if ((stmt.bits & ASTNode.HasInstancePatternExpression) != 0)
- stmt.exitPatternVariableScope(codeStream);
}
} // for local variable debug attributes
if (this.scope != currentScope) { // was really associated with its own scope
@@ -134,12 +132,7 @@ public void resolve(BlockScope upperScope) {
: new BlockScope(upperScope, this.explicitDeclarations);
for (int i = 0, length = this.statements.length; i < length; i++) {
final Statement stmt = this.statements[i];
- stmt.lookForPatternVariables(this.scope);
- if ((stmt.bits & ASTNode.HasInstancePatternExpression) == 0) {
- stmt.resolve(this.scope);
- } else {
- stmt.resolve(stmt.patternScope);
- }
+ stmt.resolve(this.scope);
}
}
}

Back to the top