O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.
New Features andMigration StrategyNeil Brown, 04/2013- Brown Bag, Part 1 -
Java Standard Edition(JSE) - Today
JSE, Today● J6 end-of-lifed by Oracle 02-2013, but......theres life after J6:● J7 mature - first GA (prod. ready) 07-2011●...
The Business Case
J7 - The Business Case● Maintenance & security updates from Oracleuntil at least 07-2014● Performance improvements, transl...
New & Changed Features -Highlights
J7 - HighlightsTargets improved performance & readability● Java language enhancements (Project Coin)● Concurrency enhancem...
Migration -How do we get there?
J7 - How do we get there?In two phases:1. Prove runtime compatibility & stability forexisting services on J7 runtime (JVM)...
Phase 1 Migration Plan - Overview1. Prove binary backwards compatibilityfor JEE container & all Java services○ Local dev. ...
Phase 1 Migration Plan - Overview3. Soak testing● Prove reliability over extended period4. Performance testing● Confirm pe...
Phase 1 Migration Status 04/20131. Prove binary backwards compatibility forJEE container & all Java services○ Local dev. e...
Language Enhancements(Project Coin)
New Language Features● Diamond operator○ Type inference for generic types● Multi-catch blocks○ Improved exception handling...
New Language Features● Underscores in integer and binary literals○ Increased code readabilityJava 7 code examples● https:/...
Próximos SlideShares
Carregando em…5
×

2013 05 java 7 brown bag part 1 - new features and migration strategy

552 visualizações

Publicada em

Overview of new features in Java 7, including code examples, and suggested outline migration (upgrade) strategy.

  • Entre para ver os comentários

2013 05 java 7 brown bag part 1 - new features and migration strategy

  1. 1. New Features andMigration StrategyNeil Brown, 04/2013- Brown Bag, Part 1 -
  2. 2. Java Standard Edition(JSE) - Today
  3. 3. JSE, Today● J6 end-of-lifed by Oracle 02-2013, but......theres life after J6:● J7 mature - first GA (prod. ready) 07-2011● J8 descoped (Jigsaw) and slipped (end2012, 09-2013). Latest plan GA 03-2014
  4. 4. The Business Case
  5. 5. J7 - The Business Case● Maintenance & security updates from Oracleuntil at least 07-2014● Performance improvements, translating tobetter response times & throughput○ HotSpot JVM enhancements○ Improved concurrency support● New features to keep dev team :-) and moreproductive○ Prerequisite / enabler for JEE7
  6. 6. New & Changed Features -Highlights
  7. 7. J7 - HighlightsTargets improved performance & readability● Java language enhancements (Project Coin)● Concurrency enhancements (Fork/Join)● New File I/O (NIO.2)● XML APIs (JAXP, JAXB, JAX-WS) updated● Platform (JVM) enhancements○ HotSpot JVM performance improvements○ Better support for dynamic lang. (invokedynamic)○ New G1 garbage collector for certain server apps...and more. See Oracle JDK 7 Adoption Guide
  8. 8. Migration -How do we get there?
  9. 9. J7 - How do we get there?In two phases:1. Prove runtime compatibility & stability forexisting services on J7 runtime (JVM)before...2. Recompiling services to take advantageof new language features; (at which pointwere committed to J7)
  10. 10. Phase 1 Migration Plan - Overview1. Prove binary backwards compatibilityfor JEE container & all Java services○ Local dev. environment○ Existing JEE container running on J7 JVM○ Services deployed to J7+container○ Unit and cursory integration tests pass2. Prove behavioural compatibility for allJava services○ Install JDK 7 (JRE) in CI environment○ Execute integration test suites
  11. 11. Phase 1 Migration Plan - Overview3. Soak testing● Prove reliability over extended period4. Performance testing● Confirm performance at least as good5. Phased rollout J7 across remaining envs● Upgrade JDK / JRE (still J6 javac only)6. Prove in production○ Services to run on J7 for agreed period beforedeclaring success and moving to phase 2 (J7 javac)
  12. 12. Phase 1 Migration Status 04/20131. Prove binary backwards compatibility forJEE container & all Java services○ Local dev. environment ................................ ✔○ JEE container running on J7 JVM ............... ✔○ Services deployed to J7+container .............. ✔○ Unit and cursory integration tests pass ........ ✔2. Prove behavioural compatibility for allJava services○ Install JDK 7 (JRE) in CI environment ........ ✍○ Execute integration test suites .................... ✍
  13. 13. Language Enhancements(Project Coin)
  14. 14. New Language Features● Diamond operator○ Type inference for generic types● Multi-catch blocks○ Improved exception handling● Automatic resource management○ aka try-with-resources● Switch on strings○ Enhanced switch statement● Binary literals○ Integer types expressed in binary
  15. 15. New Language Features● Underscores in integer and binary literals○ Increased code readabilityJava 7 code examples● https://bitbucket.org/neilbrown/java7-examplesThanks for attendingNeil Brown

×