Is there any hack for creating a wrapper for java.sql.Connection that works with JDBC 3 and 4 (Sun has added several methods and new types to the interface for JDBC 4) without resorting to something that fixes the source in time compilation?
My use case is that I need to create a library that works with Java 5 and 6, and I would really like to avoid creating two versions of it.
I have not tried it, but it can work.
Java 6. java.sql(NClob, SQLXML, SQLClientInfoException). , ( , Java 5), . Java 5 - Xbootclasspath, .
, , Java 5 6 ( ), , , , Java 6 , (. state )
Source: https://habr.com/ru/post/1711671/More articles:IPhone development using sprites - iphoneIs XML the best data exchange format when importing large amounts of data as a script routine in PHP? - xmlFlex: HSlider - Установить различные скины для разных пальцев? - flexКак определить отключенный цвет для заданного цвета в winforms? - .netОтправка JavaScript-массива в .ashx для обработки - javascriptDefining modules in GWT with non-default source directories - gwttwo regex patterns, can they be single? - javaIs there a way to override the Perl usage constant when testing a device? - unit-testingusing profiles in iPython and Django - pythonHow to erase content in a bitmap - c #All Articles