|
Throw AbstractClassInstantiationError if an abstract class is instantiated
This is the second try to my previous attempt to implement the
new abstract class handling. Instead of a compile-time error,
the VM now throws an AbstractClassInstantiationError at runtime
if an abstract class is instantiated. Added the new error class
to the core library.
For now I'm still using the rule that a class is abstract if it is explicitly
marked as abstract, or if it defines a new abstract method.
Committed: https://code.google.com/p/dart/source/detail?r=11708
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+207 lines, -61 lines) |
Patch |
|
M |
lib/core/errors.dart
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/lib/error.cc
|
View
|
1
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/lib/error.dart
|
View
|
1
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/bootstrap_natives.h
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/object.h
|
View
|
1
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/object.cc
|
View
|
1
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/parser.cc
|
View
|
1
|
10 chunks |
+70 lines, -22 lines |
0 comments
|
Download
|
|
M |
runtime/vm/symbols.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/co19/co19-runtime.status
|
View
|
1
|
2 chunks |
+40 lines, -6 lines |
0 comments
|
Download
|
|
D |
tests/language/abstract_factory_constructor_test.dart
|
View
|
1
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
tests/language/abstract_getter_test.dart
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
D |
tests/language/empty_body_member_negative_test.dart
|
View
|
1
|
1 chunk |
+0 lines, -15 lines |
0 comments
|
Download
|
|
M |
tests/language/get_set_syntax_test.dart
|
View
|
1
|
3 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
|
M |
tests/language/implicit_this_test.dart
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A + |
tests/language/interface_negative_test.dart
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
|
D |
tests/language/interface_test.dart
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
tests/language/language.status
|
View
|
1
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tests/language/language_dart2js.status
|
View
|
1
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|