{"id":107370,"date":"2023-03-22T00:48:09","date_gmt":"2023-03-21T22:48:09","guid":{"rendered":"https:\/\/prohoster.info\/?p=107370"},"modified":"2023-03-22T11:10:35","modified_gmt":"2023-03-22T09:10:35","slug":"vypusk-java-se-20","status":"publish","type":"post","link":"https:\/\/prohoster.info\/hu\/blog\/news\/vypusk-java-se-20","title":{"rendered":"A Java SE 20 kiad\u00e1sa","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Hat h\u00f3napnyi fejleszt\u00e9s ut\u00e1n az Oracle kiadta a Java SE 20 (Java Platform, Standard Edition 20) platformot, amelynek referenciakiv\u00e1laszt\u00e1s\u00e1hoz az OpenJDK ny\u00edlt projekttel \u00e9lnek. A Java SE 20-ban elt\u00e1vol\u00edtottak n\u00e9h\u00e1ny elavult funkci\u00f3t, de meg\u0151rizt\u00e9k a visszafel\u00e9 kompatibilit\u00e1st a kor\u00e1bbi Java-verzi\u00f3kkal \u2014 a legt\u00f6bb kor\u00e1bban \u00edrt Java-projekt v\u00e1ltoztat\u00e1s n\u00e9lk\u00fcl futtathat\u00f3 az \u00faj verzi\u00f3n. A Java SE 20 (JDK, JRE \u00e9s Server JRE) telep\u00edt\u00e9sre k\u00e9sz v\u00e1ltozatai el\u00e9rhet\u0151k Linuxra (x86_64, AArch64), Windowsra (x86_64) \u00e9s macOS-re (x86_64, AArch64). Az OpenJDK keret\u00e9ben kifejlesztett Java 20 referenciakiv\u00e1laszt\u00e1sa teljesen ny\u00edlt a GPLv2 licenccel, a GNU ClassPath kiv\u00e9telekkel, amelyek lehet\u0151v\u00e9 teszik a dinamikus k\u00f6t\u00e9seket kereskedelmi term\u00e9kekkel.     <\/p>\n<p>A Java SE 20 a norm\u00e1l t\u00e1mogat\u00e1si id\u0151szak\u00fa kiad\u00e1sok k\u00f6z\u00e9 tartozik, friss\u00edt\u00e9sek a k\u00f6vetkez\u0151 kiad\u00e1sig fognak megjelenni. Hossz\u00fa t\u00e1v\u00fa t\u00e1mogat\u00e1si (LTS) \u00e1gnak a Java SE 17 haszn\u00e1lat\u00e1t javasoljuk, amelynek friss\u00edt\u00e9sei 2029-ig fognak megjelenni. Eml\u00e9keztet\u0151\u00fcl, a Java 10 kiad\u00e1s\u00e1t\u00f3l kezdve a projekt \u00faj fejleszt\u00e9si folyamatra v\u00e1ltott, amely r\u00f6videbb \u00faj kiad\u00e1si ciklust felt\u00e9telez. Az \u00faj funkci\u00f3k imm\u00e1r egy folyamatosan friss\u00edtett master-\u00e1gban fejl\u0151dnek, amelybe a m\u00e1r k\u00e9sz v\u00e1ltoz\u00e1sok ker\u00fclnek, \u00e9s amelyb\u0151l hat havonta stabiliz\u00e1l\u00f3 \u00e1gak \u00e1gaznak el az \u00faj kiad\u00e1sokhoz.     <\/p>\n<p>A Java 20 \u00fajdons\u00e1gai k\u00f6z\u00fcl kiemelend\u0151k:  <\/p>\n<ul>\n<li class=\"l\"> El\u0151zetes t\u00e1mogat\u00e1st javasoltak a Scoped Values (korl\u00e1tozott \u00e9rt\u00e9kek) sz\u00e1m\u00e1ra, amelyek lehet\u0151v\u00e9 teszik a v\u00e1ltozatlan adatok megoszt\u00e1s\u00e1t sz\u00e1lak k\u00f6z\u00f6tt, \u00e9s hat\u00e9kony adatcser\u00e9t biztos\u00edtanak a gyermeksz\u00e1lak k\u00f6z\u00f6tt (az \u00e9rt\u00e9kek \u00f6r\u00f6kl\u0151dnek). A Scoped Values-t a sz\u00e1l-specifikus v\u00e1ltoz\u00f3k mechanizmus\u00e1nak helyettes\u00edt\u00e9s\u00e9re fejlesztik, \u00e9s hat\u00e9konyabbak, amikor nagyon nagy sz\u00e1m\u00fa virtu\u00e1lis sz\u00e1lat haszn\u00e1lnak (ezerek \u00e9s milli\u00f3k). A Scoped Values f\u0151 k\u00fcl\u00f6nbs\u00e9ge a sz\u00e1l-specifikus v\u00e1ltoz\u00f3kt\u00f3l az, hogy ezek egyszer \u00edrhat\u00f3k, k\u00e9s\u0151bb nem m\u00f3dos\u00edthat\u00f3k, \u00e9s mind\u00f6ssze a sz\u00e1l fut\u00e1sa alatt \u00e9rhet\u0151k el. class Server { final static ScopedValue CURRENT_USER = new ScopedValue(); void serve(Request request, Response response) { var level = (request.isAuthorized() ? ADMIN : GUEST); var user = new User(level); ScopedValue.where(CURRENT_USER, user) .run(() -&gt; Application.handle(request, response)); } } class DatabaseManager { DBConnection open() { var user = Server.CURRENT_USER.get(); if (!user.canOpen()) throw new InvalidUserException(); return new DBConnection(\u2026); } }\n<li class=\"l\"> Bevezet\u00e9sre ker\u00fclt a m\u00e1sodik el\u0151zetes implement\u00e1ci\u00f3s sablon (record pattern), amely kiterjeszti a Java 16-ban megjelen\u0151 mintailleszt\u00e9si lehet\u0151s\u00e9get a record t\u00edpus\u00fa oszt\u00e1lyok \u00e9rt\u00e9keinek elemz\u00e9s\u00e9re. P\u00e9ld\u00e1ul: record Point(int x, int y) {} static void printSum(Object obj) { if (obj instanceof Point p) { int x = p.x(); int y = p.y(); System.out.println(x + y); } }\n<li class=\"l\"> Hozz\u00e1adva a negyedik el\u0151zetes megval\u00f3s\u00edt\u00e1sa a minta szerinti egyeztet\u00e9st a &#171;switch&#187; kifejez\u00e9sekben, lehet\u0151v\u00e9 t\u00e9ve, hogy a &#171;case&#187; c\u00edmk\u00e9kben ne pontos \u00e9rt\u00e9keket, hanem rugalmas mint\u00e1kat haszn\u00e1ljunk, amelyek egy sor \u00e9rt\u00e9ket lefednek, amelyekhez kor\u00e1bban terjedelmes &#171;if\u2026else&#187; kifejez\u00e9seket kellett haszn\u00e1lni.       static String formatterPatternSwitch(Object obj) {         return switch (obj) {             case Integer i -&gt; String.format(&#171;int %d&#187;, i);             case Long l    -&gt; String.format(&#171;long %d&#187;, l);             case Double d  -&gt; String.format(&#171;double %f&#187;, d);             case String s  -&gt; String.format(&#171;String %s&#187;, s);             default        -&gt; o.toString();         };     }\n<li class=\"l\"> Hozz\u00e1adva a m\u00e1sodik el\u0151zetes megval\u00f3s\u00edt\u00e1sa az API FFM (Foreign Function &#038; Memory), amely lehet\u0151v\u00e9 teszi a Java programok interakci\u00f3j\u00e1t k\u00fcls\u0151 k\u00f3dokkal \u00e9s adatokkal k\u00fcls\u0151 k\u00f6nyvt\u00e1rakb\u00f3l sz\u00e1rmaz\u00f3 funkci\u00f3k h\u00edv\u00e1s\u00e1n \u00e9s a JVM-en k\u00edv\u00fcli mem\u00f3ria hozz\u00e1f\u00e9r\u00e9s\u00e9n kereszt\u00fcl.\n<li class=\"l\"> A m\u00e1sodik el\u0151zetes megval\u00f3s\u00edt\u00e1s hozz\u00e1adva a virtu\u00e1lis sz\u00e1lakhoz, amelyek k\u00f6nny\u0171 sz\u00e1lak, jelent\u0151sen egyszer\u0171s\u00edtve ezzel a nagy teljes\u00edtm\u00e9ny\u0171, t\u00f6bb sz\u00e1lon fut\u00f3 alkalmaz\u00e1sok \u00edr\u00e1s\u00e1t \u00e9s karbantart\u00e1s\u00e1t.\n<li class=\"l\"> Hozz\u00e1adtuk a m\u00e1sodik v\u00e1ltozat\u00e1t a k\u00eds\u00e9rleti API-nak a struktur\u00e1lt p\u00e1rhuzamoss\u00e1ghoz, amely megk\u00f6nny\u00edti a t\u00f6bb sz\u00e1lon m\u0171k\u00f6d\u0151 alkalmaz\u00e1sok fejleszt\u00e9s\u00e9t az\u00e1ltal, hogy a k\u00fcl\u00f6nb\u00f6z\u0151 sz\u00e1lakon v\u00e9grehajtott t\u00f6bb feladatot egy blokk\u00e9nt kezel.\n<li class=\"l\"> Hozz\u00e1adva az \u00f6t\u00f6dik el\u0151zetes megval\u00f3s\u00edt\u00e1s az API Vector-hoz, amely funkci\u00f3kat biztos\u00edt a vektorsz\u00e1m\u00edt\u00e1sokhoz, amelyeket az x86_64 \u00e9s AArch64 processzorok vektorelt\u00e9r\u0151 utas\u00edt\u00e1saival hajtanak v\u00e9gre, lehet\u0151v\u00e9 t\u00e9ve, hogy egyszerre t\u00f6bb \u00e9rt\u00e9kre is alkalmazhassunk m\u0171veleteket (SIMD). A HotSpot JIT-kompil\u00e1tor \u00e1ltal biztos\u00edtott sk\u00e1l\u00e1ris m\u0171veletek automatikus vektoriz\u00e1l\u00e1si lehet\u0151s\u00e9geivel ellent\u00e9tben az \u00faj API lehet\u0151s\u00e9get ad a vektoriz\u00e1l\u00e1s kifejezett kezel\u00e9s\u00e9re p\u00e1rhuzamos adatfeldolgoz\u00e1s eset\u00e9n.   <\/ul>\n<p>Forr\u00e1s: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=58837\">opennet.ru<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041f\u043e\u0441\u043b\u0435 \u0448\u0435\u0441\u0442\u0438 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f Oracle \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 Java SE 20 (Java Platform, Standard Edition 20), \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u044d\u0442\u0430\u043b\u043e\u043d\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 OpenJDK. \u0417\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0432 Java SE 20 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 \u043f\u0440\u043e\u0448\u043b\u044b\u043c\u0438 \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u043c\u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b Java &#8212; \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0440\u0430\u043d\u0435\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 Java-\u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043f\u043e\u0434 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-107370","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041f\u043e\u0441\u043b\u0435 \u0448\u0435\u0441\u0442\u0438 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f Oracle \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 Java SE 20 (Java Platform, Standard Edition 20), \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u044d\u0442\u0430\u043b\u043e\u043d\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 OpenJDK.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/hu\/blog\/news\/vypusk-java-se-20\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"hu_HU\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0412\u044b\u043f\u0443\u0441\u043a Java SE 20 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041f\u043e\u0441\u043b\u0435 \u0448\u0435\u0441\u0442\u0438 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f Oracle \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 Java SE 20 (Java Platform, Standard Edition 20), \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u044d\u0442\u0430\u043b\u043e\u043d\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 OpenJDK.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/hu\/blog\/news\/vypusk-java-se-20\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-03-21T22:48:09+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-03-22T09:10:35+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Java SE 20 kiad\u00e1s | ProHoster","description":"Hat h\u00f3napos fejleszt\u00e9s ut\u00e1n az Oracle kiadta a Java SE 20 platformot (Java Platform, Standard Edition 20), amelynek referencia-implement\u00e1ci\u00f3jak\u00e9nt az OpenJDK ny\u00edlt projekt m\u0171k\u00f6dik.","canonical_url":"https:\/\/prohoster.info\/hu\/blog\/news\/vypusk-java-se-20","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"hu_HU","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0412\u044b\u043f\u0443\u0441\u043a Java SE 20 | ProHoster","og:description":"\u041f\u043e\u0441\u043b\u0435 \u0448\u0435\u0441\u0442\u0438 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f Oracle \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 Java SE 20 (Java Platform, Standard Edition 20), \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u044d\u0442\u0430\u043b\u043e\u043d\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 OpenJDK.","og:url":"https:\/\/prohoster.info\/hu\/blog\/news\/vypusk-java-se-20","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2023-03-21T22:48:09+00:00","article:modified_time":"2023-03-22T09:10:35+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":[],"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/107370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/comments?post=107370"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/107370\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media?parent=107370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/categories?post=107370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/tags?post=107370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}