Re: [h2] Problem updating from 1.4.200 to 2.1.214
I don't know how that code could ever have compiled. A JdbcDataSource is a supplier of java.sql.Connection objects, it is not a subclass (or a superclass) of Connection. -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/h2-database/088d6b22-db4f-8840-4dea-1673a91e4cf6%40gmail.com.
Re: [h2] Problem updating from 1.4.200 to 2.1.214
Greetings, maybe compile H2 from source by yourself with a JDK 8, just to prove any doubts. Best regards Andreas On Tue, 2023-05-23 at 14:51 +0530, Vardhan Belide wrote: > Hi, > I am trying to update from 1.4.200 to 2.1.214. I am using Java 8 in > my project. I have the following piece of code > > private final Connection decorated; > if(decorated instanceOf JdbcDataSource) > { > } > > I am getting the error message incompatible types: > java.sql.Connection cannot be converted to > org.h2.jdbcx.JdbcDataSource. I was not getting the compilation error > with the previous version of h2. > > Any suggestions? > > Thanks > Vardhan > -- > You received this message because you are subscribed to the Google > Groups "H2 Database" group. > To unsubscribe from this group and stop receiving emails from it, > send an email to h2-database+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/h2-database/CAF11HREa73g0AQ_oEMYB7%3DqSfOpuKrowMZW5khTgRiTyOYC4Bg%40mail.gmail.com > . -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/h2-database/746dfa3928a83d6ac73a3abc4014cc14af1d7573.camel%40manticore-projects.com.
[h2] Problem updating from 1.4.200 to 2.1.214
Hi, I am trying to update from 1.4.200 to 2.1.214. I am using Java 8 in my project. I have the following piece of code private final Connection decorated; if(decorated instanceOf JdbcDataSource) { } I am getting the error message incompatible types: java.sql.Connection cannot be converted to org.h2.jdbcx.JdbcDataSource. I was not getting the compilation error with the previous version of h2. Any suggestions? Thanks Vardhan -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/h2-database/CAF11HREa73g0AQ_oEMYB7%3DqSfOpuKrowMZW5khTgRiTyOYC4Bg%40mail.gmail.com.