You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Gary Gregory <ga...@gmail.com> on 2014/06/30 14:47:03 UTC
[email] Java 8 test errors
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
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"
Mon 06/30/2014- 8:46:17.47 C:\vcs\svn\apache\commons\trunks-proper\email>
Thoughts?
Gary
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
Re: [email] Java 8 test errors
Posted by Benedikt Ritter <br...@apache.org>.
Happy I could help :-)
2014-07-01 10:22 GMT+02:00 Thomas Neidhart <th...@gmail.com>:
> Hi Benedikt,
>
> thanks for the hint, using a profile to detect Java 8 and use a different
> easymock/powermock version worked.
>
> Thomas
>
>
> On Tue, Jul 1, 2014 at 8:30 AM, Benedikt Ritter <br...@apache.org>
> wrote:
>
> > 2014-06-30 21:44 GMT+02:00 Thomas Neidhart <th...@gmail.com>:
> >
> > > On 06/30/2014 04:27 PM, Thomas Neidhart wrote:
> > > > On 06/30/2014 02:47 PM, Gary Gregory wrote:
> > > >> 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
> > > >>
> > > >> 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"
> > > >> Mon 06/30/2014- 8:46:17.47
> > > C:\vcs\svn\apache\commons\trunks-proper\email>
> > > >>
> > > >> Thoughts?
> > > >
> > > > has to do with powermock. Need to check if a more recent version
> solves
> > > > the issue.
> > >
> > > it looks like there is no way to support both, Java 5 and Java 8 with
> > > the same set of jars.
> > >
> >
> > How about introducing profiles that pull in different versions of
> > powermock, based on the jdk version we're building with?
> >
> >
> > >
> > > The reason powermock was added was to avoid a potential test failure in
> > > some environments when an invalid url was resolved to something valid
> > > (and to prevent -1 at release votes because of this).
> > >
> > > The test was adapted to mock an jdk class to always throw an exception
> > > for these tests, but afaik the providers where this happened have
> > > changed their setup and it should work fine now. Maybe we should remove
> > > the dependency again and note this potential problem somewhere.
> > >
> > > Thomas
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> > > For additional commands, e-mail: dev-help@commons.apache.org
> > >
> > >
> >
> >
> > --
> > http://people.apache.org/~britter/
> > http://www.systemoutprintln.de/
> > http://twitter.com/BenediktRitter
> > http://github.com/britter
> >
>
--
http://people.apache.org/~britter/
http://www.systemoutprintln.de/
http://twitter.com/BenediktRitter
http://github.com/britter
Re: [email] Java 8 test errors
Posted by Thomas Neidhart <th...@gmail.com>.
Hi Benedikt,
thanks for the hint, using a profile to detect Java 8 and use a different
easymock/powermock version worked.
Thomas
On Tue, Jul 1, 2014 at 8:30 AM, Benedikt Ritter <br...@apache.org> wrote:
> 2014-06-30 21:44 GMT+02:00 Thomas Neidhart <th...@gmail.com>:
>
> > On 06/30/2014 04:27 PM, Thomas Neidhart wrote:
> > > On 06/30/2014 02:47 PM, Gary Gregory wrote:
> > >> 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
> > >>
> > >> 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"
> > >> Mon 06/30/2014- 8:46:17.47
> > C:\vcs\svn\apache\commons\trunks-proper\email>
> > >>
> > >> Thoughts?
> > >
> > > has to do with powermock. Need to check if a more recent version solves
> > > the issue.
> >
> > it looks like there is no way to support both, Java 5 and Java 8 with
> > the same set of jars.
> >
>
> How about introducing profiles that pull in different versions of
> powermock, based on the jdk version we're building with?
>
>
> >
> > The reason powermock was added was to avoid a potential test failure in
> > some environments when an invalid url was resolved to something valid
> > (and to prevent -1 at release votes because of this).
> >
> > The test was adapted to mock an jdk class to always throw an exception
> > for these tests, but afaik the providers where this happened have
> > changed their setup and it should work fine now. Maybe we should remove
> > the dependency again and note this potential problem somewhere.
> >
> > Thomas
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> > For additional commands, e-mail: dev-help@commons.apache.org
> >
> >
>
>
> --
> http://people.apache.org/~britter/
> http://www.systemoutprintln.de/
> http://twitter.com/BenediktRitter
> http://github.com/britter
>
Re: [email] Java 8 test errors
Posted by Benedikt Ritter <br...@apache.org>.
2014-06-30 21:44 GMT+02:00 Thomas Neidhart <th...@gmail.com>:
> On 06/30/2014 04:27 PM, Thomas Neidhart wrote:
> > On 06/30/2014 02:47 PM, Gary Gregory wrote:
> >> 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
> >>
> >> 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"
> >> Mon 06/30/2014- 8:46:17.47
> C:\vcs\svn\apache\commons\trunks-proper\email>
> >>
> >> Thoughts?
> >
> > has to do with powermock. Need to check if a more recent version solves
> > the issue.
>
> it looks like there is no way to support both, Java 5 and Java 8 with
> the same set of jars.
>
How about introducing profiles that pull in different versions of
powermock, based on the jdk version we're building with?
>
> The reason powermock was added was to avoid a potential test failure in
> some environments when an invalid url was resolved to something valid
> (and to prevent -1 at release votes because of this).
>
> The test was adapted to mock an jdk class to always throw an exception
> for these tests, but afaik the providers where this happened have
> changed their setup and it should work fine now. Maybe we should remove
> the dependency again and note this potential problem somewhere.
>
> Thomas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>
--
http://people.apache.org/~britter/
http://www.systemoutprintln.de/
http://twitter.com/BenediktRitter
http://github.com/britter
Re: [email] Java 8 test errors
Posted by Thomas Neidhart <th...@gmail.com>.
On 06/30/2014 04:27 PM, Thomas Neidhart wrote:
> On 06/30/2014 02:47 PM, Gary Gregory wrote:
>> 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
>>
>> 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"
>> Mon 06/30/2014- 8:46:17.47 C:\vcs\svn\apache\commons\trunks-proper\email>
>>
>> Thoughts?
>
> has to do with powermock. Need to check if a more recent version solves
> the issue.
it looks like there is no way to support both, Java 5 and Java 8 with
the same set of jars.
The reason powermock was added was to avoid a potential test failure in
some environments when an invalid url was resolved to something valid
(and to prevent -1 at release votes because of this).
The test was adapted to mock an jdk class to always throw an exception
for these tests, but afaik the providers where this happened have
changed their setup and it should work fine now. Maybe we should remove
the dependency again and note this potential problem somewhere.
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [email] Java 8 test errors
Posted by Thomas Neidhart <th...@gmail.com>.
On 06/30/2014 02:47 PM, Gary Gregory wrote:
> 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
>
> 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"
> Mon 06/30/2014- 8:46:17.47 C:\vcs\svn\apache\commons\trunks-proper\email>
>
> Thoughts?
has to do with powermock. Need to check if a more recent version solves
the issue.
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org