1

My question has sort of been answered, however I was wondering if there was any specific Oracle documentation confirming that this is not a problem.

related stackoverflow threads: Security issues of compiling against older JDKs

Is Java byte code compiled in JDK 6 and runs on JDK7 open to vulnerability fixed in JDK 7?

Community
  • 1
  • 1
wbrugato
  • 1,329
  • 10
  • 18
  • You can leverage the capability of several Java IDE's that allow you to specify the compiler language level to a lower JDK, thus giving you the strict validation against an older JDK while still maintaining the capability of the newer JDK. I can't see why this would inherently cause an issue because you're targeting the same version of the JRE as the JDK you've used to build – Ryan J Jul 25 '14 at 22:44
  • Just don't do it. The ugly hacks with using bootclasspath is much more complicated to cleanly compile against an older target environment. So why bother... (and this is indepentend from security concerns). – eckes Jul 25 '14 at 23:11
  • It is far simpler to target 1.7 if that is how you intend to run it. If you want 1.6 and 1.7 support, just use 1.6. – Peter Lawrey Jul 26 '14 at 00:51
  • Does anyone know of any documentation regarding this? – wbrugato Jul 28 '14 at 16:11

0 Answers0