• Subject: RE: JDBC Problems
  • From: "Joe Teff" <JoeTeff@xxxxxxxxxxxxx>
  • Date: Tue, 30 Jan 2001 19:07:52 -0600
  • Importance: Normal

Casting really just tells the compiler that you know what
you are doing and it should just let you do it. If, however,
the object that you are assigning to a Connection is not really
a Connection, then you will get a ClassCastException. I
think you have just pushed your error to runtime instead of
compile time.

Joe Teff

-----Original Message-----
From: owner-java400-l@midrange.com
[mailto:owner-java400-l@midrange.com]On Behalf Of Maarten Vries, de
Sent: Tuesday, January 30, 2001 4:54 PM
To: JAVA400-L@midrange.com
Subject: Re: JDBC Problems

Indeed, the error I am getting is at compile time.
Your statement seems to work fine altough I have to make same changes to the
rest of the program.
It is strange, because I followed the book.
Even when Dave is able to compile it.
Message for Dave, the longshots did not work either.

Can you tell me why I have to put (Connection) in front of the

(I am still a newbie and Dutch to, so sorry if the language is not totally

| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.