Groovy
  1. Groovy
  2. GROOVY-3702

Groovlet: depending groovy files are not recompiled

    Details

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

      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.

      1. 3702_v17x.txt
        2 kB
        Roshan Dawrani

        Issue Links

          Activity

          Guido Schoepp created issue -
          Guillaume Delcroix made changes -
          Field Original Value New Value
          Fix Version/s 1.7-rc-1 [ 14666 ]
          Paul King made changes -
          Link This issue depends upon GROOVY-2212 [ GROOVY-2212 ]
          Paul King made changes -
          Link This issue is related to GROOVY-2212 [ GROOVY-2212 ]
          Paul King made changes -
          Link This issue depends upon GROOVY-2212 [ GROOVY-2212 ]
          Roshan Dawrani made changes -
          Attachment 3702_v17x.txt [ 45962 ]
          Roshan Dawrani made changes -
          Assignee Roshan Dawrani [ roshandawrani ]
          Roshan Dawrani made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Paul King made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
          Mark Thomas made changes -
          Workflow jira [ 12732685 ] Default workflow, editable Closed status [ 12744285 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
          Mark Thomas made changes -
          Workflow jira [ 12970270 ] Default workflow, editable Closed status [ 12978018 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development