Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3702

Groovlet: depending groovy files are not recompiled

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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

      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.

        Attachments

        1. 3702_v17x.txt
          2 kB
          Roshan Dawrani

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: