java-11

Does GraalVM JVM support java 11?

不打扰是莪最后的温柔 提交于 2020-06-09 12:54:11
问题 How build GraalVM JVM for Java 11 ? (I don't see any official distributives only java 8) 回答1: Not currently. From this GitHub issue, it seems that it will be ready around the end of February, 2019. However, Java 11 does include support for the Graal compiler, which can be enabled with the following flags: -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler Edit: According to that GitHub issue, it looks like Graal 19.3 will be released on November 19, 2019, which should include Java 11

JFileChooser On Java 11 , Problem Of Translation to French

冷暖自知 提交于 2020-06-09 05:50:54
问题 I make a migration to Java 11 and I have a problem in translation with JFileChooser panel. I have a partial translation (In French), Is there a Java 11 bug? do you have a solution please? Thank you 回答1: This is by design. See the release notes: Previous releases were translated into English, Japanese, and Simplified Chinese as well as French, German, Italian, Korean, Portuguese (Brazilian), Spanish, and Swedish. However, in JDK 11 and later, French, German, Italian, Korean, Portuguese

Apache HttpClient failing with Java 11 on macOS

只谈情不闲聊 提交于 2020-06-08 07:53:49
问题 I'm trying to move my code from Java 8 to Java 11, this code... private static String readMultiHttpsUrlResultAsString(List<String> mbRecordingIds, String level) throws Exception { String result = ""; class NaiveTrustStrategy implements TrustStrategy { @Override public boolean isTrusted(X509Certificate[] chain, String authType) throws CertificateException { return true; } }; SSLContext sslcontext = org.apache.http.ssl.SSLContexts.custom() .loadTrustMaterial(new NaiveTrustStrategy()) .build();

Maven surefire plugin not running tests after migrating from Spock 1.2 to 2.0-M2

送分小仙女□ 提交于 2020-05-30 11:44:38
问题 Working setup - Spock older version - 1.2-groovy-2.4 jdk version - 8 Maven surefire plugin version - 2.22.0 Maven version - 3.5.0 Migrated setup - Spock version - 2.0-M2-groovy-2.5 jdk version - 11 Maven surefire plugin version - 3.0.0-M4 Maven version - 3.6.3 MCVE - https://github.com/ajaydivakaran/spock_spike The intent of upgrading Spock was to make it compatible with jdk 11. The test class files are present in the target/test-classes folder but are not run. 回答1: Variant A: JUnit 4 + Spock

Maven surefire plugin not running tests after migrating from Spock 1.2 to 2.0-M2

扶醉桌前 提交于 2020-05-30 11:42:49
问题 Working setup - Spock older version - 1.2-groovy-2.4 jdk version - 8 Maven surefire plugin version - 2.22.0 Maven version - 3.5.0 Migrated setup - Spock version - 2.0-M2-groovy-2.5 jdk version - 11 Maven surefire plugin version - 3.0.0-M4 Maven version - 3.6.3 MCVE - https://github.com/ajaydivakaran/spock_spike The intent of upgrading Spock was to make it compatible with jdk 11. The test class files are present in the target/test-classes folder but are not run. 回答1: Variant A: JUnit 4 + Spock

Since OpenJDk Java 11 getting javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

余生颓废 提交于 2020-05-28 04:51:36
问题 Have recently updated application from Oracle Java 9 to AdoptJDk 11.0.6 and I am now seeing errors of the form this code: public static String convertWikidataUrl(String wikidataUrl) { String qPage = wikidataUrl.substring(wikidataUrl.lastIndexOf('/') + 1); String apiUrl = WIKIDATA_IMAGE_API_URL + qPage; try { URL url = new URL(apiUrl); HttpURLConnection uc = (HttpURLConnection) url.openConnection(); int responseCode = uc.getResponseCode(); if (responseCode != HttpURLConnection.HTTP_OK) {

javax.net.ssl.SSLException: No PSK available. Unable to resume

柔情痞子 提交于 2020-05-26 10:39:30
问题 I am using Jetty client to send outgoing requests. Code that runs perfectly under Java 10 suddenly gets the following exception under Java 11: javax.net.ssl.SSLException: No PSK available. Unable to resume. at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:129) at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:117) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:308) at java.base/sun.security.ssl.TransportContext.fatal

Does G1GC release back memory to the OS even if Xms = Xmx?

こ雲淡風輕ζ 提交于 2020-05-23 13:01:14
问题 After reading some answers like this and JEP-346, I have realised that the G1 does release memory back to the OS. However does it release memory back to the OS, even to the point that current memory use can drop below the initial heap memory (i.e before this JEP, in my case JDK11)? Assume I have a Java 11 VM running with Xms and Xmx set as 5GB , on a 8GB RAM, however I am consuming only around 1GB . Will G1 release enough memory back to the OS? I didn't find any documentation anywhere which

Java Notarization of libAppleScriptEngine.dylib failing with The binary uses an SDK older than the 10.9 SDK

谁都会走 提交于 2020-05-16 19:15:01
问题 End of 2019 I had basic notarization of my Java 8 application working, on February 2020 Apple tightened the rules regarding notarization and this stopped my application from being notarized. Since I needed to move to Java 11 anyway I switched to Java 11 as I understood that this could be notarized ok and made necessary code changes but still having some problems. Specifically there is an option in my application to communicate with Apple Music app (formerly iTunes) using Applescript to

Java Notarization of libAppleScriptEngine.dylib failing with The binary uses an SDK older than the 10.9 SDK

纵然是瞬间 提交于 2020-05-16 19:12:50
问题 End of 2019 I had basic notarization of my Java 8 application working, on February 2020 Apple tightened the rules regarding notarization and this stopped my application from being notarized. Since I needed to move to Java 11 anyway I switched to Java 11 as I understood that this could be notarized ok and made necessary code changes but still having some problems. Specifically there is an option in my application to communicate with Apple Music app (formerly iTunes) using Applescript to