changeset 57468:d5cbc97b917f

8236544: confusing error message: return type of accessor method is not compatible with type of record component Reviewed-by: mcimadamore
author vromero
date Tue, 07 Jan 2020 09:08:31 -0500
parents 32d0fe687ec2
children 4cf9d9706ad8
files src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties	Tue Jan 07 09:03:00 2020 -0400
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties	Tue Jan 07 09:08:31 2020 -0500
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -3460,7 +3460,7 @@
 
 # 0: symbol, 1: symbol
 compiler.misc.accessor.return.type.doesnt.match=\
-    return type of accessor method {0} is not compatible with type of record component {1}
+    return type of accessor method {0} must match the type of record component {1}
 
 compiler.misc.accessor.method.cant.throw.exception=\
     throws clause not allowed for accessor method
@@ -3499,7 +3499,7 @@
     canonical constructor must not declare type variables
 
 compiler.misc.type.must.be.identical.to.corresponding.record.component.type=\
-    type must be identical to corresponding record component type\
+    type must match that of the corresponding record component\
 
 compiler.misc.canonical.must.not.contain.explicit.constructor.invocation=\
     canonical constructor must not contain explicit constructor invocation