0

I have java web project in eclipse Luna. The compiler level is "1.6".

I need some 1.7 functionality so I change the level to "1.7" and the java code in the project. There's no compile error.

Now, I'm going to deploy my code. My question is;

Is it safe to deploy only changed class to production? Or do I have to deploy all classes?

PS: production server JRE level is 1.7 already.

Regards.

Burcin
  • 973
  • 1
  • 9
  • 25
  • 1
    This link should help you, and based on that, I think it is best to redeploy everything. http://stackoverflow.com/questions/18613562/jdk-1-7-breaks-backward-compatibility-generics. – Ratshiḓaho Wayne Nov 13 '15 at 08:01

1 Answers1

0

Ideally only changed class is enough if there is no dependency on changed class from any other class. If there is any dependency deploy all classes

rajadilipkolli
  • 3,475
  • 2
  • 26
  • 49