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 Fri, 27 May 2016 01:55:13 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-05-af-roundingMode-Class.getDeclaredConstructor.diff

Attaching the next rev of the patch to handle deprecations introduced by build 118 of JDK
9: derby-6856-05-af-roundingMode-Class.getDeclaredConstructor.diff. This patch removes the
warnings caused by the usage of the now deprecated Class.newInstance() method. This patch
includes the RoundingMode changes made in the previous rev.

Thanks to Knut for recommending the use of Class.getDeclaredConstructor() rather than Class.getConstructor().

The changes to BaseMonitor caused a diff in MissingPermissionsTest. I have made a one line
change to that test, which eliminates the diff. I believe that the change is an improvement.
Previously, the test was checking for a success status on a failed process. Now the test checks
for a failure status when the process fails. The change in behavior is due to the second block
of changes in BaseMonitor, the ones beginning at line 777. But it wouldn't hurt for someone
else to double-check my reasoning.

I will re-run tests on JDK8 to see if something else pops up.

Touches the following files:

{noformat}
M       java/build/org/apache/derbyBuild/ClassSizeCrawler.java
M       java/tools/org/apache/derby/tools/ij.java
M       java/tools/org/apache/derby/tools/dblook.java
M       java/tools/org/apache/derby/impl/tools/ij/ConnectionEnv.java
M       java/tools/org/apache/derby/impl/tools/ij/xaHelper.java
M       java/tools/org/apache/derby/impl/tools/ij/util.java
M       java/tools/org/apache/derby/impl/tools/ij/ij.jj
M       java/tools/org/apache/derby/impl/tools/ij/utilMain.java
M       java/tools/org/apache/derby/impl/tools/planexporter/AccessDatabase.java
M       java/demo/toursdb/insertMaps.java
M       java/demo/nserverdemo/SimpleNetworkClientSample.java
M       java/demo/nserverdemo/SimpleNetworkServerSample.java
M       java/engine/org/apache/derby/iapi/services/cache/ClassSizeCatalog.java
M       java/engine/org/apache/derby/iapi/services/diag/DiagnosticUtil.java
M       java/engine/org/apache/derby/iapi/services/loader/InstanceGetter.java
M       java/engine/org/apache/derby/iapi/services/loader/ClassInfo.java
M       java/engine/org/apache/derby/iapi/types/SQLDecimal.java
M       java/engine/org/apache/derby/impl/sql/compile/MaxMinAggregateDefinition.java
M       java/engine/org/apache/derby/impl/sql/compile/TimeTypeCompiler.java
M       java/engine/org/apache/derby/impl/sql/compile/TimestampTypeCompiler.java
M       java/engine/org/apache/derby/impl/sql/compile/RefTypeCompiler.java
M       java/engine/org/apache/derby/impl/sql/compile/AggregateNode.java
M       java/engine/org/apache/derby/impl/sql/compile/BooleanTypeCompiler.java
M       java/engine/org/apache/derby/impl/sql/compile/SumAvgAggregateDefinition.java
M       java/engine/org/apache/derby/impl/sql/compile/OptimizerTracer.java
M       java/engine/org/apache/derby/impl/sql/compile/UserDefinedTypeCompiler.java
M       java/engine/org/apache/derby/impl/sql/compile/CLOBTypeCompiler.java
M       java/engine/org/apache/derby/impl/sql/compile/TypeCompilerFactoryImpl.java
M       java/engine/org/apache/derby/impl/sql/compile/UserAggregateDefinition.java
M       java/engine/org/apache/derby/impl/sql/compile/LOBTypeCompiler.java
M       java/engine/org/apache/derby/impl/sql/compile/DateTypeCompiler.java
M       java/engine/org/apache/derby/impl/sql/compile/CountAggregateDefinition.java
M       java/engine/org/apache/derby/impl/sql/compile/BitTypeCompiler.java
M       java/engine/org/apache/derby/impl/sql/compile/XMLTypeCompiler.java
M       java/engine/org/apache/derby/impl/sql/execute/GenericAggregator.java
M       java/engine/org/apache/derby/impl/sql/execute/UserDefinedAggregator.java
M       java/engine/org/apache/derby/impl/sql/catalog/SequenceUpdater.java
M       java/engine/org/apache/derby/impl/jdbc/authentication/SpecificAuthenticationServiceImpl.java
M       java/engine/org/apache/derby/impl/services/jce/JCECipherFactory.java
M       java/engine/org/apache/derby/impl/services/reflect/LoadedGeneratedClass.java
M       java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java
M       java/engine/org/apache/derby/impl/services/monitor/StorageFactoryService.java
M       java/engine/org/apache/derby/jdbc/ReferenceableDataSource.java
M       java/engine/org/apache/derby/catalog/Java5SystemProcedures.java
M       java/optional/org/apache/derby/optional/dump/DataFileVTI.java
M       java/drda/org/apache/derby/impl/drda/DecryptionManager.java
M       java/drda/org/apache/derby/impl/drda/XADatabase.java
M       java/drda/org/apache/derby/impl/drda/NetworkServerControlImpl.java
M       java/testing/org/apache/derbyTesting/unitTests/junit/MissingPermissionsTest.java
M       java/testing/org/apache/derbyTesting/unitTests/store/T_RawStoreFactory.java
M       java/testing/org/apache/derbyTesting/system/nstest/NsTest.java
M       java/testing/org/apache/derbyTesting/system/oe/client/Submitter.java
M       java/testing/org/apache/derbyTesting/system/mailjdbc/utils/DbTasks.java
M       java/testing/org/apache/derbyTesting/system/sttest/utils/CompressTable.java
M       java/testing/org/apache/derbyTesting/system/sttest/Sttest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/i18n/UrlLocaleTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/outparams30.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/ConcurrentImplicitCreateSchema.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/lang/GetPropertyInfoTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/DataSourceTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/store/InterruptResilienceTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/store/Beetle6038.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/store/BootAllTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/store/EncryptionAESTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DataSourceReferenceTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DataSourceSerializationTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/J2EEDataSourceTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/AutoloadTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DriverTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/InternationalConnectTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ClientConnectionPoolDataSourceTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DataSourceTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun_Local_3_p6.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun_Local_1Indexing.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/SimplePerfTest_Verify.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun_Local_3_p3.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun_Local_Encrypted_1.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun_Local_3_p4.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/SimplePerfTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/replicationTests/ReplicationRun_Local_3.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/tools/dblook_test.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/memory/ConnectionHandlingJunit.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ShutDownDBWhenNSShutsDownTest.java
M       java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/PrepareStatementTest.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/FileCompare.java
M       java/testing/org/apache/derbyTesting/functionTests/harness/shutdown.java
M       java/testing/org/apache/derbyTesting/functionTests/harness/jvm.java
M       java/testing/org/apache/derbyTesting/functionTests/harness/dbcleanup.java
M       java/testing/org/apache/derbyTesting/functionTests/testData/serializedDataSources/SerializeDataSources.java
M       java/testing/org/apache/derbyTesting/functionTests/util/corruptio/CorruptDiskStorageFactory.java
M       java/testing/org/apache/derbyTesting/functionTests/util/TestUtil.java
M       java/testing/org/apache/derbyTesting/junit/DriverManagerConnector.java
M       java/testing/org/apache/derbyTesting/junit/TestConfiguration.java
M       java/testing/org/apache/derbyTesting/junit/ConnectorSetup.java
M       java/testing/org/apache/derbyTesting/junit/JDBCDataSource.java
M       java/testing/org/apache/derbyTesting/perf/clients/Runner.java
M       java/client/org/apache/derby/jdbc/ClientDriver.java
M       java/client/org/apache/derby/client/ClientDataSourceFactory.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-6856-03-ab-autoboxingDeprecationWarnings.diff, derby-6856-04-aa-autoboxingDeprecationWarnings-part2.diff,
derby-6856-04-ab-autoboxingDeprecationWarnings-part2.diff, derby-6856-05-ac-roundingMode-Class.newInstance.diff,
derby-6856-05-af-roundingMode-Class.getDeclaredConstructor.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