From 14d6b96a0a97b82f9d42fb96bd42d088e676f7a8 Mon Sep 17 00:00:00 2001 From: Stephan Herrmann Date: Tue, 9 Jun 2015 14:32:46 +0200 Subject: Update jdt.core from I20150603-2000 for 4.5RC4 --- .../org/eclipse/jdt/internal/compiler/ast/AllocationExpression.java | 2 +- .../jdt/internal/compiler/ast/QualifiedAllocationExpression.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast') diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/AllocationExpression.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/AllocationExpression.java index f1ef793b7..afe2c4ba4 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/AllocationExpression.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/AllocationExpression.java @@ -323,7 +323,7 @@ public void manageEnclosingInstanceAccessIfNecessary(BlockScope currentScope, Fl // perform some emulation work in case there is some and we are inside a local type only if (allocatedTypeErasure.isNestedType() - && (currentScope.enclosingSourceType().isLocalType() || currentScope.isLambdaScope())) { + && (currentScope.enclosingSourceType().isLocalType() || currentScope.isLambdaSubscope())) { if (allocatedTypeErasure.isLocalType()) { ((LocalTypeBinding) allocatedTypeErasure).addInnerEmulationDependent(currentScope, false); diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedAllocationExpression.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedAllocationExpression.java index 31ebefe7e..7bd040497 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedAllocationExpression.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedAllocationExpression.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2014 IBM Corporation and others. + * Copyright (c) 2000, 2015 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -333,7 +333,7 @@ public static abstract class AbstractQualifiedAllocationExpression extends Alloc // perform some extra emulation work in case there is some and we are inside a local type only if (allocatedTypeErasure.isNestedType() - && (currentScope.enclosingSourceType().isLocalType() || currentScope.isLambdaScope())) { + && (currentScope.enclosingSourceType().isLocalType() || currentScope.isLambdaSubscope())) { if (allocatedTypeErasure.isLocalType()) { ((LocalTypeBinding) allocatedTypeErasure).addInnerEmulationDependent(currentScope, this.enclosingInstance != null); -- cgit v1.2.3