Re: Ambiguous class

2000-05-29 Thread Weiqi Gao
--- Nathan Meyers <[EMAIL PROTECTED]> wrote: > "±è¿µºÀ" wrote: > > > [Image]Hi, > > > > I import java.util.* and java.sql.*; > > > > And I use Date class.. > > > > At Compile time, error is. > > > > error is below.Can anybody help me. > > > > Ambiguous class: java.util.Date and java.sql.Date > >

Re: Ambiguous class

2000-05-29 Thread peter johnson
Depending on which one you actually want, declare either private java.util.Date[] getAbsenceDate(String condition) { or private java.sql.Date[] getAbsenceDate(String condition) { That is, use the fully qualified pathname to resolve the ambiguity. "±è¿µºÀ" wrote: > [Image]Hi, > > I import java.u

Re: Ambiguous class

2000-05-29 Thread peter johnson
Depending on which one you actually want, declare either private java.util.Date[] getAbsenceDate(String condition) { or private java.sql.Date[] getAbsenceDate(String condition) { That is, use the fully qualified pathname to resolve the ambiguity. "±è¿µºÀ" wrote: > [Image]Hi, > > I import java.u

Re: Ambiguous class

2000-05-28 Thread Nathan Meyers
"±è¿µºÀ" wrote: Hi, I import java.util.* and java.sql.*; And I use Date class.. At Compile time, error is. error is below.Can anybody help me. Ambiguous class: java.util.Date and java.sql.Date private Date[] getAbsenceDate(String condition) { Because you import two packages with a "Date" class, y