æ°ããå¶å¾¡æ§æã®å®ç¾©ä¾ Javaã®ã¯ãã¼ã¸ã£ã«é¢ããJSRã®ãã©ããã«ã¯ãã¯ãã¼ã¸ã£ãå°å ¥ãããã¨ã®ã¡ãªããã¨ãã¦ãæ°ããå¶å¾¡æ§æãç¬èªã«å®ç¾©ããJavaã®APIãæ¡å¼µã§ããã¨ãããã¨ãæãããã¦ãããååã¯ãControl invocation syntaxãå©ç¨ãã¦å®ç¾©ããæ°ããå¶å¾¡æ§æã®ä¾ã¨ãã¦ãä»»æã®ããã¯æ©æ§ã§æä»å¦çãè¡ãwithLockæãç´¹ä»ããã åæ§ã®ä¾ã¨ãã¦ããæããããã®ããã¹ããªã¼ã ã®å¦çã«å©ç¨ããwithæã ãwithæã§ã¯å¼æ°ã«ã¹ããªã¼ã ãªãã¸ã§ã¯ããåãåããå¦çãçµäºããéã«å¿ ããã®ã¹ããªã¼ã ãéããã¨ããå¶å¾¡æ§æã§ããã å ·ä½çã«ã¯ããªã¹ã1ã®ãããªå®ç¾©ã«ãªã(ãããã¿ã¤ãä»æ§ããå¼ç¨)ãããã§ã¯ãwithã¡ã½ããã¯java.io.Closeableãªãã¸ã§ã¯ããåãåãããããã¯ãã¼ã¸ã£ã®invoke()ã«æ¸¡ãããã«å®è£ ããã¦ãããããã¦å¦çãçµäºãã
{{#tags}}- {{label}}
{{/tags}}