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. I used the 1.6 String.isEmpty() method, for example, which built and ran with no warnings in Eclipse and at my mac's commandline, but then broke when moved over to our 1.5 linux machines.
Is there a way, perhaps something I could run on the jar files after building, or any other way, to catch 1.6-isms I've slipped in, without leaving my mac?