This is an automated email from the ASF dual-hosted git repository.

benw pushed a commit to branch javax
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git

commit 0d18da2e0abfea9db636a32a8f2df07c210d950a
Author: Ben Weidig <[email protected]>
AuthorDate: Sat Apr 4 16:45:28 2026 +0200

    TAP5-2821: ReloadSpec write bytecode first, touch after
---
 .../src/test/groovy/ioc/specs/ReloadSpec.groovy    | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/tapestry-ioc/src/test/groovy/ioc/specs/ReloadSpec.groovy 
b/tapestry-ioc/src/test/groovy/ioc/specs/ReloadSpec.groovy
index 3221cafc0..e5ddb3106 100644
--- a/tapestry-ioc/src/test/groovy/ioc/specs/ReloadSpec.groovy
+++ b/tapestry-ioc/src/test/groovy/ioc/specs/ReloadSpec.groovy
@@ -149,10 +149,10 @@ class ReloadSpec extends Specification {
 
     update()
 
-    touch classFile
-
     createImplementationClass "updated"
 
+    touch classFile
+
     then:
 
     // Changes do not take effect until after update check
@@ -207,10 +207,10 @@ class ReloadSpec extends Specification {
 
     when:
 
-    touch(new File(pathForInternalName(baseClassInternalName)))
-
     createImplementationClass BASE_CLASS, "updated from base"
 
+    touch(new File(pathForInternalName(baseClassInternalName)))
+
     update()
 
     then:
@@ -267,10 +267,10 @@ class ReloadSpec extends Specification {
 
     when:
 
-    touch classFile
-
     createImplementationClass "updated proxy"
 
+    touch classFile
+
     update()
 
     then:
@@ -279,10 +279,10 @@ class ReloadSpec extends Specification {
 
     when:
 
-    touch classFile
-
     createImplementationClass "re-updated proxy"
 
+    touch classFile
+
     update()
 
     then:
@@ -300,10 +300,10 @@ class ReloadSpec extends Specification {
 
     ReloadableService reloadable = getService ReloadableService
 
-    touch classFile
-
     createInvalidImplementationClass()
 
+    touch classFile
+
     update()
 
     reloadable.getStatus()
@@ -398,7 +398,7 @@ class ReloadSpec extends Specification {
       // catches the change to the file. The Ubuntu CI Server appears
       // to need longer waits.
 
-      Thread.sleep 50 * (2 ^ index++)
+      Thread.sleep 50 * (2 ** index++)
     }
   }
 }

Reply via email to