Can't develop Java 1.5 apps on Snow Leopard
| Originator: | frankoid | ||
| Number: | rdar://7341492 | Date Originated: | 27-Oct-2009 |
| Status: | Open | Resolved: | |
| Product: | Mac OS X | Product Version: | 10.6.1 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: I develop a Java application that must run on Java 1.5+. I compile the app against JDK 1.5 to make sure that I do not accidentally use new APIs introduced in 1.6. I cannot upgrade to Snow Leopard on my work machine because Snow Leopard does not support JDK 1.5. Steps to Reproduce: 1. Write Java code that calls a method introduced in JDK 1.6 (e.g. java.lang.String.isEmpty()). 2. Compile against JDK 1.5 Expected Results: Compilation should fail, because the method is not present in JDK 1.5. Actual Results: Compilation succeeds, but when the app is tested on JDK 1.5 it fails at runtime with a java.lang.NoSuchMethodException Regression: Works on OS X 10.5.8 Notes: None
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!