• Post Reply Bookmark Topic Watch Topic
  • New Topic

JVM backward compatibility 7 to 6 any gotcha's  RSS feed

 
Ranch Hand
Posts: 334
2
Java Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Part of my work runs on large clusters (thousands of cores) and I've recently convinced the PTB to install OpenJDK-1.7.x

The question is should Java 7 be the default? I have not found any incompatibilities but then again I've been developing using 1.7
targeting 1.6. However my reading suggests people have not upgraded because of problems.

Does anyone know of a list of known incompatibilities running 1.6 code in a 1.7 JVM?

Thanks,
Joe
 
Joe Areeda
Ranch Hand
Posts: 334
2
Java Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to clarify, I'm only talking about programs compiled with Java 6 (or targeting Java 6) running a 1.7 JVM.

Source level issues are not the problem here. It's legacy compiled code running.

Joe
 
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would you be upgrading from OpenJDK-6 or from some other JVM? if the latter, reliance on non-API classes (like com.sun.*) might be an issue (although that should have surfaced during development if the code was compiled on OpenJDK-7 to begin with).
 
Joe Areeda
Ranch Hand
Posts: 334
2
Java Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf,

Yes the upgrade is from OpenJDK-1.6 which BTW will still be installed.

You make a good point that going from Oracle JDK to Open JDK presents some issues not relevant to this.

And one more point. I'm only interested in code that's already compiled with JDK 6 especially if the original developer is not available. Chances are that could lead to me being assigned as maintainer, God forbid.

Thanks,
Joe
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!