Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-1273

Unable to reference objects in java src from scala src

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 0.9-rc-3, 0.9
    • Fix Version/s: 0.9.1

      Description

      Unable to reference a java object in package a.b.c from a scala object in package x.y.z.

      Output from trying to do "gradle clean assemble" with the attached sample project:

      :clean
      :compileJava
      :compileScala
      /home/jwu/projects/scala-error/src/main/scala/org/example/ThingUser.scala:3: error: thing is not a member of org.example
      import org.example.thing
      ^
      /home/jwu/projects/scala-error/src/main/scala/org/example/ThingUser.scala:5: error: not found: type Thing
      class ThingUser(thing : Thing)

        Attachments

          Activity

            People

            Assignee:
            hans_d Hans Dockter
            Reporter:
            spoon00 Jacob Wu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: