test/tools/javac/6330997/T6330997.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2006, 2007, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2006, 2011, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 21,36 ****
* questions.
*/
/**
* @test
! * @bug 6330997
* @summary javac should accept class files with major version of the next release
* @author Wei Tao
* @clean T1 T2
! * @compile -target 7 T1.java
! * @compile -target 7 T2.java
* @run main/othervm T6330997
*/
import java.nio.*;
import java.io.*;
--- 21,36 ----
* questions.
*/
/**
* @test
! * @bug 6330997 7025789
* @summary javac should accept class files with major version of the next release
* @author Wei Tao
* @clean T1 T2
! * @compile -target 8 T1.java
! * @compile -target 8 T2.java
* @run main/othervm T6330997
*/
import java.nio.*;
import java.io.*;