| Index: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java
|
| diff --git a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java
|
| index 5d3a339a09effe77009ddf0349ddf23ddf85d060..fb023d5d53556fa7ec659a4c6f224b76e54ea7c0 100644
|
| --- a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java
|
| +++ b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java
|
| @@ -617,9 +617,11 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest {
|
| "public class Test {",
|
| " public void mainInteger(int p) {",
|
| " Integer.toString(p);",
|
| + " Integer.toString(p, 16);",
|
| " }",
|
| " public void mainLong(long p) {",
|
| " Long.toString(p);",
|
| + " Long.toString(p, 16);",
|
| " }",
|
| " public void mainDouble(double p) {",
|
| " Double.toString(p);",
|
| @@ -633,9 +635,11 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest {
|
| "class Test {",
|
| " void mainInteger(int p) {",
|
| " p.toString();",
|
| + " p.toRadixString(16);",
|
| " }",
|
| " void mainLong(int p) {",
|
| " p.toString();",
|
| + " p.toRadixString(16);",
|
| " }",
|
| " void mainDouble(double p) {",
|
| " p.toString();",
|
| @@ -989,6 +993,24 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest {
|
| "}");
|
| }
|
|
|
| + public void test_Throwable_getCause() throws Exception {
|
| + translateSingleFile(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "package test;",
|
| + "public class Test {",
|
| + " public main(Throwable e) {",
|
| + " e.getCause();",
|
| + " }",
|
| + "}");
|
| + runProcessor();
|
| + assertFormattedSource(//
|
| + "class Test {",
|
| + " main(Exception e) {",
|
| + " e.cause;",
|
| + " }",
|
| + "}");
|
| + }
|
| +
|
| public void test_Throwable_getMessage() throws Exception {
|
| translateSingleFile(
|
| "// filler filler filler filler filler filler filler filler filler filler",
|
|
|