Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManoj Palat2020-01-07 06:31:16 +0000
committerManoj Palat2020-01-07 06:31:16 +0000
commitf414f843639cc270822cea65bcf5375caf28464b (patch)
treeb78f7432f4d1eec8b2b00bfed1e2576b17a45c13
parentba481134be15d3d72d078f1809b466546ade7d0d (diff)
downloadeclipse.jdt.core-f414f843639cc270822cea65bcf5375caf28464b.tar.gz
eclipse.jdt.core-f414f843639cc270822cea65bcf5375caf28464b.tar.xz
eclipse.jdt.core-f414f843639cc270822cea65bcf5375caf28464b.zip
Bug 558343 - [14] Records - create implicit override methods - fixing
implicit flagging Change-Id: I1394c2675007e87cd23b4e42becf8bb8cd8a5396
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/RecordDeclaration.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/RecordDeclaration.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/RecordDeclaration.java
index 10a6767836..b54e75f148 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/RecordDeclaration.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/RecordDeclaration.java
@@ -423,6 +423,7 @@ public class RecordDeclaration extends TypeDeclaration {
right = m;
CombinedBinaryExpression cbe = new CombinedBinaryExpression(left, right, OperatorIds.PLUS, 1);
md.statements = new Statement[] { new ReturnStatement(cbe, -1, -1) };
+ md.isImplicit = true;
}
private static char[][] getBoxedName(char[] token) {
return
@@ -491,6 +492,7 @@ public class RecordDeclaration extends TypeDeclaration {
this.default_long_pos, -1, -1);
arraysHashCode.arguments = new Expression[] { aae };
md.statements = new Statement[] { new ReturnStatement(arraysHashCode, -1, -1) };
+ md.isImplicit = true;
}
private AbstractMethodDeclaration getMethodByName(char[] name1) {
AbstractMethodDeclaration[] ams = getMethod(name1);
@@ -572,6 +574,7 @@ public class RecordDeclaration extends TypeDeclaration {
}
stmts.add(new ReturnStatement(new TrueLiteral(-1, -1), -1, -1));
md.statements = stmts.toArray(new Statement[0]);
+ md.isImplicit = true;
}
private MethodDeclaration createMethodDeclaration(char[] name1, TypeReference returnType) {
MethodDeclaration m = new MethodDeclaration(this.compilationResult);

Back to the top