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

Unified Diff: runtime/lib/growable_array.dart

Issue 11235054: Removed IllegalAccessException and UnsupportedOperationException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/lib/growable_array.dart
diff --git a/runtime/lib/growable_array.dart b/runtime/lib/growable_array.dart
index ad4765b65ce1f5a8722d84a250fb6ccdd58e47b7..a328940cf96647523c5f3ec1b09a26c27d9e9eb3 100644
--- a/runtime/lib/growable_array.dart
+++ b/runtime/lib/growable_array.dart
@@ -4,7 +4,7 @@
class _GrowableObjectArray<T> implements List<T> {
factory _GrowableObjectArray._uninstantiable() {
- throw const UnsupportedOperationException(
+ throw new StateError(
floitsch 2012/10/23 12:50:32 why can StateError not be const?
Lasse Reichstein Nielsen 2012/10/24 12:32:15 We don't want to fill our constant pool with excep
"GrowableObjectArray can only be allocated by the VM");
}

Powered by Google App Engine
This is Rietveld 408576698