Have there been incompatibilities between Java releases where Java source code/Java class files targeting Java version X won't compile/run under version Y (where Y > X) ?
By "Java release" I mean versions such as:
- JDK 1.0 (January, 1996)
- JDK 1.1 (February, 1997)
- J2SE 1.2 (December, 1998)
- J2SE 1.3 (May, 2000)
- J2SE 1.4 (February, 2002)
- J2SE 5.0 (September, 2004)
- Java SE 6 (December, 2006)
House rules:
- Please include references and code examples where possible.
- Please try to be very specific/concrete in your answer.
- A class that is being marked as @Deprecated does not count as a backwards incompatibility.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…