dart2js: Reflective constructor access should be consistent in declarations and newInstance #16074
Labels
closed-obsolete
Closed as the reported issue is no longer relevant
library-mirrors
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
web-dart2js
The simple name of a constructor should be the identifier without the class or the constant symbol for the empty string if it is a default constructor. Currently this is not the case with unfortunate consequences.
One cannot lookup a constructor and use its simple name to run it, because the "simple" name is actually qualified by the class name. This leads to the need to do string surgery to call the constructor.
The qualified name ends up being library.Class.Class.id which is very confusing.
Once the simple name behaves correctly, these problems should go away.
The text was updated successfully, but these errors were encountered: