-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #222 from trackjdk/REL1_5_STABLE/java9
Permits building the 1.5 series with Java 9 or newer JDKs, otherwise without radical change or loss of back compatibility. The Java 12 compiler can no longer generate code for targets older than Java 7, so if a PL/Java must be built to run in Java 6, the build must be done with a JDK no newer than 11. Addresses issue #212.
- Loading branch information
Showing
7 changed files
with
254 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 101 additions & 0 deletions
101
pljava-so/src/main/include/fallback/jdbc/java_sql_Types.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/* | ||
* FALLBACK COPY of machine-generated file from Java 8. | ||
* This file can be generated from the java.sql.Types class using the javah | ||
* utility present in JDK versions through 9. Java 10 eliminates the javah | ||
* utility, in favor of the -h option to javac, leaving no way to h a class, | ||
* like java.sql.Types, for which the source is not present. Hence, when | ||
* building on Java 10 or later, this fallback file will be used. As of Java 12, | ||
* there have been no changes to these constants since Java 8, and this file is | ||
* only needed by one PL/Java source file (type/Oid.c) that will probably go | ||
* away soon. Therefore, no more elaborate workaround seems necessary. | ||
*/ | ||
#include <jni.h> | ||
/* Header for class java_sql_Types */ | ||
|
||
#ifndef _Included_java_sql_Types | ||
#define _Included_java_sql_Types | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
#undef java_sql_Types_BIT | ||
#define java_sql_Types_BIT -7L | ||
#undef java_sql_Types_TINYINT | ||
#define java_sql_Types_TINYINT -6L | ||
#undef java_sql_Types_SMALLINT | ||
#define java_sql_Types_SMALLINT 5L | ||
#undef java_sql_Types_INTEGER | ||
#define java_sql_Types_INTEGER 4L | ||
#undef java_sql_Types_BIGINT | ||
#define java_sql_Types_BIGINT -5L | ||
#undef java_sql_Types_FLOAT | ||
#define java_sql_Types_FLOAT 6L | ||
#undef java_sql_Types_REAL | ||
#define java_sql_Types_REAL 7L | ||
#undef java_sql_Types_DOUBLE | ||
#define java_sql_Types_DOUBLE 8L | ||
#undef java_sql_Types_NUMERIC | ||
#define java_sql_Types_NUMERIC 2L | ||
#undef java_sql_Types_DECIMAL | ||
#define java_sql_Types_DECIMAL 3L | ||
#undef java_sql_Types_CHAR | ||
#define java_sql_Types_CHAR 1L | ||
#undef java_sql_Types_VARCHAR | ||
#define java_sql_Types_VARCHAR 12L | ||
#undef java_sql_Types_LONGVARCHAR | ||
#define java_sql_Types_LONGVARCHAR -1L | ||
#undef java_sql_Types_DATE | ||
#define java_sql_Types_DATE 91L | ||
#undef java_sql_Types_TIME | ||
#define java_sql_Types_TIME 92L | ||
#undef java_sql_Types_TIMESTAMP | ||
#define java_sql_Types_TIMESTAMP 93L | ||
#undef java_sql_Types_BINARY | ||
#define java_sql_Types_BINARY -2L | ||
#undef java_sql_Types_VARBINARY | ||
#define java_sql_Types_VARBINARY -3L | ||
#undef java_sql_Types_LONGVARBINARY | ||
#define java_sql_Types_LONGVARBINARY -4L | ||
#undef java_sql_Types_NULL | ||
#define java_sql_Types_NULL 0L | ||
#undef java_sql_Types_OTHER | ||
#define java_sql_Types_OTHER 1111L | ||
#undef java_sql_Types_JAVA_OBJECT | ||
#define java_sql_Types_JAVA_OBJECT 2000L | ||
#undef java_sql_Types_DISTINCT | ||
#define java_sql_Types_DISTINCT 2001L | ||
#undef java_sql_Types_STRUCT | ||
#define java_sql_Types_STRUCT 2002L | ||
#undef java_sql_Types_ARRAY | ||
#define java_sql_Types_ARRAY 2003L | ||
#undef java_sql_Types_BLOB | ||
#define java_sql_Types_BLOB 2004L | ||
#undef java_sql_Types_CLOB | ||
#define java_sql_Types_CLOB 2005L | ||
#undef java_sql_Types_REF | ||
#define java_sql_Types_REF 2006L | ||
#undef java_sql_Types_DATALINK | ||
#define java_sql_Types_DATALINK 70L | ||
#undef java_sql_Types_BOOLEAN | ||
#define java_sql_Types_BOOLEAN 16L | ||
#undef java_sql_Types_ROWID | ||
#define java_sql_Types_ROWID -8L | ||
#undef java_sql_Types_NCHAR | ||
#define java_sql_Types_NCHAR -15L | ||
#undef java_sql_Types_NVARCHAR | ||
#define java_sql_Types_NVARCHAR -9L | ||
#undef java_sql_Types_LONGNVARCHAR | ||
#define java_sql_Types_LONGNVARCHAR -16L | ||
#undef java_sql_Types_NCLOB | ||
#define java_sql_Types_NCLOB 2011L | ||
#undef java_sql_Types_SQLXML | ||
#define java_sql_Types_SQLXML 2009L | ||
#undef java_sql_Types_REF_CURSOR | ||
#define java_sql_Types_REF_CURSOR 2012L | ||
#undef java_sql_Types_TIME_WITH_TIMEZONE | ||
#define java_sql_Types_TIME_WITH_TIMEZONE 2013L | ||
#undef java_sql_Types_TIMESTAMP_WITH_TIMEZONE | ||
#define java_sql_Types_TIMESTAMP_WITH_TIMEZONE 2014L | ||
#ifdef __cplusplus | ||
} | ||
#endif | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters