db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Hillegas (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DERBY-6856) Make it possible to build Derby using JDK 9
Date Sun, 01 May 2016 22:14:12 GMT

     [ https://issues.apache.org/jira/browse/DERBY-6856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rick Hillegas updated DERBY-6856:
---------------------------------
    Attachment: derby-6856-03-aa-autoboxingDeprecationWarnings.diff

I tried to build Derby with the latest jigsaw build of JDK 9 (build 116): https://jdk9.java.net/jigsaw/.
This resulted in a huge spew of deprecation warnings. One cause of these warnings is that
the autoboxing constructors for the wrapper types have been deprecated.

I am attaching derby-6856-03-aa-autoboxingDeprecationWarnings.diff. This adjusts the code
to not use those constructors. Or, at least, this is the first tranche of changes for that
purpose. I will build and test this patch on Java 8.

Touches the following files:

{noformat}
M       java/testing/org/apache/derbyTesting/unitTests/harness/BasicUnitTestManager.java
M       java/testing/org/apache/derbyTesting/unitTests/services/T_User.java
M       java/testing/org/apache/derbyTesting/unitTests/services/T_Key.java
M       java/testing/org/apache/derbyTesting/unitTests/services/T_Diagnosticable.java
M       java/testing/org/apache/derbyTesting/unitTests/junit/FormatableBitSetTest.java
M       java/testing/org/apache/derbyTesting/unitTests/store/T_QualifierTest.java
M       java/testing/org/apache/derbyTesting/system/oe/test/OperationsTester.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/RSMDWrapper.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/UpdatableResultSetTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/RolesTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/AnsiTrimTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/GroupByTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/CollationTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/BooleanValuesTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/GeneratedColumnsTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/SGVetter.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/outparams.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/PredicatePushdownTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/TableFunctionTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/AutoIncrementTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/RoutineTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/UnaryArithmeticParameterTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/InPredicateTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/LangProcedureTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/userDefMethods.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/DynamicLikeOptimizationTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/TriggerTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/GroupByExpressionTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/RestrictedVTITest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/TimestampArithTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/UDTTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/ResultSetsFromPreparedStatementTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/UpdateCursorTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/SequenceGeneratorTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/AnsiSignatures.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/GrantRevokeDDLTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/StatementTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/BlobTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ClobTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/CallableStatementTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/TestJDBC40Exception.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/UnsupportedVetter.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/TestDbMetaData.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/PreparedStatementTest42.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMappingTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/J2EEDataSourceTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DatabaseMetaDataTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SURQueryMixTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ClosedObjectTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMetaDataJdbc30Test.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/BatchUpdateTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/StatementPoolingTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ProcedureTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DataSourceTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/memory/BlobMemTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/memory/ClobMemTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/compatibility/AbstractCompatibilityTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/compatibility/JDBCDriverTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ProtocolTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/PrepareStatementTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/NSSecurityMechanismTest.java
M       java/testing/org/apache/derbyTesting/functionTests/harness/BackgroundStreamDrainer.java
M       java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java
M       java/testing/org/apache/derbyTesting/functionTests/harness/RunTest.java
M       java/testing/org/apache/derbyTesting/functionTests/harness/JavaVersionHolder.java
M       java/testing/org/apache/derbyTesting/functionTests/harness/ProcessStreamResult.java
M       java/testing/org/apache/derbyTesting/functionTests/harness/jvm.java
M       java/testing/org/apache/derbyTesting/functionTests/util/DerbyJUnitTest.java
M       java/testing/org/apache/derbyTesting/functionTests/util/TestUtil.java
M       java/testing/org/apache/derbyTesting/functionTests/util/ManyMethods.java
M       java/testing/org/apache/derbyTesting/functionTests/util/ProcedureTest.java
M       java/testing/org/apache/derbyTesting/junit/JDBC.java
M       java/testing/org/apache/derbyTesting/junit/SpawnedProcess.java
M       java/testing/org/apache/derbyTesting/junit/JDBCDataSource.java
M       java/testing/org/apache/derbyTesting/junit/ConnectionPoolDataSourceConnector.java
M       java/client/org/apache/derby/client/am/ClientCallableStatement42.java
M       java/client/org/apache/derby/client/am/ClientPreparedStatement42.java
M       java/client/org/apache/derby/client/am/ClientPreparedStatement.java
{noformat}


> Make it possible to build Derby using JDK 9
> -------------------------------------------
>
>                 Key: DERBY-6856
>                 URL: https://issues.apache.org/jira/browse/DERBY-6856
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.12.1.1
>            Reporter: Rick Hillegas
>         Attachments: derby-6856-01-ab-addShardingKey.diff, derby-6856-01-ac-cleanup.diff,
derby-6856-02-aa-addShardingKey.diff, derby-6856-03-aa-autoboxingDeprecationWarnings.diff
>
>
> Derby can't be built with JDK 9. Java 9 introduces new JDBC classes like java.sql.ShardingKey
and methods which refer to these new classes.
> In addition, project Jigsaw has created a new way to name classes (see http://openjdk.java.net/jeps/220).
This breaks the PropertySetter build tool which we use so that old JVMs can compile Derby
and so that Derby can be compiled to run on old JVMs.
> It is likely that we will need to leave this issue open throughout the development cycle
of Java 9.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message