History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GROOVY-2522
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Danno Ferrin
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

Groovy compiler does not reject ambiguous imports

Created: 19/Jan/08 05:02 PM   Updated: 19/Jan/08 05:02 PM
Component/s: command line processing
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide
The following script should not compile because List could refer to java.util.List or java.awt.List:
import java.util.*;
import java.awt.*;

public class AmbiguousImport {
    public static void main(String[] args)  {
        System.out.println (List.class);
    }
}


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.