Hacker News new | past | comments | ask | show | jobs | submit login

You're confusing JVM versions with Java versions. A JVM class compiled for JVM 6 target will not run under JVM 1.4. It will fail to load because of version mismatch.

However, you can use Java 6 compiler to compile Java 6 code to JVM 1.4 bytecode. That's what you are talking about.




Yes, I am. I got confused over what you meant by " It will warn you if you use any >1.4 features" - I thought you meant language >1.4, not bytecode spec >1.4. Thanks for setting me straight :)


I actually meant "language features that require bytecode spec >1.4". Varargs and enums perhaps?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: