873N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 873N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 873N/A# This code is free software; you can redistribute it and/or modify it 873N/A# under the terms of the GNU General Public License version 2 only, as 873N/A# published by the Free Software Foundation. 873N/A# This code is distributed in the hope that it will be useful, but WITHOUT 873N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 873N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 873N/A# version 2 for more details (a copy is included in the LICENSE file that 873N/A# accompanied this code). 873N/A# You should have received a copy of the GNU General Public License version 873N/A# 2 along with this work; if not, write to the Free Software Foundation, 873N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 873N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 873N/A# @summary Test handling of the Class-Path attribute in jar file manifests 873N/A# @author Martin Buchholz 873N/A#---------------------------------------------------------------- 873N/A# Create mutually referential jar files 873N/A#---------------------------------------------------------------- 873N/A public static int f() { return B.g(); } 873N/A public static int g() { return 0; } 873N/A public static int f() { return A.g(); } 873N/A public static int g() { return 0; } 873N/A public static void main(String []a) { System.exit(A.f() + B.f()); } 873N/A# Test 2: Use of extension directories is incorrect