UiPath Community: Communication Mining from Zero to Hero
Jdk(java) 7 - 6 기타기능
1. JDK 7 출시 기념 (2011.7)JDK 7 소개 #6 기타 기능 소개 김용환 knight76.tistory.com Knight76 at gmail.com 1
2. XML stack 버전 변경 JAXP 1.4 http://jaxp.java.net/1.4/ReleaseNotes.html JAXB 2.2a http://jaxb.java.net/nonav/2.2/docs/ JAX-WS 2.2 http://jax-ws.java.net/nonav/2.2/docs/ReleaseNotes.html http://jcp.org/en/jsr/detail?id=224
3. JDBC 4.1 업그레이드 Derby가 DataSource에 추가 Autoloading of JDBC drivers SQLExceptions구체화 많은 Wrappers Statement events PooledConnection에 addStatementEventListener / removeStatementEventListener추가 Streaming APIs InputStream 과 java.io.Reader에 set/update 추가 New methods try with resource try (Statement sampleStmt = sampleCon.createStatement())
4. RowSet 1.1 RowSetFactory, RowSetProvider Connection과 Statement 없이 rowset을 쉽게 가져올 수 있음 개발자는 Connection, Statement에 대한 close 할 필요가 없음 public void rowsetTest(String userName, String password) throws SQLException { RowSetFactoryexampleRowSetFactory = null; JdbcRowSetrowSet= null; exampleRowSetFactory= RowSetProvider.newFactory();//com.sun.rowset.RowSetFactoryImpl rowSet= exampleRowSetFactory.createJdbcRowSet(); rowSet.setUrl("jdbc:sampleDriver:sampleAttribute"); rowSet.setUsername(userName); rowSet.setPassword(password); rowSet.setCommand("select id, name, addrfrom student"); rowSet.execute(); }
5. Class-loader ClassLoader API 수정 / non-hierarchical class-loader 상태에서 데드락을 피할 수 있게 함 http://download.oracle.com/javase/7/docs/technotes/guides/net/ClassLoader.html http://download.oracle.com/javase/7/docs/technotes/guides/lang/cl-mt.html ClassLoader Object getClassLoadingLock(String className) void registerAsParallelCapable() URLClassLoader InputStreamgetResourceAsStream(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. GC G1 CMS을 대체하기 위한 알고리즘 JDK6 후반부터 나옴 http://download.oracle.com/javase/7/docs/technotes/guides/vm/G1.html
8. IONET TLS 1.2 SCTP (Stream Control Transmission Protocol) http://openjdk.java.net/projects/sctp/javadoc/b10/index.html SDP (Sockets Direct Protocol) access to high performance network connections http://download.oracle.com/javase/tutorial/sdp/sockets/overview.html
9. Client (Graphics) Create new platform APIs for 6u10 graphics features Nimbus look-and-feel for Swing Swing JLayer component
13. Strict class-file checking Jdk7 이후부터는 class 파일들은 모두 typechecking verifier로 verified 해야 함 JSR 202 §4.11.1 (http://jcp.org/en/jsr/detail?id=202) 4.11 Verification of class Files JVM 스펙에서는4.10 http://jcp.org/aboutJava/communityprocess/maintenance/jsr924/JVMSpec-JavaSE7-ChangeLog.html Compliance with JSR 202 (Java Class File Specification Update
14. JDK8 이후 Language and VM support for modular programming Annotations on Java types Language support for collections Project Lambda Modularization (Project Jigsaw) Swing application framework Swing JDatePicker component
15. Java Platform Standard Edition 7 Documentation http://download.oracle.com/javase/7/docs/