{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/26228","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/26228/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/26228/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/26228/events","html_url":"https://github.com/dart-lang/sdk/issues/26228","id":146911491,"number":26228,"title":"Reflecting on un-marked type 'HtmlElement'","user":{"login":"zoechi","id":405837,"avatar_url":"https://avatars.githubusercontent.com/u/405837?v=3","gravatar_id":"","url":"https://api.github.com/users/zoechi","html_url":"https://github.com/zoechi","followers_url":"https://api.github.com/users/zoechi/followers","following_url":"https://api.github.com/users/zoechi/following{/other_user}","gists_url":"https://api.github.com/users/zoechi/gists{/gist_id}","starred_url":"https://api.github.com/users/zoechi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoechi/subscriptions","organizations_url":"https://api.github.com/users/zoechi/orgs","repos_url":"https://api.github.com/users/zoechi/repos","events_url":"https://api.github.com/users/zoechi/events{/privacy}","received_events_url":"https://api.github.com/users/zoechi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-08T12:10:06Z","updated_at":"2016-04-11T11:58:22Z","closed_at":null,"body":"This might be a Polymer issue, but it fails only in Dartium but is working fine in Chrome therefore I assumed it's a Dartium issue.\r\n\r\nWhen I run https://github.com/bwu-dart/bwu_datagrid/blob/69fbef15c0317ec3f0bd5474de68d79ce63a6229/example_/lib/e02_formatters/app_element.dart#L27-L27\r\n\r\n(entry point https://github.com/bwu-dart/bwu_datagrid/blob/69fbef15c0317ec3f0bd5474de68d79ce63a6229/example_/web/e02_formatters.html)\r\n\r\nin Dartium I get\r\n\r\n```\r\nException: : Unhandled exception:\r\nReflecting on un-marked type 'HtmlElement'\r\n#0      _InstanceMirrorImpl._InstanceMirrorImpl (package:reflectable/src/reflectable_transformer_based.dart:213:9)\r\n#1      ReflectableImpl.reflect (package:reflectable/src/reflectable_transformer_based.dart:2192:16)\r\n#2      _setupLifecycleMethods.<anonymous closure>.<anonymous closure> (package:polymer/src/common/polymer_descriptor.dart:168:39)\r\n#3      JsObject._callMethodLegacy (dart:js:1161)\r\n#4      JsObject.callMethod (dart:js:1150)\r\n#5      HtmlElement&PolymerMixin.polymerCreated (package:polymer/src/common/polymer_mixin.dart:23:15)\r\n#6      PolymerElement.PolymerElement.created (package:polymer/polymer_micro.dart:23:5)\r\n#7      AppElement.AppElement.created (package:bwu_datagrid_examples/e02_formatters/app_element.dart:28:26)\r\n#8      Blink_Utils.setInstanceInterceptor (dart:_blink:23305)\r\n#9      _createCustomUpgrader (dart:html:758)\r\n#10     _VMElementUpgrader.upgrade (dart:html:47499)\r\n#11     registerDartType.upgradeElement (package:web_components/interop.dart:38:45)\r\n#12     JsObject._callMethodLegacy (dart:js:1161)\r\n#13     JsObject.callMethod (dart:js:1150)\r\n#14     registerDartType (package:web_components/interop.dart:41:8)\r\n#15     CustomElementProxy.initialize (package:web_components/custom_element_proxy.dart:23:5)\r\n#16     PolymerRegister.initialize (package:polymer/src/common/polymer_register.dart:21:21)\r\n#17     loadInitializers.<anonymous closure>.<anonymous closure> (package:initialize/src/static_loader.dart:46:32)\r\n#18     _runInitQueue (package:initialize/initialize.dart:35:24)\r\n#19     _runInitQueue.<anonymous closure> (package:initialize/initialize.dart:38:26)\r\n#20     _RootZone.runUnary (dart:async/zone.dart:1137)\r\n#21     _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:553)\r\n#22     _Future._propagateToListeners (dart:async/future_impl.dart:639)\r\n#23     _Future._completeWithValue (dart:async/future_impl.dart:426)\r\n#24     _Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:481)\r\n#25     _microtaskLoop (dart:async/schedule_microtask.dart:41)\r\n#26     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50)\r\n#27     _ScheduleImmediateHelper._handleMutation (dart:html:48970)\r\n```\r\n\r\n> Dart VM version: 1.16.0-edge.95f37e03afcc58ce035d5587cffc5fe57f0232ba (Wed Apr  6 16:08:39 2016) on \"linux_x64\""},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/208308370","html_url":"https://github.com/dart-lang/sdk/issues/26228#issuecomment-208308370","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/26228","id":208308370,"user":{"login":"eernstg","id":9606994,"avatar_url":"https://avatars.githubusercontent.com/u/9606994?v=3","gravatar_id":"","url":"https://api.github.com/users/eernstg","html_url":"https://github.com/eernstg","followers_url":"https://api.github.com/users/eernstg/followers","following_url":"https://api.github.com/users/eernstg/following{/other_user}","gists_url":"https://api.github.com/users/eernstg/gists{/gist_id}","starred_url":"https://api.github.com/users/eernstg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eernstg/subscriptions","organizations_url":"https://api.github.com/users/eernstg/orgs","repos_url":"https://api.github.com/users/eernstg/repos","events_url":"https://api.github.com/users/eernstg/events{/privacy}","received_events_url":"https://api.github.com/users/eernstg/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T11:58:22Z","updated_at":"2016-04-11T11:58:22Z","body":"Reflectable 0.5.4 was created as a bug fix for 0.5.3 (there was a cache which was flushed when `pub serve` had many entry points, and this caused some additional \"constant is null\" situations that we did not know about and did not test for). Polymer stayed at reflectable 0.5.2 (by using this '<0.5.3' constraint that you mentioned) and analyzer 0.27.1 in order to avoid the problems arising from those nulls.\r\n\r\nBut polymer is expected to use reflectable 0.5.4 real soon now, and Jacob already confirmed that the issue seems to have been resolved (https://github.com/dart-lang/polymer-dart/issues/690). So you might as well use a more flexible constraint on reflectable (if any) to allow polymer to take that step."}}