Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7-beta-1
-
Fix Version/s: 1.6.3, 1.7-beta-1
-
Component/s: Compiler
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
A.groovy:
package foo class A { static bar() {} }
B.groovy:
package foo import static A.* // compile error: unable to resolve class A class B { def baz() { bar() }
}
"import static foo.A.*" and "import static A.bar" work as expected.
Activity
Roshan Dawrani
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Roshan Dawrani [ roshandawrani ] |
Roshan Dawrani
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 1.6.3 [ 15251 ] | |
| Fix Version/s | 1.7-beta-1 [ 14014 ] |
Paul King
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
It does not really seem to be related to import static feature because even compilation of the following fails.
Pretty basic usage. Seems to be a serious bug!
It can't see groovy classes of the same package!
A.groovy
package foo class A {}B.groovy