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 C604A200B8C for ; Mon, 12 Sep 2016 17:37:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C47EF160AB2; Mon, 12 Sep 2016 15:37:23 +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 170DC160AB8 for ; Mon, 12 Sep 2016 17:37:22 +0200 (CEST) Received: (qmail 176 invoked by uid 500); 12 Sep 2016 15:37:22 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 136 invoked by uid 99); 12 Sep 2016 15:37:22 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2016 15:37:22 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DA7E32C1B80 for ; Mon, 12 Sep 2016 15:37:21 +0000 (UTC) Date: Mon, 12 Sep 2016 15:37:21 +0000 (UTC) From: "Stian Soiland-Reyes (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (BEANUTILS-492) IndexedPropertyDescriptor not supported for List in Java 8 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 12 Sep 2016 15:37:23 -0000 [ https://issues.apache.org/jira/browse/BEANUTILS-492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stian Soiland-Reyes resolved BEANUTILS-492. ------------------------------------------- Resolution: Fixed I've updated the tests to test for Java 7 vs Java 8 behaviour. I've also updated JAvadoc on getPropertyType() and getPropertyDescriptor() to also include the legacy behaviour on collections. > IndexedPropertyDescriptor not supported for List in Java 8 > ---------------------------------------------------------- > > Key: BEANUTILS-492 > URL: https://issues.apache.org/jira/browse/BEANUTILS-492 > Project: Commons BeanUtils > Issue Type: Bug > Affects Versions: 1.9.3 > Environment: maven:3.3-jdk8 > Reporter: Stian Soiland-Reyes > Assignee: Stian Soiland-Reyes > Priority: Critical > Fix For: 1.9.3 > > > With MAven 3.3 and JDK 8, Common Beanutils fails: > https://builds.apache.org/view/Apache%20Commons/job/Commons%20Beanutils%20docker/4/console > {code} > Failed tests: > IndexedPropertyTestCase.testArrayListIndexedPropertyDescriptor:175 Not IndexedPropertyDescriptor expected: but was: > IndexedPropertyTestCase.testArrayListReadMethod:316 Threw exception java.lang.ClassCastException: java.beans.PropertyDescriptor cannot be cast to java.beans.IndexedPropertyDescriptor > IndexedPropertyTestCase.testArrayListWriteMethod:330 Threw exception java.lang.ClassCastException: java.beans.PropertyDescriptor cannot be cast to java.beans.IndexedPropertyDescriptor > IndexedPropertyTestCase.testListIndexedPropertyDescriptor:156 Not IndexedPropertyDescriptor expected: but was: > IndexedPropertyTestCase.testListIndexedReadMethod:288 Threw exception java.lang.ClassCastException: java.beans.PropertyDescriptor cannot be cast to java.beans.IndexedPropertyDescriptor > IndexedPropertyTestCase.testListIndexedWriteMethod:302 Threw exception java.lang.ClassCastException: java.beans.PropertyDescriptor cannot be cast to java.beans.IndexedPropertyDescriptor > IndexedPropertyTestCase.testListReadMethod:256 Threw exception java.lang.ClassCastException: java.beans.PropertyDescriptor cannot be cast to java.beans.IndexedPropertyDescriptor > IndexedPropertyTestCase.testListWriteMethod:274 Threw exception java.lang.ClassCastException: java.beans.PropertyDescriptor cannot be cast to java.beans.IndexedPropertyDescriptor > Jira422TestCase.testRootBean:36 expected: but was: > Jira422TestCase.testSecondChildBean:42 expected: but was: > {code} > It seems some assumptions about java.beans.PropertyDescriptor implementation are no longer true in JDK 8. -- This message was sent by Atlassian JIRA (v6.3.4#6332)