Re: [dart-web] Abstract method missing from ClassMirror's instance members.

104 views
Skip to first unread message

John Messerly

unread,
Dec 18, 2013, 8:19:56 PM12/18/13
to nath...@ofiesh.com, General Dart Discussion
(redirecting to misc@)


On Wed, Dec 18, 2013 at 5:06 PM, <nath...@ofiesh.com> wrote:
the ClassMirror.instanceMembers should contain the methods of the class, however it doesn't contain abstract methods.I'm trying to use annotations on abstract methods to direct the behavior of a proxy without creating the class (I'd use an interface if dart had them).

Should this be a bug/feature request or is this the way it's supposed to be?

The following returns null:

import "dart:mirrors";


abstract class Foo {
  bar
();
}
main
() {
 
ClassMirror cm = reflectClass(Foo);
 
print(cm.instanceMembers[const Symbol("bar")]);
}

The following returns MethodMirror on 'bar'

import "dart:mirrors";


abstract class Foo {
  bar
() {}
}
main
() {
 
ClassMirror cm = reflectClass(Foo);
 
print(cm.instanceMembers[const Symbol("bar")]);
}

 

Gilad Bracha

unread,
Dec 18, 2013, 9:07:04 PM12/18/13
to General Dart Discussion, nath...@ofiesh.com
Please file a bug. 


--
For other discussions, see https://groups.google.com/a/dartlang.org/
 
For HOWTO questions, visit http://stackoverflow.com/tags/dart
 
To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.



--
Cheers, Gilad

Nathanial Ofiesh

unread,
Dec 19, 2013, 11:15:36 AM12/19/13
to mi...@dartlang.org, nath...@ofiesh.com
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages