Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Indigo JDT depending on JUnit 4.7.0?
icon5.gif  Indigo JDT depending on JUnit 4.7.0? [message #777272] Tue, 10 January 2012 07:26 Go to next message
Volker Stolz is currently offline Volker StolzFriend
Messages: 63
Registered: July 2009
Member
Looking into the manifest of org.eclipse.jdt.junit4.runtime_1.1.200.v20110505-0800.jar, I find that it depends on JUnit 4.7.0:

Require-Bundle: org.junit;bundle-version="4.7.0",...

Indigo now comes with 4.8.2, and I was wondering if there's some internal mechanism that patches this up, or if there is indeed an older version of JUnit bundled up as well (if yes, I didn't find it)?

This doesn't seem to have any adverse effect on regular Eclipse usage, although I see something related popping up when using a target platform containing the JDT and junit plugin tests (I also have no idea where the 4.8.1 is coming from):

!ENTRY org.eclipse.osgi 2 0 2012-01-08 21:57:18.190
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-01-08 21:57:18.190
!MESSAGE Bundle reference:file:/rpool/hudson/jobs/ABS-All-Bucky/workspace/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.junit4_4.8.1.v20100525/ was not resolved.
!SUBENTRY 2 org.junit4 2 0 2012-01-08 21:57:18.191
!MESSAGE Missing required bundle org.junit_4.8.1.
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-01-08 21:57:18.191
!MESSAGE Bundle reference:file:/rpool/hudson/jobs/ABS-All-Bucky/workspace/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.eclipse.jdt.junit4.runtime_1.1.200.v20110505-0800.jar was not resolved.
!SUBENTRY 2 org.eclipse.jdt.junit4.runtime 2 0 2012-01-08 21:57:18.191
!MESSAGE Missing required bundle org.junit_4.7.0.


-Volker
Re: Indigo JDT depending on JUnit 4.7.0? [message #777288 is a reply to message #777272] Tue, 10 January 2012 08:15 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 10.01.2012 08:26, Volker Stolz wrote:
> Looking into the manifest of
> org.eclipse.jdt.junit4.runtime_1.1.200.v20110505-0800.jar, I find that
> it depends on JUnit 4.7.0:
>
> Require-Bundle: org.junit;bundle-version="4.7.0",...
This syntax means: needs 4.7.0 or newer.

Dani
>
> Indigo now comes with 4.8.2, and I was wondering if there's some
> internal mechanism that patches this up, or if there is indeed an
> older version of JUnit bundled up as well (if yes, I didn't find it)?
>
> This doesn't seem to have any adverse effect on regular Eclipse usage,
> although I see something related popping up when using a target
> platform containing the JDT and junit plugin tests (I also have no
> idea where the 4.8.1 is coming from):
>
> !ENTRY org.eclipse.osgi 2 0 2012-01-08 21:57:18.190
> !MESSAGE One or more bundles are not resolved because the following
> root constraints are not resolved:
> !SUBENTRY 1 org.eclipse.osgi 2 0 2012-01-08 21:57:18.190
> !MESSAGE Bundle
> reference:file:/rpool/hudson/jobs/ABS-All-Bucky/workspace/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.junit4_4.8.1.v20100525/
> was not resolved.
> !SUBENTRY 2 org.junit4 2 0 2012-01-08 21:57:18.191
> !MESSAGE Missing required bundle org.junit_4.8.1.
> !SUBENTRY 1 org.eclipse.osgi 2 0 2012-01-08 21:57:18.191
> !MESSAGE Bundle
> reference:file:/rpool/hudson/jobs/ABS-All-Bucky/workspace/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.eclipse.jdt.junit4.runtime_1.1.200.v20110505-0800.jar
> was not resolved.
> !SUBENTRY 2 org.eclipse.jdt.junit4.runtime 2 0 2012-01-08 21:57:18.191
> !MESSAGE Missing required bundle org.junit_4.7.0.
>
>
> -Volker
Re: Indigo JDT depending on JUnit 4.7.0? [message #777296 is a reply to message #777288] Tue, 10 January 2012 08:39 Go to previous messageGo to next message
Volker Stolz is currently offline Volker StolzFriend
Messages: 63
Registered: July 2009
Member
Thanks Dani, I missed that detail.

But then I don't understand why a plugin-test launch configuration with

<setAttribute key="additional_plugins">
<setEntry value="org.junit:4.8.2.v4_8_2_v20110321-1705:default:true"/>
</setAttribute>


is reporting the
!SUBENTRY 2 org.eclipse.jdt.junit4.runtime 2 0 2012-01-10 16:29:48.089
!MESSAGE Missing required bundle org.junit_4.7.0.


Do you have any idea about that?


-Volker
Re: Indigo JDT depending on JUnit 4.7.0? [message #777305 is a reply to message #777296] Tue, 10 January 2012 08:58 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 10.01.2012 09:39, Volker Stolz wrote:
> Thanks Dani, I missed that detail.
>
> But then I don't understand why a plugin-test launch configuration with
>
> <setAttribute key="additional_plugins">
> <setEntry value="org.junit:4.8.2.v4_8_2_v20110321-1705:default:true"/>
> </setAttribute>
>
>
> is reporting the
> !SUBENTRY 2 org.eclipse.jdt.junit4.runtime 2 0 2012-01-10 16:29:48.089
> !MESSAGE Missing required bundle org.junit_4.7.0.
>
>
> Do you have any idea about that?
Maybe you are not using a JRE 5 or newer.

Dani
>
>
> -Volker
Re: Indigo JDT depending on JUnit 4.7.0? [message #777864 is a reply to message #777305] Wed, 11 January 2012 04:47 Go to previous messageGo to next message
Volker Stolz is currently offline Volker StolzFriend
Messages: 63
Registered: July 2009
Member
Nope, should be Java 6 from top to bottom. But now I'm intrigued why this should make a difference!

-Volker
Re: Indigo JDT depending on JUnit 4.7.0? [message #777898 is a reply to message #777864] Wed, 11 January 2012 05:58 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
> But now I'm intrigued why this should make a difference!

JUnit 4.x.y requires Java 1.5 or greater.

--
Deepak Azad
http://wiki.eclipse.org/JDT/FAQ
Re: Indigo JDT depending on JUnit 4.7.0? [message #800070 is a reply to message #777864] Thu, 16 February 2012 16:47 Go to previous message
Kris Reid is currently offline Kris ReidFriend
Messages: 5
Registered: February 2012
Junior Member
Did you get this working? I have the same error message
Previous Topic:Java EE Project
Next Topic:spelling check in Eclipse
Goto Forum:
  


Current Time: Sat May 11 01:51:13 GMT 2024

Powered by FUDForum. Page generated in 0.03551 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top