java-10 Questions
4
I have code and a test-case in a legacy application, which can be summarized as follows:
@Test
public void testParseDate() throws ParseException {
String toParse = "Mo Aug 18 11:25:26 MESZ +0...
Fraase asked 18/5, 2018 at 12:10
2
Solved
I have installed the Eclipse [Version: Photon Release (4.8.0)] and JDK 10 on a MacBookPro with macOS 10.13.5
When I write in my code: import java.awt.*;
I get the error:
The import java.awt c...
1
In Java 8, I've been using these packages:
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;
import javax.xml.transform....
5
Solved
I am trying to start a server using jre 10.0.1 64 bit. There is an obvious change in the settings for the JVM in windows start batch files. With the setting of -XX:+UseParNewGC as the reference poi...
4
Solved
We are looking at upgrading some legacy code to Java 10. As JAXB is not visible by default (EDIT: and the proper long term solution is not to circumvent the symptom using various JVM flags, but fix...
4
As far as I know there are no plans from oracle to ship java for 32 Bit - but maybe I misunderstand the situation.
If I'm correct - what do we all do if we need to support 32-Bit libraries (dlls)? ...
7
Solved
How do I install Java Development Kit (JDK) 10 on Ubuntu?
The installation instructions on Oracle's help center only explain how to download and extract the archive on Linux platform, without any ...
2
Solved
Both calls are correct:
Collectors.groupingBy((String s)->s.toLowerCase(),Collectors.counting());
Collectors.groupingBy((String s)->s.toLowerCase(Locale.ENGLISH),Collectors.counting());
Sinc...
Puffery asked 19/2, 2021 at 13:54
2
Solved
I am using OkHttp and I need to ignore SSL errors for application debugging. This used to work in Java 8.
final TrustManager[] trustAllCerts = new TrustManager[] {
new X509TrustManager() {
@Over...
0
package samples.study;
/**
*
* @author
*/
public class Singleton {
private Singleton(){}
private static final Singleton instance = new Singleton();
public static Singleton getInstance() {
...
Pierrepierrepont asked 2/9, 2020 at 3:48
2
Solved
After using the Java Flight Recording functionality on a running application, Java's JMC could be used to examine the resulting JFR file to show hot methods, and a percentage of CPU time spent in e...
3
Solved
I am having troubles with this which have been answered dusin of times on this site.
My take on the problem is a bit different. I have a project which builds fine using maven 3.5.x and java release...
Celanese asked 29/10, 2018 at 20:49
3
Solved
I have an application that was working with Java 1.8.0 162 and I'm in the process of upgrading it to Java 10. One of the issues I'm having is that
appProperties.getClass().getResourceAsStream("/a...
3
Solved
I have updated my Java to version 10.0.1 and now I can't run Eclipse anymore.
It shows this message:
a java runtime environment (JRE) or Java development Kit(jdk) must be available in order to ...
9
Solved
Netbeans Version: Apache NetBeans 9.0
Java version: Java 10
No matter what I do, I can't get the javadocs to appear and display method details on anything.
I've gone into the Java Platforms and ...
2
Odd issue I've come across with Tomcat 8.5 using JDK10. It starts up fine but when issuing shutdown I am confronted with this Note:
NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.l...
1
Solved
In answering this question about lambdas which capture local variables, I defined a simple lambda which captures a local variable, and showed that the lambda has a field with that variable's value....
Flame asked 22/12, 2019 at 16:13
7
Solved
It is allowed to assign var in Java 10 with a string like:
var foo = "boo";
While it is not allowed to assign it with a lambda expression such as:
var predicateVar = apple -> apple.getColor(...
2
Solved
Can someone explain the behavior of o2? Is it due to compiler optimization? Is it documented somewhere in the JLS?
public class Test {
public static void main(String[] args) {
Object o1 = new Ob...
Meggs asked 11/12, 2019 at 9:23
3
Solved
Java 10 brings a C#-like var keyword for local type-inference.
But does Java 10 also provide a val keyword, as is found in Scala?
val would work like var but the binding would be final.
var x...
Corsage asked 22/3, 2018 at 11:0
4
Solved
We're planning on migrating our environment from Java 8 to OpenJDK 10. Doing this on my local machine, I've found that Cassandra will no longer start for me, giving the following error :
I can't...
3
Solved
There is a bug in JFX which often manifests when calculating screen co-ordinates
https://bugs.openjdk.java.net/browse/JDK-8194727 and
https://bugs.openjdk.java.net/browse/JDK-8190400
I've tracked...
Toque asked 12/6, 2018 at 23:39
1
Whenever I try to run my application from Intellij Idea I get the following error..
If I build the application via Maven it works fine.
Take a look at my module settings the JDK is v10, the lang...
Clothespress asked 24/8, 2019 at 2:52
2
Solved
We are using Install4j 7.0.6 and set the Java minimum version to "10.0.1".
We are bundling a Java 10.0.1 into the media file.
When we replace the included JVM with a Java 9 VM our Application still...
1
Solved
var is not very handful when you're navigating through the code and investigating the code which is not clear at the first look.
When developers use not self-describing methods names you have...
© 2022 - 2024 — McMap. All rights reserved.