Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Anderson2017-10-01 03:06:34 +0000
committerCarl Anderson2017-10-01 03:06:34 +0000
commit7dbec4d768f69b8f46d9e68d74673cf6beb0eb85 (patch)
tree4d0361f3d8f912250d7c26711d72094c8e209a33
parent23766a164140cf34c037c6066386b64769e8f7c7 (diff)
downloadwebtools.common-7dbec4d768f69b8f46d9e68d74673cf6beb0eb85.tar.gz
webtools.common-7dbec4d768f69b8f46d9e68d74673cf6beb0eb85.tar.xz
webtools.common-7dbec4d768f69b8f46d9e68d74673cf6beb0eb85.zip
[522750] Java Version 1.9 of project facet java does not exist
-rw-r--r--plugins/org.eclipse.jst.common.project.facet.core/plugin.xml8
-rw-r--r--plugins/org.eclipse.jst.common.project.facet.core/src/org/eclipse/jst/common/project/facet/core/JavaFacet.java6
-rw-r--r--plugins/org.eclipse.jst.common.project.facet.core/src/org/eclipse/jst/common/project/facet/core/StandardJreRuntimeComponent.java8
-rw-r--r--plugins/org.eclipse.jst.common.project.facet.core/src/org/eclipse/jst/common/project/facet/core/internal/JavaFacetUtil.java2
4 files changed, 14 insertions, 10 deletions
diff --git a/plugins/org.eclipse.jst.common.project.facet.core/plugin.xml b/plugins/org.eclipse.jst.common.project.facet.core/plugin.xml
index 19b787ba8..5768ccfda 100644
--- a/plugins/org.eclipse.jst.common.project.facet.core/plugin.xml
+++ b/plugins/org.eclipse.jst.common.project.facet.core/plugin.xml
@@ -26,7 +26,7 @@
<runtime-component-version type="standard.jre" version="1.6"/>
<runtime-component-version type="standard.jre" version="1.7"/>
<runtime-component-version type="standard.jre" version="1.8"/>
- <runtime-component-version type="standard.jre" version="1.9"/>
+ <runtime-component-version type="standard.jre" version="9"/>
<supported>
<facet id="java" version="1.3"/>
@@ -59,8 +59,8 @@
</supported>
<supported>
- <facet id="java" version="1.9"/>
- <runtime-component id="standard.jre" version="[1.9"/>
+ <facet id="java" version="9"/>
+ <runtime-component id="standard.jre" version="[9"/>
</supported>
<adapter>
@@ -91,7 +91,7 @@
<project-facet-version facet="java" version="1.8"/>
- <project-facet-version facet="java" version="1.9"/>
+ <project-facet-version facet="java" version="9"/>
<action facet="java" type="install" id="java.install">
<delegate class="org.eclipse.jst.common.project.facet.core.internal.JavaFacetInstallDelegate"/>
diff --git a/plugins/org.eclipse.jst.common.project.facet.core/src/org/eclipse/jst/common/project/facet/core/JavaFacet.java b/plugins/org.eclipse.jst.common.project.facet.core/src/org/eclipse/jst/common/project/facet/core/JavaFacet.java
index ac591c5f8..8be8d6829 100644
--- a/plugins/org.eclipse.jst.common.project.facet.core/src/org/eclipse/jst/common/project/facet/core/JavaFacet.java
+++ b/plugins/org.eclipse.jst.common.project.facet.core/src/org/eclipse/jst/common/project/facet/core/JavaFacet.java
@@ -35,7 +35,11 @@ public final class JavaFacet
public static final IProjectFacetVersion VERSION_1_6 = FACET.getVersion( "1.6" ); //$NON-NLS-1$
public static final IProjectFacetVersion VERSION_1_7 = FACET.getVersion( "1.7" ); //$NON-NLS-1$
public static final IProjectFacetVersion VERSION_1_8 = FACET.getVersion( "1.8" ); //$NON-NLS-1$
- public static final IProjectFacetVersion VERSION_1_9 = FACET.getVersion( "1.9" ); //$NON-NLS-1$
+ public static final IProjectFacetVersion VERSION_9 = FACET.getVersion( "9" ); //$NON-NLS-1$
+
+ // temporary hack to be removed before WTP 3.9.1a
+ @Deprecated
+ public static final IProjectFacetVersion VERSION_1_9 = VERSION_9;
@Deprecated
public static final IProjectFacetVersion JAVA_13 = VERSION_1_3;
diff --git a/plugins/org.eclipse.jst.common.project.facet.core/src/org/eclipse/jst/common/project/facet/core/StandardJreRuntimeComponent.java b/plugins/org.eclipse.jst.common.project.facet.core/src/org/eclipse/jst/common/project/facet/core/StandardJreRuntimeComponent.java
index 1952486d7..8e228bb15 100644
--- a/plugins/org.eclipse.jst.common.project.facet.core/src/org/eclipse/jst/common/project/facet/core/StandardJreRuntimeComponent.java
+++ b/plugins/org.eclipse.jst.common.project.facet.core/src/org/eclipse/jst/common/project/facet/core/StandardJreRuntimeComponent.java
@@ -36,7 +36,7 @@ public final class StandardJreRuntimeComponent
public static final IRuntimeComponentVersion VERSION_1_6 = TYPE.getVersion( "1.6" ); //$NON-NLS-1$
public static final IRuntimeComponentVersion VERSION_1_7 = TYPE.getVersion( "1.7" ); //$NON-NLS-1$
public static final IRuntimeComponentVersion VERSION_1_8 = TYPE.getVersion( "1.8" ); //$NON-NLS-1$
- public static final IRuntimeComponentVersion VERSION_1_9 = TYPE.getVersion( "1.9" ); //$NON-NLS-1$
+ public static final IRuntimeComponentVersion VERSION_9 = TYPE.getVersion( "9" ); //$NON-NLS-1$
@Deprecated
public static final IRuntimeComponentVersion VERSION_5_0 = VERSION_1_5;
@@ -87,13 +87,13 @@ public final class StandardJreRuntimeComponent
{
rcv = StandardJreRuntimeComponent.VERSION_1_8;
}
- else if( jvmver.startsWith( "1.9" ) ) //$NON-NLS-1$
+ else if( jvmver.startsWith( "9" ) ) //$NON-NLS-1$
{
- rcv = StandardJreRuntimeComponent.VERSION_1_9;
+ rcv = StandardJreRuntimeComponent.VERSION_9;
}
else
{
- rcv = StandardJreRuntimeComponent.VERSION_1_9;
+ rcv = StandardJreRuntimeComponent.VERSION_9;
}
final Map<String,String> properties = new HashMap<String,String>();
diff --git a/plugins/org.eclipse.jst.common.project.facet.core/src/org/eclipse/jst/common/project/facet/core/internal/JavaFacetUtil.java b/plugins/org.eclipse.jst.common.project.facet.core/src/org/eclipse/jst/common/project/facet/core/internal/JavaFacetUtil.java
index f675be64b..6c6659740 100644
--- a/plugins/org.eclipse.jst.common.project.facet.core/src/org/eclipse/jst/common/project/facet/core/internal/JavaFacetUtil.java
+++ b/plugins/org.eclipse.jst.common.project.facet.core/src/org/eclipse/jst/common/project/facet/core/internal/JavaFacetUtil.java
@@ -62,7 +62,7 @@ public final class JavaFacetUtil
FACET_VER_TO_EXEC_ENV.put( JavaFacet.VERSION_1_6, "JavaSE-1.6" ); //$NON-NLS-1$
FACET_VER_TO_EXEC_ENV.put( JavaFacet.VERSION_1_7, "JavaSE-1.7" ); //$NON-NLS-1$
FACET_VER_TO_EXEC_ENV.put( JavaFacet.VERSION_1_8, "JavaSE-1.8" ); //$NON-NLS-1$
- FACET_VER_TO_EXEC_ENV.put( JavaFacet.VERSION_1_9, "JavaSE-1.9" ); //$NON-NLS-1$
+ FACET_VER_TO_EXEC_ENV.put( JavaFacet.VERSION_9, "JavaSE-9" ); //$NON-NLS-1$
}
public static String getCompilerLevel()

Back to the top