java-7 Questions
3
Solved
This is some of the code I'm running for a MapleStory server. Whenever a script for an event like talking to an NPC is supposed to occur, this script will be run to create a scripting path for what...
Sandpit asked 16/1, 2021 at 6:41
11
I have a mapping application that can add ArcGIS 9.3+ base maps given a URL. One of the URLs that I would like to add is from a customer's URL and is secured. My mapping application was using Java ...
Legra asked 4/1, 2013 at 0:40
4
Since Java 7, we have
o.hashCode();
Objects.hashCode(o);
Objects.hash(o);
The first two are roughly the same with the null check, but what is last one?
When a single object reference is supplied,...
6
Solved
I am a bit of an idiot to how SSL and Webservices work at the fine-grained level. I am developing a system that calls several web services, some with secured URLs and others that are not with littl...
5
In all versions of Java up to 6, the default behaviour of a JTextPane put inside a JScrollPane was: wrap lines at word boundaries if possible. If not, then wrap them anyway.
In JDK 7, the default ...
5
Solved
I could not understand how java.nio.file.Files.isSameFile method is different from java.nio.file.Path.equals method.
Could anybody please tell how they are different?
29
Solved
On my machine I have two Java versions installed: (1.6 and 1.7 installed manually by me). I need both of them for different projects. But for Maven I need 1.7, but my Maven uses the 1.6 Java versio...
Guadalupeguadeloupe asked 29/10, 2013 at 9:41
5
Solved
I'm trying to run Cucumber with Maven on a UNIX-like (unfortunately I'm forced to use Windows, though cmd.exe has the same results) command line:
mvn clean test -Dcucumber.options="src/test/resour...
Balthasar asked 26/5, 2016 at 21:50
13
Solved
I saw many questions about this, and tried to solve the problem, but after one hour of googling and a lots of trial & error, I still can't fix it. I hope some of you catch the problem.
This is...
Sunken asked 11/7, 2012 at 21:20
2
There are two similar methods in the Java ObjectInputStream:
readUnshared()
and
readObject()
The documentation states:
public Object readUnshared() throws IOException, ClassNotFoundException...
Platinum asked 2/4, 2015 at 23:59
4
Solved
after installing jdk7u5 for mac os I got different java-versions for "normal" user and root.
java -version gives me the 7.
sudo java -version gives me the 6.
I've looked up in the
/System/Libra...
3
Solved
I've recently come across the java @SafeVarargs annotation. Googling for what makes a variadic function in Java unsafe left me rather confused (heap poisoning? erased types?), so I'd like to know a...
Nonperformance asked 9/1, 2013 at 8:28
10
After upgrading to JDK 1.7 I am getting below exception:
java.lang.VerifyError: Expecting a stackmap frame at branch target 71 in method com.abc.domain.myPackage.MyClass$JaxbAccessorM_getDescripti...
7
Solved
Am using Java 1.7.
Trying to convert:
2018-05-23T23:18:31.000Z
into
2018-05-23 23:18:31
DateUtils class:
public class DateUtils {
public static String convertToNewFormat(String dateStr)...
Parsons asked 23/5, 2018 at 23:42
4
Solved
I have a List<ImmutableList<T>>. I want to flatten it into a single ImmutableList<T> that is a concatenation of all the internal ImmutableLists. These lists can be very long so I ...
5
Solved
are the functional interfaces of java 8 available somewhere (i.e. a jar) so I can use them in a Java 7 project? that way I could later on easier port the code to idiomatic java 8. if not, is that t...
Justinajustine asked 7/4, 2014 at 7:1
5
Solved
I was testing the precedence between && and || and I had an example that was confusing. In Java, && has higher operator precedence than the operator ||.
So if we have those 3 expre...
Souther asked 16/10, 2016 at 15:9
1
I have a Jersey application running on Glassfish 4 (4.1 build 13), JDK 1.7 update 67 and AWS Linux AMI and I'm noticing that after some hours running it, CPU usage goes up and stays up even though ...
Faldstool asked 18/9, 2014 at 21:39
4
Solved
Is it safe to remove multiple items from an ArrayList while iterating through it with an iterator?
Iterator<String> iterator = nameList.iterator();
while(iterator.hasNext()){
String s = it...
14
Solved
I'm trying to install Java to use Eclipse (I followed all instructions to install Java and Eclipse) but my Eclipse is not starting due to some bad configuration I guess. I can't figure out why it's...
3
I am using Intellij Ultimate edition 14.0.2
Working on a Java project using Maven as my build tool.
We are getting this error when attempting to launch my project via Tomcat server.
Applicati...
Helsell asked 13/3, 2015 at 16:29
6
Solved
I made a color palette with a jPanel and a JLabel array in it. At first it worked well, but then i put some other jLabels out of the JPanel and added them some events. Now I keep getting this error...
Finzer asked 26/11, 2012 at 23:54
6
Solved
It seems to me that such a switch statement would make a lot of sense, but it gives a compile error :
public void m(Class c) {
switch (c) {
case SubClassOfC1.class : //do stuff; break;
case Su...
Elizebethelizondo asked 27/7, 2015 at 22:0
4
Solved
The documentation for the overflow states:
OVERFLOW – Indicates that events might have been lost or discarded.
It does not say under what circumstance should I expect event to be lost or disc...
3
Solved
Every time I run Android Studio, this loading screen pops up, but Android Studio stays here and doesn't load. It's like this following picture except that the loading bar is loaded all the way but ...
Hobard asked 27/5, 2016 at 4:4
1 Next >
© 2022 - 2024 — McMap. All rights reserved.