groovy
  1. groovy
  2. GROOVY-3702

Groovlet: depending groovy files are not recompiled

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.4
    • Fix Version/s: 1.7-rc-1
    • Component/s: Compiler, Groovlet / GSP
    • Labels:
      None
    • Environment:
      Linux Ubuntu 8.04.3 LTS, Kernel 2.6.24-16-virtual, JVM 1.6.0_14-b08, Apache Tomcat 6.0.20
    • Number of attachments :
      1

      Description

      If you change file b.groovy which is used by a.groovy, file b.groovy is not recompiled. Both files are in the same (root) directory of a web application.

      Example:
      a.groovy

      println "<html><body>";
      println "a: test<br/>";
      def b = new b();
      println b.test();
      println "</body></html>";
      

      b.groovy

      public class b {
          def String test() {
              return "b: test<br/>";
          }
      }
      

      Calling a.groovy by a URL like this http://localhost:8080/groovy/a.groovy will show this output:

      a: test
      b: test
      

      If in file b.groovy the return value is changed to "b: test2<br/>" you will not see the change when calling a.groovy again.

        Issue Links

          Activity

          Hide
          Roshan Dawrani added a comment -

          Fixed.

          Show
          Roshan Dawrani added a comment - Fixed.
          Hide
          Roshan Dawrani added a comment -

          Sorry. Wasn't trying to irritate you

          Show
          Roshan Dawrani added a comment - Sorry. Wasn't trying to irritate you
          Hide
          Guillaume Laforge added a comment -

          You're never irritating me, don't worry!
          My answers were probably not clearly explained, sorry if I confused you in any way.

          Show
          Guillaume Laforge added a comment - You're never irritating me, don't worry! My answers were probably not clearly explained, sorry if I confused you in any way.
          Hide
          Roshan Dawrani added a comment -

          Guillaume, now the issue that you mailed (about groovlet re-loading with Jetty 7) is also taken care of.

          All previous 3 JIRAs + Jetty 7 issue from your mail - all I re-tested with Jetty 7, Jetty 6 and Tomcat 6.

          Show
          Roshan Dawrani added a comment - Guillaume, now the issue that you mailed (about groovlet re-loading with Jetty 7) is also taken care of. All previous 3 JIRAs + Jetty 7 issue from your mail - all I re-tested with Jetty 7, Jetty 6 and Tomcat 6.
          Hide
          Guillaume Laforge added a comment -

          Excellent, Roshan.
          I think these were the remaining issues we had with our new GSE implementation and the related usage of it with our servlets.
          So we're all good now.
          Thanks a lot for your excellent work, as usual.

          Show
          Guillaume Laforge added a comment - Excellent, Roshan. I think these were the remaining issues we had with our new GSE implementation and the related usage of it with our servlets. So we're all good now. Thanks a lot for your excellent work, as usual.

            People

            • Assignee:
              Roshan Dawrani
              Reporter:
              Guido Schoepp
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: