Hi There,
I have an application which has been running happily under Java 1.5 for around a year. We've just had the boxes updated and had Java 1.6 installed.
After deploying the app to the new server we've found the application is throwing an exception when it tries to transform some XML. We couldn't understand why this was happening u...
PS: I am new to Java.
...
I have a distributed JBoss-based application that shows a buggy behavior when compiled and run with Java 1.6. It shows an another bug when compiled with Java 1.5 and run with Java 1.6. But it works fine when compiled and run with Java 1.5. What is the best approach to debug this application? Is there a lint for Java 1.5 to 1.6 conversion...
I want to package a piece of code that absolutely must run on Java 1.5. There's one part of the code where the program can be "enhanced" if the VM is an 1.6 VM.
Basically it's this method:
private long[] findDeadlockedThreads() {
// JDK 1.5 only supports the findMonitorDeadlockedThreads()
// method, so you need to comment out...
Question is regarding Java 5 and Drag n Drop.
Is there a way to determine the drag source component in the drop target TransferHandler?
I need to know this in my canImport(..) or importData(..) method in order to take different actions for transfer data of the same type or DataFlavor.
The way I have achieved this currently is to hijac...
I have installed Eclipse 3.5.2 and the JDK for Java 6.
Here's my installed JREs in Eclipse
I am trying to compile with an ant build file, part of which looks like this and specifies java 1.5:
<target name="compile" depends="build-common, init" description="Compile files. ">
<javac srcdir="${src_dir}" destdir="${build_dir}" debug...
While debugging my project in Eclipse, it will (repeatably, at the same point in the code) pause execution as if it's reached a breakpoint. No exceptions are thrown, the project has no breakpoints, and if I hit resume, it carries on without a problem.
What could be causing this behaviour?
...
Hi,
I am currently playing with introspection and annotations in Java 1.5.
The have a parent abstract class AbstractClass.
The inherited classes can have attributes (of type ChildClass) annotated with a custom @ChildAttribute annotation.
I wanted to write a generic method that would list all @ChildAttribute attributes of an instance.
...
I've been having a frustrating time trying to sort out the logging in my project. In particular, one of the 3rd party libraries we use had one class, com.foo.bar.baz.java, that ignored any configuration in the properties file for the com.foo.bar package, instead following the application-wide properties.
Eventually using %c in the p...
I use a mac (and therefore java 1.6) to develop a cross-platform application that is released in Java 1.5. I've discovered that Eclipse can enforce 1.5 compliance, and that has saved me from publishing some code with 1.6-style @Override syntax. However, eclipse's compliance-detection is limited to syntax. It will not catch functions. ...