From 45c0a7365491b1c2054b56ccf05d3da37a3924aa Mon Sep 17 00:00:00 2001 From: Brian Vosburgh Date: Mon, 25 Jul 2016 10:14:36 -0400 Subject: Add JAXB support for JRE 1.8 --- .../jpt/jaxb/core/internal/libval/JaxbLibraryValidatorTools.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/libval/JaxbLibraryValidatorTools.java b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/libval/JaxbLibraryValidatorTools.java index 03217f7857..1b9bbac844 100644 --- a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/libval/JaxbLibraryValidatorTools.java +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/libval/JaxbLibraryValidatorTools.java @@ -133,8 +133,8 @@ public class JaxbLibraryValidatorTools { if (vm instanceof IVMInstall2) { String javaVersion = ((IVMInstall2) vm).getJavaVersion(); if (javaVersion != null) { - // all other versions except 1.7 and 1.6 have no corresponding version (as of yet) - if (javaVersion.startsWith(JavaCore.VERSION_1_7)) { + // versions earlier than 1.6 have no corresponding version (as of yet) + if (javaVersion.startsWith(JavaCore.VERSION_1_7) || javaVersion.startsWith(JavaCore.VERSION_1_8)) { return FACET_VERSION_2_2; } // 1.6 must be further analyzed -- cgit v1.2.3