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

Issue 23045004: Throw when reflecting on elements not covered by a `MirrorsUsed` annotation. (Closed)

Created:
7 years, 4 months ago by karlklose
Modified:
7 years, 3 months ago
Reviewers:
ngeoffray
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Throw when reflecting on elements not covered by a `MirrorsUsed` annotation. BUG= R=ngeoffray@google.com Committed: https://code.google.com/p/dart/source/detail?r=26874

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : Explicitly mark methods, getters and setters with a boolean flag indicating if they can be accessed… #

Patch Set 7 : #

Total comments: 26

Patch Set 8 : Rebase #

Patch Set 9 : Address Nicolas' comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+328 lines, -11 lines) Patch
M sdk/lib/_internal/compiler/implementation/js_backend/backend.dart View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart View 1 2 3 4 5 6 7 8 12 chunks +38 lines, -7 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/namer.dart View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/mirrors_used.dart View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M sdk/lib/_internal/lib/js_helper.dart View 1 2 3 4 5 6 7 8 5 chunks +11 lines, -3 lines 0 comments Download
M sdk/lib/_internal/lib/js_mirrors.dart View 1 2 3 4 5 6 7 8 8 chunks +28 lines, -1 line 0 comments Download
A tests/compiler/dart2js_extra/mirror_invalid_field_access2_test.dart View 1 4 5 6 7 8 1 chunk +33 lines, -0 lines 0 comments Download
A tests/compiler/dart2js_extra/mirror_invalid_field_access3_test.dart View 1 2 3 4 5 6 7 8 1 chunk +30 lines, -0 lines 0 comments Download
A tests/compiler/dart2js_extra/mirror_invalid_field_access4_test.dart View 1 2 3 4 5 6 7 8 1 chunk +40 lines, -0 lines 0 comments Download
A tests/compiler/dart2js_extra/mirror_invalid_field_access_test.dart View 1 4 5 6 7 8 1 chunk +29 lines, -0 lines 0 comments Download
A tests/compiler/dart2js_extra/mirror_invalid_invoke2_test.dart View 1 2 3 4 5 6 7 8 1 chunk +33 lines, -0 lines 0 comments Download
A tests/compiler/dart2js_extra/mirror_invalid_invoke3_test.dart View 1 2 3 4 5 6 7 8 1 chunk +32 lines, -0 lines 0 comments Download
A tests/compiler/dart2js_extra/mirror_invalid_invoke_test.dart View 2 3 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
karlklose
7 years, 4 months ago (2013-08-23 11:23:58 UTC) #1
ahe
https://codereview.chromium.org/23045004/diff/6001/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart File sdk/lib/_internal/compiler/implementation/js_backend/backend.dart (right): https://codereview.chromium.org/23045004/diff/6001/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart#newcode1539 sdk/lib/_internal/compiler/implementation/js_backend/backend.dart:1539: bool isAccessibleByReflection(Element element) { I'm not sure this method ...
7 years, 3 months ago (2013-08-26 20:41:14 UTC) #2
karlklose
PTAL.
7 years, 3 months ago (2013-08-28 15:12:34 UTC) #3
ngeoffray
LGTM https://codereview.chromium.org/23045004/diff/12002/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart File sdk/lib/_internal/compiler/implementation/js_backend/backend.dart (right): https://codereview.chromium.org/23045004/diff/12002/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart#newcode1559 sdk/lib/_internal/compiler/implementation/js_backend/backend.dart:1559: /// is in the set of elements covered ...
7 years, 3 months ago (2013-08-29 07:45:49 UTC) #4
karlklose
Thank you, Nicolas. https://codereview.chromium.org/23045004/diff/12002/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart File sdk/lib/_internal/compiler/implementation/js_backend/backend.dart (right): https://codereview.chromium.org/23045004/diff/12002/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart#newcode1559 sdk/lib/_internal/compiler/implementation/js_backend/backend.dart:1559: /// is in the set of ...
7 years, 3 months ago (2013-08-29 15:33:37 UTC) #5
karlklose
7 years, 3 months ago (2013-08-29 15:55:51 UTC) #6
Message was sent while issue was closed.
Committed patchset #9 manually as r26874 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698