Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Issue 17588005: Warn about overriding operator== but not hashCode. (Closed)

Created:
7 years, 6 months ago by ahe
Modified:
7 years, 5 months ago
CC:
reviews_dartlang.org, kasperl, ngeoffray, karlklose, Johnni Winther
Visibility:
Public.

Description

Warn about overriding operator== but not hashCode. R=kasperl@google.com Committed: https://code.google.com/p/dart/source/detail?r=24463

Patch Set 1 : #

Total comments: 2

Patch Set 2 : "Hint", not "lint", also change symbol warning to be hints. #

Total comments: 6

Patch Set 3 : Update tests #

Patch Set 4 : Update comments (according to my dictionary whitelist is a word). #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -90 lines) Patch
M dart/sdk/lib/_internal/compiler/compiler.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/colors.dart View 1 1 chunk +18 lines, -4 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/compiler.dart View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/dart2js.dart View 1 2 chunks +5 lines, -0 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 2 4 chunks +14 lines, -2 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/source_file_provider.dart View 1 3 chunks +26 lines, -12 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/warnings.dart View 1 2 chunks +9 lines, -5 lines 0 comments Download
M dart/tests/compiler/dart2js/analyze_api_test.dart View 1 2 1 chunk +9 lines, -1 line 2 comments Download
M dart/tests/compiler/dart2js/analyze_dart2js_test.dart View 1 2 1 chunk +80 lines, -0 lines 1 comment Download
M dart/tests/compiler/dart2js/analyze_helper.dart View 1 2 3 5 chunks +18 lines, -9 lines 0 comments Download
M dart/tests/compiler/dart2js/call_site_simple_type_inferer_test.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M dart/tests/compiler/dart2js/dart2js.status View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M dart/tests/compiler/dart2js/mirror_tree_shaking_test.dart View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M dart/tests/compiler/dart2js/mock_compiler.dart View 4 chunks +4 lines, -0 lines 0 comments Download
M dart/tests/compiler/dart2js/resolver_test.dart View 2 chunks +20 lines, -0 lines 0 comments Download
M dart/tests/utils/dummy_compiler_test.dart View 1 chunk +56 lines, -52 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
ahe
I'd like a full review now. I think the CL is ready to commit (pending ...
7 years, 6 months ago (2013-06-24 13:09:17 UTC) #1
polux
On 2013/06/24 13:09:17, ahe wrote: > I'd like a full review now. I think the ...
7 years, 6 months ago (2013-06-24 13:41:38 UTC) #2
ahe
https://codereview.chromium.org/17588005/diff/2001/dart/tests/compiler/dart2js/analyze_dart2js_test.dart File dart/tests/compiler/dart2js/analyze_dart2js_test.dart (right): https://codereview.chromium.org/17588005/diff/2001/dart/tests/compiler/dart2js/analyze_dart2js_test.dart#newcode23 dart/tests/compiler/dart2js/analyze_dart2js_test.dart:23: 'sdk/lib/_internal/compiler/implementation/constants.dart': These will be removed in an updated version ...
7 years, 6 months ago (2013-06-24 19:17:53 UTC) #3
ngeoffray
Code looks good, but personally I think that making it a lint thing is a ...
7 years, 6 months ago (2013-06-24 19:56:14 UTC) #4
ahe
On 2013/06/24 19:56:14, ngeoffray wrote: > Code looks good, but personally I think that making ...
7 years, 6 months ago (2013-06-24 20:34:09 UTC) #5
ahe
I think we have a compromise now: This diagnostic is not a "warning", it is ...
7 years, 6 months ago (2013-06-25 15:36:40 UTC) #6
kasperl
https://codereview.chromium.org/17588005/diff/10001/dart/tests/compiler/dart2js/analyze_api_test.dart File dart/tests/compiler/dart2js/analyze_api_test.dart (right): https://codereview.chromium.org/17588005/diff/10001/dart/tests/compiler/dart2js/analyze_api_test.dart#newcode24 dart/tests/compiler/dart2js/analyze_api_test.dart:24: const ['Warning: Using "new Symbol"', // Issue 10565. Should ...
7 years, 6 months ago (2013-06-26 09:22:27 UTC) #7
ahe
PTAL https://codereview.chromium.org/17588005/diff/10001/dart/tests/compiler/dart2js/analyze_api_test.dart File dart/tests/compiler/dart2js/analyze_api_test.dart (right): https://codereview.chromium.org/17588005/diff/10001/dart/tests/compiler/dart2js/analyze_api_test.dart#newcode24 dart/tests/compiler/dart2js/analyze_api_test.dart:24: const ['Warning: Using "new Symbol"', // Issue 10565. ...
7 years, 6 months ago (2013-06-26 10:45:51 UTC) #8
kasperl
LGTM.
7 years, 6 months ago (2013-06-26 10:51:21 UTC) #9
ahe
Committed patchset #4 manually as r24463 (presubmit successful).
7 years, 6 months ago (2013-06-26 11:20:21 UTC) #10
Johnni Winther
https://codereview.chromium.org/17588005/diff/25002/dart/tests/compiler/dart2js/analyze_api_test.dart File dart/tests/compiler/dart2js/analyze_api_test.dart (right): https://codereview.chromium.org/17588005/diff/25002/dart/tests/compiler/dart2js/analyze_api_test.dart#newcode26 dart/tests/compiler/dart2js/analyze_api_test.dart:26: 'sdk/lib/html/dart2js/html_dart2js.dart': Have these been reported as bugs? (Please add ...
7 years, 5 months ago (2013-06-28 14:14:55 UTC) #11
ahe
7 years, 5 months ago (2013-06-28 17:59:26 UTC) #12
Message was sent while issue was closed.
Thank you, Johnni.

I'll follow up with another CL.

https://codereview.chromium.org/17588005/diff/25002/dart/tests/compiler/dart2...
File dart/tests/compiler/dart2js/analyze_api_test.dart (right):

https://codereview.chromium.org/17588005/diff/25002/dart/tests/compiler/dart2...
dart/tests/compiler/dart2js/analyze_api_test.dart:26:
'sdk/lib/html/dart2js/html_dart2js.dart':
On 2013/06/28 14:14:55, Johnni Winther wrote:
> Have these been reported as bugs? (Please add issue number)

Done.

Powered by Google App Engine
This is Rietveld 408576698