Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B5D64200C6D for ; Sun, 7 May 2017 16:53:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B46EB160BB1; Sun, 7 May 2017 14:53:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 06CD2160B9A for ; Sun, 7 May 2017 16:53:08 +0200 (CEST) Received: (qmail 88274 invoked by uid 500); 7 May 2017 14:53:08 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 88264 invoked by uid 99); 7 May 2017 14:53:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 May 2017 14:53:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CC33BC067F for ; Sun, 7 May 2017 14:53:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -97.202 X-Spam-Level: X-Spam-Status: No, score=-97.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_MXURI=1.5, KAM_NUMSUBJECT=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id pBzajW3QtAxF for ; Sun, 7 May 2017 14:53:07 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 8C45F5FCFA for ; Sun, 7 May 2017 14:53:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B008EE01D8 for ; Sun, 7 May 2017 14:53:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1292E21B53 for ; Sun, 7 May 2017 14:53:04 +0000 (UTC) Date: Sun, 7 May 2017 14:53:04 +0000 (UTC) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DERBY-6932) Migrate finalization to the new Cleaner-based pattern introduced by JDK 9 build 167 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 07 May 2017 14:53:09 -0000 [ https://issues.apache.org/jira/browse/DERBY-6932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Hillegas updated DERBY-6932: --------------------------------- Attachment: ClientConnection.patch Attaching Peter Levart's solution for ClientConnection, also found at http://cr.openjdk.java.net/~plevart/misc/Cleaner/derby/ClientConnection_finalize2cleaner.patch > Migrate finalization to the new Cleaner-based pattern introduced by JDK 9 build 167 > ----------------------------------------------------------------------------------- > > Key: DERBY-6932 > URL: https://issues.apache.org/jira/browse/DERBY-6932 > Project: Derby > Issue Type: Improvement > Components: JDBC, Network Client, Network Server > Affects Versions: 10.14.0.0 > Reporter: Rick Hillegas > Attachments: ClientConnection.patch > > > As of build 167, JDK 9 deprecated the finalize() method. This produces deprecation warnings when compiling several Derby classes. See https://issues.apache.org/jira/browse/DERBY-6856?focusedCommentId=15990011&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15990011 . The recommended fix is a non-trivial mini-project, viz., to migrate to a new finalization pattern based on a newly added Java 9 class, java.lang.ref.Cleaner. Peter Levart kindly mocked up the fix for one affected Derby class (ClientConnection). See http://cr.openjdk.java.net/~plevart/misc/Cleaner/derby/ClientConnection_finalize2cleaner.patch > Further discussion can be found on the following open-jdk email thread: http://mail.openjdk.java.net/pipermail/core-libs-dev/2017-May/047417.html -- This message was sent by Atlassian JIRA (v6.3.15#6346)