Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: 1.3.3
    • Labels:
      None
    • Environment:

      Description

      If I build trunk with Java 8, I get:

      Tests in error:
        HtmlEmailTest.initializationError » IllegalState Failed to transform class wit...
        ImageHtmlEmailTest.initializationError » IllegalState Failed to transform clas...
        MultiPartEmailTest.initializationError » IllegalState Failed to transform clas...
      
      Tests run: 125, Failures: 0, Errors: 3, Skipped: 1
      

      With:

      Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e; 2014-06-17T09:51:42-04:00)
      Maven home: C:\Java\apache-maven-3.2.2
      Java version: 1.8.0_05, vendor: Oracle Corporation
      Java home: C:\Program Files\Java\jdk1.8.0_05\jre
      Default locale: en_US, platform encoding: Cp1252
      OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
      

      With Java 7, all is well:

      Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e; 2014-06-17T09:51:42-04:00)
      Maven home: C:\Java\apache-maven-3.2.2
      Java version: 1.7.0_60, vendor: Oracle Corporation
      Java home: C:\Program Files\Java\jdk1.7.0_60\jre
      Default locale: en_US, platform encoding: Cp1252
      OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
      

        Activity

        Hide
        Thomas Neidhart added a comment - - edited

        Updating powermock/easymock like this solves the problem for Java 8:

                 <dependency>
                     <groupId>org.powermock</groupId>
                     <artifactId>powermock-module-junit4</artifactId>
        -            <version>1.4.12</version>
        +            <version>1.5.5</version>
                     <scope>test</scope>
                 </dependency>
                 <dependency>
                     <groupId>org.powermock</groupId>
                     <artifactId>powermock-api-easymock</artifactId>
        -            <version>1.4.12</version>
        +            <version>1.5.5</version>
                     <scope>test</scope>
                 </dependency>
                 <dependency>
                     <groupId>org.easymock</groupId>
                     <artifactId>easymock</artifactId>
        -            <version>3.1</version>
        +            <version>3.2</version>
                     <scope>test</scope>
                 </dependency>
        

        I tested it with Java 6 - 8, but this will not work for Java 5 as then we have unsupported class versions in the powermock jars.

        Show
        Thomas Neidhart added a comment - - edited Updating powermock/easymock like this solves the problem for Java 8: <dependency> <groupId>org.powermock</groupId> <artifactId>powermock-module-junit4</artifactId> - <version>1.4.12</version> + <version>1.5.5</version> <scope>test</scope> </dependency> <dependency> <groupId>org.powermock</groupId> <artifactId>powermock-api-easymock</artifactId> - <version>1.4.12</version> + <version>1.5.5</version> <scope>test</scope> </dependency> <dependency> <groupId>org.easymock</groupId> <artifactId>easymock</artifactId> - <version>3.1</version> + <version>3.2</version> <scope>test</scope> </dependency> I tested it with Java 6 - 8, but this will not work for Java 5 as then we have unsupported class versions in the powermock jars.
        Hide
        Thomas Neidhart added a comment -

        Fixed in r1607013.

        By using a specific test profile, the easymock/powermock version is changed depending on the java environment.

        Show
        Thomas Neidhart added a comment - Fixed in r1607013. By using a specific test profile, the easymock/powermock version is changed depending on the java environment.

          People

          • Assignee:
            Unassigned
            Reporter:
            Gary Gregory
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development