| Summary: | On Java EE project creation the JRE class path entry is generated without the execution enviroment ID (e.g. "JavaSE-1.7"). | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Common Tools | Reporter: | Dimo Stoilov <Dimo.Stoilov> | ||||
| Component: | Faceted Project Framework | Assignee: | wst.common <wst.common-inbox> | ||||
| Status: | RESOLVED INVALID | QA Contact: | Konstantin Komissarchik <konstantin> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | kaloyan | ||||
| Version: | 3.3.1 | Flags: | konstantin:
review-
kaloyan: review? (ccc) |
||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Dimo Stoilov
Created attachment 210670 [details]
proposed patch
The reason for the difference between (1) and (2) is: in (1) the JRE class path is set via the java facet delegate, and in (2) this is done by the org.eclipse.jst.common.project.facet.core.internal.StandardJreClasspathProvider in, and in a different way from the java facet delegate.
The proposed fix is in StandardJreClasspathProvider and sets the classpath entry in the same way like it is done in the java facet delegate.
Carl, Konstantin, could you review this patch for 3.3.2? The difference in these two cases is intentional. When user targets a runtime, they are targeting a specific instance of a JVM (not just a particular version). When they don't target a specific runtime, we are free to apply a more generic specification based on facet version. I would recommend pursuing a fix to PDE import procedure instead. There is no reason that their import couldn't be smarter and actually analyze the referenced JRE. |