import eclipse 3.1 M4 compiler
[org.ibex.tool.git] / src / org / eclipse / jdt / internal / compiler / lookup / ProblemReferenceBinding.java
index 7225ba7..00d8a18 100644 (file)
@@ -12,31 +12,32 @@ package org.eclipse.jdt.internal.compiler.lookup;
 
 public class ProblemReferenceBinding extends ReferenceBinding {
        public ReferenceBinding original;
-       private int problemId;
+       private int problemReason;
+       public ReferenceBinding alternateMatch;
+       
 // NOTE: must only answer the subset of the name related to the problem
 
-public ProblemReferenceBinding(char[][] compoundName, int problemId) {
-       this(compoundName, null, problemId);
+public ProblemReferenceBinding(char[][] compoundName, int problemReason) {
+       this(compoundName, null, problemReason);
 }
-public ProblemReferenceBinding(char[] name, int problemId) {
-       this(new char[][] {name}, null, problemId);
+public ProblemReferenceBinding(char[] name, int problemReason) {
+       this(new char[][] {name}, null, problemReason);
 }
 
-public ProblemReferenceBinding(char[][] compoundName, ReferenceBinding original, int problemId) {
+public ProblemReferenceBinding(char[][] compoundName, ReferenceBinding original, int problemReason) {
        this.compoundName = compoundName;
        this.original = original;
-       this.problemId = problemId;
+       this.problemReason = problemReason;
 }
-public ProblemReferenceBinding(char[] name, ReferenceBinding original, int problemId) {
-       this(new char[][] {name}, original, problemId);
+public ProblemReferenceBinding(char[] name, ReferenceBinding original, int problemReason) {
+       this(new char[][] {name}, original, problemReason);
 }
 /* API
 * Answer the problem id associated with the receiver.
 * NoError if the receiver is a valid binding.
 */
-
-public final int problemId() {
-       return problemId;
+public int problemId() {
+       return this.problemReason;
 }
 
 /**