--- a/langtools/test/tools/javac/mixedTarget/ExtendCovariant1.java Wed Jul 09 10:49:32 2014 -0400
+++ b/langtools/test/tools/javac/mixedTarget/ExtendCovariant1.java Thu Jul 10 13:57:27 2014 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -24,10 +24,10 @@
/*
* @test
* @bug 5009712
- * @summary 1.4 javac should not accept the Covariant Return Type
+ * @summary Ensure covariant return type allowed
* @author gafter
*
- * @compile -source 1.4 ExtendCovariant1.java
+ * @compile ExtendCovariant1.java
*/
/**
@@ -37,8 +37,7 @@
*
* java.lang.Appendable java.lang.Appendable.append(char)
*
- * Yet javac should allow extending PrintStream, as long as the user
- * doesn't directly override a covariant method in -source 1.4.
+ * With JDK 1.5, a covariant return is allowed so check that is the case.
**/
public class ExtendCovariant1 extends java.io.PrintStream {
ExtendCovariant1() throws java.io.IOException {