commit | a4b70b6cb56ea06f4b969cb9b40b8d8bc9e7f813 | [log] [tgz] |
---|---|---|
author | scottb@google.com <scottb@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Wed Mar 02 20:43:16 2011 +0000 |
committer | scottb@google.com <scottb@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Wed Mar 02 20:43:16 2011 +0000 |
tree | 1a9166740d8a2aa6d4466f68abffac6deb804722 | |
parent | 984a6bb186f39438a1a97994fc1bc2138d4f13d3 [diff] |
Artificial rescue should not explicitly rescue class literals. http://gwt-code-reviews.appspot.com/1370806/show Review by: robertvawter@google.com git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@9798 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/jjs/ArtificialRescueRecorder.java b/dev/core/src/com/google/gwt/dev/jjs/ArtificialRescueRecorder.java index 8d3ead7..fa14b5e 100644 --- a/dev/core/src/com/google/gwt/dev/jjs/ArtificialRescueRecorder.java +++ b/dev/core/src/com/google/gwt/dev/jjs/ArtificialRescueRecorder.java
@@ -87,9 +87,6 @@ if (instantiable) { currentClass.addArtificialRescue(classType); - - // Make sure that a class literal for the type has been allocated - program.getLiteralClass(classType); } if (classType instanceof JDeclaredType) {
diff --git a/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java b/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java index 64c0a9b..42e284c 100644 --- a/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java +++ b/dev/core/src/com/google/gwt/dev/jjs/impl/ControlFlowAnalyzer.java
@@ -575,7 +575,6 @@ for (JNode artificial : ((JDeclaredType) type).getArtificialRescues()) { if (artificial instanceof JReferenceType) { rescue((JReferenceType) artificial, true, true); - rescue(program.getLiteralClass((JReferenceType) artificial).getField()); } else if (artificial instanceof JVariable) { rescue((JVariable) artificial); } else if (artificial instanceof JMethod) {