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

import com.foo.SomeClass.* does not work properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Won't Fix
    • 1.0-JSR-3
    • 1.0-JSR-4
    • None
    • None

    Description

      I have a class as bellow:

      package com.foo;
      class SomeClass {
      public static boolean isA(Class type)

      { return true; }

      }

      and a groovy file as:
      import com.foo.SomeClass.*;

      def x = isA(Double.class);

      When it compiles I get:
      No signature of method TheGroovyWrittenClass.isA() is applicable for argument types: (java.lang.Class) values:

      {class java.lang.Double}

      If I don't import as .* it works.

      Attachments

        Activity

          People

            Unassigned Unassigned
            juzepeleteiro Jose Luiz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: