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

Groovy-classloader: class in same .groovy file not found when used within a package

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.0-JSR-3
    • 1.0-JSR-4
    • None
    • None

    Description

      the following code is in a subdir 'business' of a dir that's on the classpath


      package business

      class Vendor {
      public String name
      public String product
      public Address address = new Address()
      }
      class Address {
      public String street, town, state
      public int zip
      }


      calling code:


      import business.*
      new Vendor()


      error message:


      java.lang.NoClassDefFoundError: Address
      at business.Vendor.class$(Vendor.groovy)
      at business.Vendor.<init>(Vendor.groovy:6)


      This code has worked since June 26th 2005

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: