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

cleanup strategy of choosing the class to execute when a file contains multiple classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-5
    • 1.7.6, 1.8.0
    • None
    • None

    Description

      > Doit.groovy
      > ----
      > class Helper

      {...}

      > class Doit

      { ... }

      > ----
      >
      > Should it really make a difference whether Helper is
      > declared before or after Doit?

      Yes, I think that is buggy. There is also another problem if additional
      to these two classes is a script iside... you would get an error saying
      something about defining two classes of the same name. Anyway... can you
      fill a jira issue and assign it to me? I will fix that as soon as I have
      fixed my classloader problem here.

      bye blackdrag

      Attachments

        1. MultipleClasses.java
          0.2 kB
          Olivier Mengué

        Issue Links

          Activity

            People

              blackdrag Jochen Theodorou
              codevise Dierk König
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: