JDK 7 출시 기념 (2011.7)JDK 7 소개 #6 기타 기능 소개김용환knight76.tistory.comKnight76 at gmail.com1
XML stack 버전 변경JAXP 1.4http://jaxp.java.net/1.4/ReleaseNotes.htmlJAXB 2.2ahttp://jaxb.java.net/nonav/2.2/docs/JAX-WS 2.2http://jax-ws.java.net/nonav/2.2/docs/ReleaseNotes.htmlhttp://jcp.org/en/jsr/detail?id=224
JDBC 4.1 업그레이드Derby가 DataSource에 추가Autoloading of JDBC driversSQLExceptions구체화많은 WrappersStatement eventsPooledConnection에 addStatementEventListener / removeStatementEventListener추가Streaming APIs InputStream 과 java.io.Reader에 set/update 추가New methodstry with resourcetry (Statement sampleStmt = sampleCon.createStatement())
RowSet 1.1RowSetFactory, RowSetProviderConnection과 Statement 없이 rowset을 쉽게 가져올 수 있음개발자는 Connection, Statement에 대한 close 할 필요가 없음public void rowsetTest(String userName, String password) throws SQLException {RowSetFactoryexampleRowSetFactory = null;JdbcRowSetrowSet= null;exampleRowSetFactory= RowSetProvider.newFactory();//com.sun.rowset.RowSetFactoryImplrowSet= exampleRowSetFactory.createJdbcRowSet();rowSet.setUrl("jdbc:sampleDriver:sampleAttribute");rowSet.setUsername(userName);rowSet.setPassword(password);rowSet.setCommand("select id, name, addrfrom student");rowSet.execute();}
Class-loaderClassLoader API 수정 / non-hierarchical class-loader 상태에서 데드락을 피할 수 있게 함http://download.oracle.com/javase/7/docs/technotes/guides/net/ClassLoader.htmlhttp://download.oracle.com/javase/7/docs/technotes/guides/lang/cl-mt.htmlClassLoaderObject getClassLoadingLock(String className)void registerAsParallelCapable()URLClassLoaderInputStreamgetResourceAsStream(String name)void close()
JVM Performance 향상JDK6 후반 버전부터 이미 적용http://download.oracle.com/javase/7/docs/technotes/guides/vm/performance-enhancements-7.html옵션-server -XX:+TieredCompilation.-XX:+UseCompressedOops-XX:+UseNUMA-XX:+DoEscapeAnalysis
GCG1CMS을 대체하기 위한 알고리즘JDK6 후반부터 나옴http://download.oracle.com/javase/7/docs/technotes/guides/vm/G1.html
IONETTLS 1.2SCTP (Stream Control Transmission Protocol)http://openjdk.java.net/projects/sctp/javadoc/b10/index.htmlSDP (Sockets Direct Protocol)access to high performance network connectionshttp://download.oracle.com/javase/tutorial/sdp/sockets/overview.html
Client (Graphics)Create new platform APIs for 6u10 graphics features Nimbus look-and-feel for Swing Swing JLayer component
Collections 추가IntefaceTransferQueue<E>extends BlockingQueue<E>message passing applications에 적합 (consumer/producer)
Collections 추가Class LinkedTransferQueue<E>extends TransferQueue<E>
java.util.Objects추가Static 메소드12
Strict class-file checkingJdk7 이후부터는 class 파일들은 모두 typechecking verifier로 verified 해야 함JSR 202 §4.11.1 (http://jcp.org/en/jsr/detail?id=202)4.11 Verification of class FilesJVM 스펙에서는4.10http://jcp.org/aboutJava/communityprocess/maintenance/jsr924/JVMSpec-JavaSE7-ChangeLog.htmlCompliance with JSR 202 (Java Class File Specification Update
JDK8 이후Language and VM support for modular programmingAnnotations on Java typesLanguage support for collectionsProject LambdaModularization (Project Jigsaw)Swing application frameworkSwing JDatePicker component
Java Platform Standard Edition 7 Documentationhttp://download.oracle.com/javase/7/docs/
End of Document

Jdk(java) 7 - 6 기타기능

  • 1.
    JDK 7 출시기념 (2011.7)JDK 7 소개 #6 기타 기능 소개김용환knight76.tistory.comKnight76 at gmail.com1
  • 2.
    XML stack 버전변경JAXP 1.4http://jaxp.java.net/1.4/ReleaseNotes.htmlJAXB 2.2ahttp://jaxb.java.net/nonav/2.2/docs/JAX-WS 2.2http://jax-ws.java.net/nonav/2.2/docs/ReleaseNotes.htmlhttp://jcp.org/en/jsr/detail?id=224
  • 3.
    JDBC 4.1 업그레이드Derby가DataSource에 추가Autoloading of JDBC driversSQLExceptions구체화많은 WrappersStatement eventsPooledConnection에 addStatementEventListener / removeStatementEventListener추가Streaming APIs InputStream 과 java.io.Reader에 set/update 추가New methodstry with resourcetry (Statement sampleStmt = sampleCon.createStatement())
  • 4.
    RowSet 1.1RowSetFactory, RowSetProviderConnection과Statement 없이 rowset을 쉽게 가져올 수 있음개발자는 Connection, Statement에 대한 close 할 필요가 없음public void rowsetTest(String userName, String password) throws SQLException {RowSetFactoryexampleRowSetFactory = null;JdbcRowSetrowSet= null;exampleRowSetFactory= RowSetProvider.newFactory();//com.sun.rowset.RowSetFactoryImplrowSet= exampleRowSetFactory.createJdbcRowSet();rowSet.setUrl("jdbc:sampleDriver:sampleAttribute");rowSet.setUsername(userName);rowSet.setPassword(password);rowSet.setCommand("select id, name, addrfrom student");rowSet.execute();}
  • 5.
    Class-loaderClassLoader API 수정/ non-hierarchical class-loader 상태에서 데드락을 피할 수 있게 함http://download.oracle.com/javase/7/docs/technotes/guides/net/ClassLoader.htmlhttp://download.oracle.com/javase/7/docs/technotes/guides/lang/cl-mt.htmlClassLoaderObject getClassLoadingLock(String className)void registerAsParallelCapable()URLClassLoaderInputStreamgetResourceAsStream(String name)void close()
  • 6.
    JVM Performance 향상JDK6후반 버전부터 이미 적용http://download.oracle.com/javase/7/docs/technotes/guides/vm/performance-enhancements-7.html옵션-server -XX:+TieredCompilation.-XX:+UseCompressedOops-XX:+UseNUMA-XX:+DoEscapeAnalysis
  • 7.
    GCG1CMS을 대체하기 위한알고리즘JDK6 후반부터 나옴http://download.oracle.com/javase/7/docs/technotes/guides/vm/G1.html
  • 8.
    IONETTLS 1.2SCTP (StreamControl Transmission Protocol)http://openjdk.java.net/projects/sctp/javadoc/b10/index.htmlSDP (Sockets Direct Protocol)access to high performance network connectionshttp://download.oracle.com/javase/tutorial/sdp/sockets/overview.html
  • 9.
    Client (Graphics)Create newplatform APIs for 6u10 graphics features Nimbus look-and-feel for Swing Swing JLayer component
  • 10.
    Collections 추가IntefaceTransferQueue<E>extends BlockingQueue<E>messagepassing applications에 적합 (consumer/producer)
  • 11.
  • 12.
  • 13.
    Strict class-file checkingJdk7이후부터는 class 파일들은 모두 typechecking verifier로 verified 해야 함JSR 202 §4.11.1 (http://jcp.org/en/jsr/detail?id=202)4.11 Verification of class FilesJVM 스펙에서는4.10http://jcp.org/aboutJava/communityprocess/maintenance/jsr924/JVMSpec-JavaSE7-ChangeLog.htmlCompliance with JSR 202 (Java Class File Specification Update
  • 14.
    JDK8 이후Language andVM support for modular programmingAnnotations on Java typesLanguage support for collectionsProject LambdaModularization (Project Jigsaw)Swing application frameworkSwing JDatePicker component
  • 15.
    Java Platform StandardEdition 7 Documentationhttp://download.oracle.com/javase/7/docs/
  • 16.