< prev index next >

langtools/test/tools/javac/4241573/T4241573.java

Print this page




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 4241573
  27  * @summary SourceFile attribute includes full path
  28  * @modules jdk.compiler/com.sun.tools.classfile
  29  */
  30 
  31 import com.sun.tools.classfile.Attribute;
  32 import com.sun.tools.classfile.ClassFile;
  33 import com.sun.tools.classfile.SourceFile_attribute;
  34 import java.io.*;
  35 import java.util.*;
  36 import java.util.jar.*;
  37 
  38 public class T4241573 {
  39     public static void main(String... args) throws Exception {
  40         new T4241573().run();
  41     }
  42 
  43     public void run() throws Exception {
  44         // Selection of files to be compiled
  45         File absJar = createJar(new File("abs.jar").getAbsoluteFile(), "j.A");
  46         File relJar = createJar(new File("rel.jar"), "j.R");
  47         File absDir = createDir(new File("abs.dir").getAbsoluteFile(), "d.A");
  48         File relDir = createDir(new File("rel.dir"), "d.R");




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 4241573
  27  * @summary SourceFile attribute includes full path
  28  * @modules jdk.jdeps/com.sun.tools.classfile
  29  */
  30 
  31 import com.sun.tools.classfile.Attribute;
  32 import com.sun.tools.classfile.ClassFile;
  33 import com.sun.tools.classfile.SourceFile_attribute;
  34 import java.io.*;
  35 import java.util.*;
  36 import java.util.jar.*;
  37 
  38 public class T4241573 {
  39     public static void main(String... args) throws Exception {
  40         new T4241573().run();
  41     }
  42 
  43     public void run() throws Exception {
  44         // Selection of files to be compiled
  45         File absJar = createJar(new File("abs.jar").getAbsoluteFile(), "j.A");
  46         File relJar = createJar(new File("rel.jar"), "j.R");
  47         File absDir = createDir(new File("abs.dir").getAbsoluteFile(), "d.A");
  48         File relDir = createDir(new File("rel.dir"), "d.R");


< prev index next >