Uploaded image for project: 'Commons BeanUtils'
  1. Commons BeanUtils
  2. BEANUTILS-491

Tests fail on Oracle and IBM Java 8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Nightly Builds, 1.9.2
    • None
    • None
    • None

    Description

      On Oracle Java 8:

      Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00)
      Maven home: E:\Java\apache-maven-3.3.9\bin\..
      Java version: 1.8.0_91, vendor: Oracle Corporation
      Java home: C:\Program Files\Java\jdk1.8.0_91\jre
      Default locale: en_US, platform encoding: Cp1252
      OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
      

      I get:

      Failed tests:
        IndexedPropertyTestCase.testArrayListIndexedPropertyDescriptor:175 Not IndexedPropertyDescriptor expected:<class java.beans.IndexedPropertyDescriptor> but was:<class java.beans.PropertyDescriptor>
        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:<class java.beans.IndexedPropertyDescriptor> but was:<class java.beans.PropertyDescriptor>
        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:<java.[lang.String]> but was:<java.[util.List]>
        Jira422TestCase.testSecondChildBean:42 expected:<java.[lang.String]> but was:<java.[util.List]>
      
      Tests run: 1281, Failures: 10, Errors: 0, Skipped: 0
      

      All is well on Oracle Java 7:

      Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00)
      Maven home: E:\Java\apache-maven-3.3.9\bin\..
      Java version: 1.7.0_79, vendor: Oracle Corporation
      Java home: C:\Program Files\Java\jdk1.7.0_79\jre
      Default locale: en_US, platform encoding: Cp1252
      OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
      

      With IBM Java 8:

      Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00)
      Maven home: E:\Java\apache-maven-3.3.9\bin\..
      Java version: 1.8.0, vendor: IBM Corporation
      Java home: C:\eclipse\IBM\ibm_sdk80\jre
      Default locale: en_US, platform encoding: Cp1252
      OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
      

      I also get failures:

      Failed tests:
        IndexedPropertyTestCase.testArrayListIndexedPropertyDescriptor:175 Not IndexedPropertyDescriptor expected:<class java.beans.IndexedPropertyDescriptor> but was:<class java.beans.PropertyDescriptor>
        IndexedPropertyTestCase.testArrayListReadMethod:316 Threw exception java.lang.ClassCastException: java.beans.PropertyDescriptor incompatible with java.beans.IndexedPropertyDescriptor
        IndexedPropertyTestCase.testArrayListWriteMethod:330 Threw exception java.lang.ClassCastException: java.beans.PropertyDescriptor incompatible with java.beans.IndexedPropertyDescriptor
        IndexedPropertyTestCase.testListIndexedPropertyDescriptor:156 Not IndexedPropertyDescriptor expected:<class java.beans.IndexedPropertyDescriptor> but was:<class java.beans.PropertyDescriptor>
        IndexedPropertyTestCase.testListIndexedReadMethod:288 Threw exception java.lang.ClassCastException: java.beans.PropertyDescriptor incompatible with java.beans.IndexedPropertyDescriptor
        IndexedPropertyTestCase.testListIndexedWriteMethod:302 Threw exception java.lang.ClassCastException: java.beans.PropertyDescriptor incompatible with java.beans.IndexedPropertyDescriptor
        IndexedPropertyTestCase.testListReadMethod:256 Threw exception java.lang.ClassCastException: java.beans.PropertyDescriptor incompatible with java.beans.IndexedPropertyDescriptor
        IndexedPropertyTestCase.testListWriteMethod:274 Threw exception java.lang.ClassCastException: java.beans.PropertyDescriptor incompatible with java.beans.IndexedPropertyDescriptor
        Jira422TestCase.testRootBean:36 expected:<java.[lang.String]> but was:<java.[util.List]>
        Jira422TestCase.testSecondChildBean:42 expected:<java.[lang.String]> but was:<java.[util.List]>
      Tests in error:
        BeanificationTestCase.testMemoryLeak:261 OutOfMemory Java heap space
      
      Tests run: 1281, Failures: 10, Errors: 1, Skipped: 0
      

      Attachments

        Issue Links

          Activity

            People

              stain Stian Soiland-Reyes
              ggregory Gary D. Gregory
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: