| Index: editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
|
| diff --git a/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart b/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
|
| index 01ffd5d3315059e322a052a4f7057a83f33aec5f..dc5fe0570ed1b08f708bb9d75eaf47e9d78b1fcd 100644
|
| --- a/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
|
| +++ b/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
|
| @@ -258,10 +258,14 @@ class RuntimeException implements Exception {
|
|
|
| class JavaException implements Exception {
|
| final String message;
|
| - final Exception e;
|
| - JavaException([this.message = "", this.e = null]);
|
| - JavaException.withCause(this.e) : message = null;
|
| - String toString() => "JavaException: $message $e";
|
| + final Exception cause;
|
| + JavaException([this.message = "", this.cause = null]);
|
| + JavaException.withCause(this.cause) : message = null;
|
| + String toString() => "JavaException: $message $cause";
|
| +}
|
| +
|
| +class IOException extends JavaException {
|
| + IOException([message = "", cause = null]) : super(message, cause);
|
| }
|
|
|
| class IllegalArgumentException implements Exception {
|
| @@ -478,6 +482,12 @@ bool javaSetAdd(Set s, o) {
|
| return false;
|
| }
|
|
|
| +javaMapPut(Map target, key, value) {
|
| + var oldValue = target[key];
|
| + target[key] = value;
|
| + return oldValue;
|
| +}
|
| +
|
| void javaMapPutAll(Map target, Map source) {
|
| source.forEach((k, v) {
|
| target[k] = v;
|
| @@ -521,3 +531,8 @@ class JavaStringBuilder {
|
| sb = new StringBuffer();
|
| }
|
| }
|
| +
|
| +abstract class Enum<E> implements Comparable<E> {
|
| + int get ordinal;
|
| + String get name;
|
| +}
|
|
|