Skip to content

Commit

Permalink
8236544: confusing error message: return type of accessor method is n…
Browse files Browse the repository at this point in the history
…ot compatible with type of record component

Reviewed-by: mcimadamore
  • Loading branch information
Vicente Romero committed Jan 3, 2020
1 parent 14b9fe0 commit 396c363
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -3460,7 +3460,7 @@ compiler.misc.method.must.be.public=\

# 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
Expand Down Expand Up @@ -3499,7 +3499,7 @@ compiler.misc.canonical.must.not.declare.type.variables=\
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
Expand Down

0 comments on commit 396c363

Please sign in to comment.