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

Issue 1607103003: Tweak reflective_tests _invokeSymbolIfExists to not swallow exceptions (Closed)

Created:
4 years, 11 months ago by Jennifer Messerly
Modified:
4 years, 11 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Tweak reflective_tests _invokeSymbolIfExists to not swallow exceptions I had a bug in my code, that caused a bunch of test failures without meaningful stack trace. It was caused by _invokeSymbolIfExists swallowing all NoSuchMethodErrors from setUp/tearDown calls. Instead, it now guards only the method lookup, not the call. R=brianwilkerson@google.com, scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/0b407a2c6180c3a490005b58d7df9f04cce7da15

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -5 lines) Patch
M pkg/analyzer/test/reflective_tests.dart View 1 chunk +6 lines, -5 lines 1 comment Download

Messages

Total messages: 8 (4 generated)
Jennifer Messerly
https://codereview.chromium.org/1607103003/diff/1/pkg/analyzer/test/reflective_tests.dart File pkg/analyzer/test/reflective_tests.dart (right): https://codereview.chromium.org/1607103003/diff/1/pkg/analyzer/test/reflective_tests.dart#newcode78 pkg/analyzer/test/reflective_tests.dart:78: closure = instanceMirror.getField(symbol); Basically, we get the tearoff: https://api.dartlang.org/1.13.2/dart-mirrors/ObjectMirror/getField.html
4 years, 11 months ago (2016-01-19 23:53:54 UTC) #3
Brian Wilkerson
LGTM, but Konstantin knows this code better than I do.
4 years, 11 months ago (2016-01-20 00:14:00 UTC) #5
scheglov
LGTM
4 years, 11 months ago (2016-01-20 00:17:43 UTC) #6
Jennifer Messerly
4 years, 11 months ago (2016-01-20 21:39:05 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
0b407a2c6180c3a490005b58d7df9f04cce7da15 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698