Merging releases/1.6 into trunk.
svn merge -r4657:4658 https://google-web-toolkit.googlecode.com/svn/releases/1.6 .
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@4662 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java b/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java
index ebc2778..bb44a7d 100644
--- a/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java
+++ b/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java
@@ -390,10 +390,10 @@
/**
* Checks if the class names is generated. Accepts any classes whose names
- * match .+$\d.* (handling named classes within anonymous classes and
- * multiple named classes of the same name in a class, but in different
- * methods). Checks if the class or any of its enclosing classes are anonymous
- * or synthetic.
+ * match .+$\d.* (handling named classes within anonymous classes and multiple
+ * named classes of the same name in a class, but in different methods).
+ * Checks if the class or any of its enclosing classes are anonymous or
+ * synthetic.
* <p>
* If new compilers have different conventions for anonymous and synthetic
* classes, this code needs to be updated.
@@ -754,9 +754,9 @@
*/
List<JsniMethod> jsniMethods = (unit == null) ? null
: unit.getJsniMethods();
- if (unit != null && !unit.isSuperSource() && unit.hasAnonymousClasses()
- && jsniMethods != null && jsniMethods.size() > 0
- && !unit.createdClassMapping()) {
+ if (unit != null && !unit.isSuperSource() && !unit.isGenerated()
+ && unit.hasAnonymousClasses() && jsniMethods != null
+ && jsniMethods.size() > 0 && !unit.createdClassMapping()) {
if (!unit.constructAnonymousClassMappings(logger)) {
logger.log(TreeLogger.ERROR,
"Our heuristic for mapping anonymous classes between compilers "
diff --git a/user/build.xml b/user/build.xml
index f18d8f7..3931c74 100755
--- a/user/build.xml
+++ b/user/build.xml
@@ -2,6 +2,7 @@
<property name="gwt.root" location=".." />
<property name="project.tail" value="user" />
<property name="test.args" value="" />
+ <property name="gwt.junit.emmatestcase.includes" value="**/*Suite.class,com/google/gwt/dev/jjs/test/*Test.class"/>
<import file="${gwt.root}/common.ant.xml" />
<!--
@@ -14,7 +15,7 @@
includes="**/EmmaClassLoadingTest.class" />
<fileset id="default.hosted.emma.tests" dir="${javac.junit.out}"
- excludes="**/CoverageTest.class" includes="**/*Test.class" />
+ excludes="**/CoverageTest.class,**/CompilerSuite.class" includes="${gwt.junit.emmatestcase.includes}" />
<!-- everything succeeds except CoverageTest.java. It fails due to a javac bug in sun/OpenJDK's Java. See the file contents for details -->
<!--