I do not think that there is a search order in the sense that you have in mind. Rather, I believe this rule applies:
6.5.5 Value of type names The value of a name classified as TypeName is defined as follows.
6.5.5.1 , , . name - .
; . JLS 6.1. Shadowing (JLS 6.3.1), , ( ) , - . , " " (, import java.util.*; java.lang.*) .
, :
package foo;
import java.sql.Date;
import java.util.*;
import java.awt.*;
class Integer {
...
static class Integer {
...
List t = ...
}
}
, " -" (, import java.sql.Date; ), , , , "type-import" (JLS 6.3.1). , , :
import java.sql.Date;
import java.util.Date;