Skip to content

No error mark on Groovy code that does not compile #708

@mauromol

Description

@mauromol

Consider these Java classes:

package test35;
public class Base {
	public static class Nested {}
}
package test35;
public class Extension extends Base {
}

and this Groovy class:

package test35

import test35.Extension.Nested;

import groovy.transform.CompileStatic

@CompileStatic
class Test35 {
	Nested n
}

Although the equivalent Java code would be valid, the Groovy compiler rejects this code with unable to resolve class test35.Extension.Nested (since Nested is declared in Base, not Extension). However Greclipse does not complain at all, while I would expect an error mark on the import statement, to be consistent with the Groovy compiler.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions