Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/ExceptionHandlingFlowContext.java')
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/ExceptionHandlingFlowContext.java17
1 files changed, 16 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/ExceptionHandlingFlowContext.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/ExceptionHandlingFlowContext.java
index c98aa6a328..4beaa90f95 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/ExceptionHandlingFlowContext.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/flow/ExceptionHandlingFlowContext.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2012 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
@@ -7,6 +7,8 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Stephan Herrmann - Contribution for
+ * bug 345305 - [compiler][null] Compiler misidentifies a case of "variable can only be null"
*******************************************************************************/
package org.eclipse.jdt.internal.compiler.flow;
@@ -67,6 +69,19 @@ public ExceptionHandlingFlowContext(
}
public ExceptionHandlingFlowContext(
FlowContext parent,
+ TryStatement tryStatement,
+ ReferenceBinding[] handledExceptions,
+ int [] exceptionToCatchBlockMap,
+ FlowContext initializationParent,
+ BlockScope scope,
+ FlowInfo flowInfo) {
+ this(parent, tryStatement, handledExceptions, exceptionToCatchBlockMap,
+ tryStatement.catchArguments, initializationParent, scope, flowInfo.unconditionalInits());
+ this.initsOnFinally = flowInfo.unconditionalCopy();
+ this.conditionalLevel = 0;
+}
+ExceptionHandlingFlowContext(
+ FlowContext parent,
ASTNode associatedNode,
ReferenceBinding[] handledExceptions,
int [] exceptionToCatchBlockMap,

Back to the top