Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 296105

Summary: 'Validate Plug-ins' does not detect problems with singleton plug-ins
Product: [Eclipse Project] PDE Reporter: Markus Keller <markus.kell.r>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, daniel_megert
Version: 3.6Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Team Project Set none

Description Markus Keller CLA 2009-11-25 08:41:22 EST
Created attachment 153063 [details]
Team Project Set

I20091118-1342

The 'Validate Plug-ins' button in the Plug-ins tab of PDE launch configs does
not detect problems with singleton plug-ins.

Steps:
- import the attached project set
- ensure that org.eclipse.core.expressions.tests' manifest contains
Require-Bundle: 
 org.eclipse.core.expressions;bundle-version="[3.4.100,4.0.0)",
 org.eclipse.core.runtime;bundle-version="[3.3.100,4.0.0)",
 org.junit;bundle-version="[3.8.2,3.9.0)"

- change both org.junit plug-ins to be singletons
- create a PDE JUnit launch configuration for "AllTests" with a 1.6 VM
- click 'Validate Plug-ins' button
=> Was: No problems were detected.
=> Expected: The problems that are written to the log when you try to launch
should already be detected during validation:

!ENTRY org.eclipse.osgi 2 0 2009-11-25 14:29:40.683
!MESSAGE The following is a complete list of bundles which are not resolved,
see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-11-25 14:29:40.683
!MESSAGE Bundle org.eclipse.core.expressions.tests_3.4.100.qualifier [28] was
not resolved.
!SUBENTRY 2 org.eclipse.core.expressions.tests 2 0 2009-11-25 14:29:40.683
!MESSAGE Missing required bundle org.junit_[3.8.2,3.9.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-11-25 14:29:40.683
!MESSAGE Bundle org.junit_3.8.2.qualifier [190] was not resolved.
!SUBENTRY 2 org.junit 2 0 2009-11-25 14:29:40.683
!MESSAGE Another singleton version selected: org.junit_4.7.0.qualifier
Comment 1 Markus Keller CLA 2009-11-26 10:25:06 EST
(From bug 290533 comment #18)
> Is the concern here singletons?  PDE-UI works around the singleton issue by
> using a resolver that is in dev mode.

Maybe the the validator also uses a resolver in "dev" mode?
Comment 2 Dani Megert CLA 2010-05-18 10:47:30 EDT
Looks like a duplicate of bug 306684.
Comment 3 Curtis Windatt CLA 2010-05-18 11:04:37 EDT
(In reply to comment #2)
> Looks like a duplicate of bug 306684.

Agreed

*** This bug has been marked as a duplicate of bug 306684 ***