[pkg-java] r18830 - trunk/libgroboutils-java/debian/patches
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Wed Sep 2 09:01:02 UTC 2015
Author: ebourg-guest
Date: 2015-09-02 09:01:02 +0000 (Wed, 02 Sep 2015)
New Revision: 18830
Modified:
trunk/libgroboutils-java/debian/patches/07_fix_javac_crash.diff
Log:
Additional changes to work around the javac bug with 'enum' identifiers
Modified: trunk/libgroboutils-java/debian/patches/07_fix_javac_crash.diff
===================================================================
--- trunk/libgroboutils-java/debian/patches/07_fix_javac_crash.diff 2015-09-02 08:26:15 UTC (rev 18829)
+++ trunk/libgroboutils-java/debian/patches/07_fix_javac_crash.diff 2015-09-02 09:01:02 UTC (rev 18830)
@@ -32,3 +32,67 @@
loadTestSuite( c, tcc );
}
+--- a/testing-autodoc/sources/dev/net/sourceforge/groboutils/autodoc/v1/junit/AutoDocJUnitListener.java
++++ b/testing-autodoc/sources/dev/net/sourceforge/groboutils/autodoc/v1/junit/AutoDocJUnitListener.java
+@@ -131,9 +131,9 @@
+ */
+ public void addError(Test test, Throwable t)
+ {
+- for (Enumeration enum = getListeners(); enum.hasMoreElements();)
++ for (Enumeration e = getListeners(); e.hasMoreElements();)
+ {
+- TestListener tl = (TestListener)enum.nextElement();
++ TestListener tl = (TestListener)e.nextElement();
+ tl.addError( test, t );
+ }
+ }
+@@ -143,9 +143,9 @@
+ */
+ public void addFailure(Test test, AssertionFailedError t)
+ {
+- for (Enumeration enum = getListeners(); enum.hasMoreElements();)
++ for (Enumeration e = getListeners(); e.hasMoreElements();)
+ {
+- TestListener tl = (TestListener)enum.nextElement();
++ TestListener tl = (TestListener)e.nextElement();
+ tl.addFailure( test, t );
+ }
+ }
+@@ -156,9 +156,9 @@
+ */
+ public void endTest(Test test)
+ {
+- for (Enumeration enum = getListeners(); enum.hasMoreElements();)
++ for (Enumeration e = getListeners(); e.hasMoreElements();)
+ {
+- TestListener tl = (TestListener)enum.nextElement();
++ TestListener tl = (TestListener)e.nextElement();
+ tl.endTest( test );
+ }
+ }
+@@ -169,9 +169,9 @@
+ */
+ public void startTest(Test test)
+ {
+- for (Enumeration enum = getListeners(); enum.hasMoreElements();)
++ for (Enumeration e = getListeners(); e.hasMoreElements();)
+ {
+- TestListener tl = (TestListener)enum.nextElement();
++ TestListener tl = (TestListener)e.nextElement();
+ tl.startTest( test );
+ }
+ }
+@@ -218,10 +218,10 @@
+ protected static TestListenerFactory[] getFactories()
+ {
+ Vector v = new Vector();
+- Enumeration enum = getFactoryStore().getSingletons();
+- while (enum.hasMoreElements())
++ Enumeration e = getFactoryStore().getSingletons();
++ while (e.hasMoreElements())
+ {
+- v.addElement( enum.nextElement() );
++ v.addElement( e.nextElement() );
+ }
+
+ TestListenerFactory[] tlf = new TestListenerFactory[ v.size() ];
More information about the pkg-java-commits
mailing list