java Programming Glossary: dangerous
Dealing with “Xerces hell” in Java/Maven? http://stackoverflow.com/questions/11677572/dealing-with-xerces-hell-in-java-maven are repackaged under the com.sun. namespace which makes it dangerous to access them directly as they may not be available in some..
Java Strings: compareTo() vs. equals() http://stackoverflow.com/questions/1551235/java-strings-compareto-vs-equals an ordering and not compare for equality and even somewhat dangerous because compareTo 0 does not necessarily imply equality in all..
Immutability of Strings in Java http://stackoverflow.com/questions/1552301/immutability-of-strings-in-java objects . It requires reflection and is very very dangerous and should never ever be used unless you're actually interested..
Varying behavior for possible loss of precision http://stackoverflow.com/questions/2696812/varying-behavior-for-possible-loss-of-precision are sufficient to prevent the compiler from generating dangerous narrowing casts. For language designers it is probably a mistake..
Difference between a deprecated and a legacy API? http://stackoverflow.com/questions/2873254/difference-between-a-deprecated-and-a-legacy-api are discouraged from using typically because it is dangerous or because a better alternative exists. References java.sun.com.. is clear here Deprecated methods e.g. Thread.stop are dangerous and should never be used at all. On the other hand e.g. wait..
Is it wrong to use Deprecated methods or classes in Java? http://stackoverflow.com/questions/2941900/is-it-wrong-to-use-deprecated-methods-or-classes-in-java are discouraged from using typically because it is dangerous or because a better alternative exists. The method is kept in..
Java Generics: Generic type defined as return type only http://stackoverflow.com/questions/338887/java-generics-generic-type-defined-as-return-type-only the method and is absolutely unbounded . This is very very dangerous as no provision is made that the return type actually matches..
How do Java Interfaces simulate multiple inheritance? http://stackoverflow.com/questions/3556652/how-do-java-interfaces-simulate-multiple-inheritance to do this. In Java that was considered to be too dangerous so you can inherit from a main class but you can inherit behaviors..
Java - Leaking this in constructor http://stackoverflow.com/questions/3921616/java-leaking-this-in-constructor calling a method in the constructor and passing this is dangerous since this may not have been fully initialized. It was easy..
Calling virtual method in base class constructor http://stackoverflow.com/questions/448258/calling-virtual-method-in-base-class-constructor a virtual method from a base class constructor can be dangerous since the child class might not be in a valid state. at least.. Calling a virtual method in a constructor is indeed dangerous but sometimes it can end up with the cleanest code. I would..
C# version of java's synchronized keyword? http://stackoverflow.com/questions/541194/c-sharp-version-of-javas-synchronized-keyword of code like so public synchronized void doImportantStuff dangerous code goes here. or public void doImportantStuff trivial stuff.. or public void doImportantStuff trivial stuff synchronized dangerous code goes here. c# java multithreading synchronization share..
Why not to start a thread in the constructor? How to terminate? http://stackoverflow.com/questions/5623285/why-not-to-start-a-thread-in-the-constructor-how-to-terminate This works but my complier flags a warning saying It is dangerous to start a new thread in the constructor. Why is this The second..
The case against checked exceptions http://stackoverflow.com/questions/613954/the-case-against-checked-exceptions a new exception and forgot to catch it That seems very dangerous to me. I would say that a program that displays a stack trace..
When do you use varargs in Java? http://stackoverflow.com/questions/766559/when-do-you-use-varargs-in-java varargs. I don't know what to use them for. Plus it feels dangerous to let people pass as many arguments as they want. What's an..
Why does JPasswordField.getPassword() create a String with the password in it? http://stackoverflow.com/questions/983964/why-does-jpasswordfield-getpassword-create-a-string-with-the-password-in-it Follow up question is this 'hidden' use of getText dangerous in any way Of course a dedicated attacker WILL get your password..
Java leaking this in constructor http://stackoverflow.com/questions/9851813/java-leaking-this-in-constructor the this reference in the constructor not controller is dangerous especially in a multithreaded environment. This is because the..
|