Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C1EF114AC for ; Mon, 30 Jun 2014 16:28:25 +0000 (UTC) Received: (qmail 80888 invoked by uid 500); 30 Jun 2014 16:28:25 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 80797 invoked by uid 500); 30 Jun 2014 16:28:25 -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 80742 invoked by uid 99); 30 Jun 2014 16:28:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jun 2014 16:28:25 +0000 Date: Mon, 30 Jun 2014 16:28:25 +0000 (UTC) From: "Thomas Neidhart (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (EMAIL-140) Cannot build with Java 8 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/EMAIL-140?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D14047= 814#comment-14047814 ]=20 Thomas Neidhart commented on EMAIL-140: --------------------------------------- Updating powermock/easymock like this solves the problem for Java 8: {noformat} org.powermock powermock-module-junit4 - 1.4.12 + 1.5.5 test org.powermock powermock-api-easymock - 1.4.12 + 1.5.5 test org.easymock easymock - 3.1 + 3.2 test {noformat} I tested it with Java 6 - 8, but this will not work for Java 5 as then we h= ave unsupported class versions in the easymock jars. > Cannot build with Java 8 > ------------------------ > > Key: EMAIL-140 > URL: https://issues.apache.org/jira/browse/EMAIL-140 > Project: Commons Email > Issue Type: Bug > Affects Versions: Nightly Builds > Environment: Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb659= 4181933e; 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" > Reporter: Gary Gregory > > If I build trunk with Java 8, I get: > {noformat} > Tests in error: > HtmlEmailTest.initializationError =C2=BB IllegalState Failed to transfo= rm class wit... > ImageHtmlEmailTest.initializationError =C2=BB IllegalState Failed to tr= ansform clas... > MultiPartEmailTest.initializationError =C2=BB IllegalState Failed to tr= ansform clas... > Tests run: 125, Failures: 0, Errors: 3, Skipped: 1 > {noformat} > With: > {noformat} > Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e; 2014-06-17T= 09: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" > {noformat} > With Java 7, all is well: > {noformat} > Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e; 2014-06-17T= 09: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" > {noformat} -- This message was sent by Atlassian JIRA (v6.2#6252)