Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2017-09-11 20:49:55 -0400
committerFred Bricon2017-09-11 20:49:55 -0400
commitf98f3196a1d8c2ebb2955490841e0d8e9b7a6a47 (patch)
tree5d0cabf271f232ba500e50432167ec1839b9350f /org.eclipse.m2e.jdt
parent4b3ac59ed468448173281f482e81f847a4ed7d65 (diff)
downloadm2e-core-f98f3196a1d8c2ebb2955490841e0d8e9b7a6a47.tar.gz
m2e-core-f98f3196a1d8c2ebb2955490841e0d8e9b7a6a47.tar.xz
m2e-core-f98f3196a1d8c2ebb2955490841e0d8e9b7a6a47.zip
Use simplistic jdk version comparison until jdt/java 9 bundle is available
Change-Id: I1c4178ec56ba2d9a80cc1d2d271262d0913416f9 Signed-off-by: Fred Bricon <fbricon@gmail.com>
Diffstat (limited to 'org.eclipse.m2e.jdt')
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaProjectConversionParticipant.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaProjectConversionParticipant.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaProjectConversionParticipant.java
index 406b0a89..53398299 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaProjectConversionParticipant.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JavaProjectConversionParticipant.java
@@ -195,7 +195,7 @@ public class JavaProjectConversionParticipant extends AbstractProjectConversionP
private boolean canUseReleaseProperty(String source, String target) {
//source and target are guaranteed to be not null at this point
- return source.equals(target) && JavaCore.compareJavaVersions(source, VERSION_9) >= 0;
+ return source.equals(target) && source.compareTo(VERSION_9) >= 0;
}
private Plugin getOrCreateCompilerPlugin(Build build) {

Back to the top