file_name stringlengths 6 86 | file_path stringlengths 45 249 | content stringlengths 47 6.26M | file_size int64 47 6.26M | language stringclasses 1 value | extension stringclasses 1 value | repo_name stringclasses 767 values | repo_stars int64 8 14.4k | repo_forks int64 0 1.17k | repo_open_issues int64 0 788 | repo_created_at stringclasses 767 values | repo_pushed_at stringclasses 767 values |
|---|---|---|---|---|---|---|---|---|---|---|---|
ConditionalArgTypes_2.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/ConditionalArgTypes_2.java | /*
* Copyright (c) 2000, 2003, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4312781 4881179 4949543
* @summary Verify that both branches of a conditional expression must agree in type.
* @author maddox
*
* @compile/fail -source 1.4 ConditionalArgTypes_2.java
* @compile ConditionalArgTypes_2.java
*/
// This case was working before -- controlling expression is not a constant.
class ConditionalArgTypes_2 {
public static void main (String [] args) {
boolean b = true;
System.out.println(b?0:false);
}
}
| 1,554 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
TryInInstanceInit.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/TryInInstanceInit.java | /*
* Copyright (c) 1997, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4038527
* @summary Compiler used to throw an exception when it encountered
* a try-catch, try-finally, or synchronized statement in an
* instance initializer.
* @author turnidge
*
* @compile TryInInstanceInit.java
*/
class TryInInstanceInit {
{
try {
}
catch (Exception e) {}
finally {}
synchronized (this) {
}
}
}
| 1,470 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
CascadedInnerNewInstance.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/CascadedInnerNewInstance.java | /*
* Copyright (c) 1997, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4030426
* @summary Compiler should accept non-identifier expressions as
* the outer instance in a 'new' expression for an inner class.
*
* @compile CascadedInnerNewInstance.java
*/
class CascadedInnerNewInstance {
Object createInner1InnerInnerMost() {
return new Inner1().new InnerMost().new InnerInnerMost();
}
class Inner1 {
class InnerMost {
class InnerInnerMost { }
}
}
Inner2.InnerMost createInner2InnerMost() {
return new Inner2().new InnerMost();
}
Object createInner2InnerInnerMost() {
return createInner2InnerMost().new InnerInnerMost();
}
class Inner2 {
class InnerMost {
class InnerInnerMost { }
}
}
}
| 1,817 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
UnterminatedLineComment.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/UnterminatedLineComment.java | /*
* Copyright (c) 2002, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4316827 4733858
* @summary No diagnostic reported for "//" with no following LineTerminator
*
* @run compile UnterminatedLineComment.java
*/
/* Note: this test file is carefully crafted to end with a single-line
* comment that is NOT followed by a newline. If you edit this file,
* please make sure your editor does not insert a newline there.
*/
| 1,428 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
SerialWarn.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/SerialWarn.java | /*
* Copyright (c) 2003, 2004, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4854628
* @summary include Throwable subclasses in missing serialVersionUID warning
* @author gafter
*
* @compile -Werror SerialWarn.java
* @compile/fail -Xlint:serial -Werror SerialWarn.java
*/
class SerialWarn extends Throwable {}
| 1,337 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
DivByZero.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/DivByZero.java | /*
* Copyright (c) 1998, 1999, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4019300 4019304 4089107
* @summary The compiler did not allow division by a known constant zero.
* @compile DivByZero.java
* @author turnidge
*/
public class DivByZero {
float f1 = 1.0f;
float fe = f1/0.0f;
double d1 = 1.0d;
double de = d1/0.0d;
int i = 3/0;
int j = 3%0;
}
| 1,384 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
OverridePosition.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/OverridePosition.java | /*
* @test /nodynamiccopyright/
* @bug 4524388 4785453
* @summary "attemping to assign weaker access" message doesn't give method line number
* @author Neal Gafter
*
* @compile/fail/ref=OverridePosition.out -XDrawDiagnostics OverridePosition.java
*/
package T4524388;
interface Interface {
void method();
}
class Testa implements Interface {
void method() {}
}
class A {
void method() {}
}
class B extends A implements Interface {
}
| 458 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6407066.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6407066.java | /*
* Copyright (c) 2006, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6407066
* @summary Paths code should not discard non-existent directories
*/
import java.io.File;
import java.util.*;
import javax.tools.*;
public class T6407066 {
public static void main(String... args) throws Exception {
String testSrc = System.getProperty("test.src", ".");
String testClasses = System.getProperty("test.classes", ".");
JavaCompiler tool = ToolProvider.getSystemJavaCompiler();
StandardJavaFileManager jfm = tool.getStandardFileManager(null, null, null);
List<File> path = new ArrayList<File>();
path.add(new File("BadDirectory"));
path.add(new File(testSrc));
path.add(new File("BadFile.jar"));
jfm.setLocation(StandardLocation.SOURCE_PATH, path);
List<File> path2 = new ArrayList<File>();
for (File f: jfm.getLocation(StandardLocation.SOURCE_PATH))
path2.add(f);
if (!path.equals(path2))
throw new AssertionError("path not preserved");
}
}
| 2,071 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
AbstractOverride.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/AbstractOverride.java | /*
* Copyright (c) 2003, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4929736
* @summary Overload resolution when an abstract method overrides a concrete one
* @author gafter
*
* @compile AbstractOverride.java
*/
class AbstractOverride {
static class Ex extends Exception {}
static class A {
void f() throws Ex {}
}
static abstract class B extends A {
abstract void f();
}
static class C extends B {
void f() {}
}
public static void main(String[] args) {
B b = new C();
b.f();
}
}
| 1,565 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
ExtendArray.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/ExtendArray.java | /*
* @test /nodynamiccopyright/
* @bug 4336282 4785453
* @summary Verify that extending an erray class does not crash the compiler.
*
* @compile/fail/ref=ExtendArray.out -XDrawDiagnostics ExtendArray.java
*/
// Note that an error is expected, but not a crash.
public class ExtendArray extends Object[] {}
| 314 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
CyclicInheritance2.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/CyclicInheritance2.java | /*
* Copyright (c) 2003, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4781830
* @summary incorrect cyclic inheritance error versus name hiding
*
* @compile CyclicInheritance2.java
*/
package p1;
class A {
public class p1 {}
}
class C extends p1.B {
p1.C p;
}
class B extends p1.A {
private class p1 {}
}
| 1,326 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
EmptyDocComments.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/EmptyDocComments.java | /*
* Copyright (c) 1999, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* @test
* @bug 4160204 4234488
* @summary Create empty javadoc comments and verify that javac does not crash.
* @compile EmptyDocComments.java
*/
// WARNING: This file intentionally contains whitespace characters at the end of
// some lines. Do not delete them!
// If this file fails to compile, then the test has failed. The test does not
// need to be run.
public class EmptyDocComments
{
public static void Main(String [] args)
{
}
// Verify that empty doc comments don't cause a crash.
/**
* */
public static void emptyDocComment0()
{
System.out.println("javadoc comment");
System.out.println("- contains whitespace");
System.out.println("- ends on same line as potential comment");
}
/**
***/
public static void emptyDocComment1()
{
System.out.println("javadoc comment");
System.out.println("- contains nothing");
System.out.println("- ends on same line as potential comment");
}
/** */
public static void emptyDocComment2()
{
System.out.println("javadoc comment");
System.out.println("- contains whitespace");
System.out.println("- ends on same line as comment start");
}
/**
*
*/
public static void emptyDocComment3()
{
System.out.println("javadoc comment");
System.out.println("- contains whitespace");
System.out.println("- ends on new line ");
}
/***/
public static void emptyDocComment4()
{
System.out.println("minimal javadoc comment");
System.out.println("- contains nothing");
System.out.println("- ends on same line as comment start");
}
/**/
public static void emptyDocComment5()
{
System.out.println("minimal _java_ comment");
System.out.println("- contains nothing");
System.out.println("- ends on same line as comment start");
}
/** **** */
public static void emptyDocComment6()
{
System.out.println("javadoc comment");
System.out.println("- contains \"*\"");
System.out.println("- ends on same line as comment start");
}
// Verify that we properly handle very small, non-empty comments.
/** a */
public static void singleChar0()
{
System.out.println("javadoc comment");
System.out.println("- contains a single character");
System.out.println("- ends on same line as comment start");
}
/**
* a */
public static void singleChar1()
{
System.out.println("javadoc comment");
System.out.println("- contains a single character and trailing whitespace");
System.out.println("- ends on same line as potential comment");
}
/**
* a
*/
public static void singleChar2()
{
System.out.println("javadoc comment");
System.out.println("- contains a single character, no trailing whitespace");
System.out.println("- ends on new line ");
}
/**
a
*/
public static void singleChar3()
{
System.out.println("javadoc comment");
System.out.println("- contains a single character and trailing whitespace");
System.out.println("- ends on new line ");
}
}
| 4,341 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
DuplicateClass.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/DuplicateClass.java | /*
* Copyright (c) 2001, 2002, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4531500
* @summary Cascade of problems from duplicate class can cause compiler crash.
* @author gafter
*
* @compile/fail DuplicateClass.java
*/
/**
* Compiling this translation unit should fail; there is, after all, a
* duplicate class. Nonetheless, the compiler should not crash while
* processing it.
*/
public class DuplicateClass {
protected void clone() {
super.clone();
}
}
public class DuplicateClass {}
| 1,517 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
BreakAcrossClass.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/BreakAcrossClass.java | /*
* Copyright (c) 2001, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4407643
* @summary javac throws NullPointerException for break to label outside of class
* @author gafter
*
* @compile/fail BreakAcrossClass.java
*/
class BreakAcrossClass {
public static void main(String argv[]) {
final int i = 6;
M: {
class A {
{
if (i != 5) break M;
}
}
System.out.println("failed : " + i);
}
System.out.println("passed : " + i);
}
}
| 1,558 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
FinallyWarn.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/FinallyWarn.java | /*
* Copyright (c) 2003, 2004, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4821353
* @summary new warning "finally cannot complete normally" should not be enabled by default
* @author gafter
*
* @compile/fail -Xlint:finally -Werror FinallyWarn.java
* @compile -Werror FinallyWarn.java
*/
class FinallyWarn {
void f() {
try {
} finally {
return;
}
}
}
| 1,405 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
MissingInclude.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/MissingInclude.java | /*
* Copyright (c) 2001, 2002, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4509051 4785453
* @summary javac <AT>sourcefiles should catch Exception, when sourcefiles doesn't exist.
* @author gafter
*
* @run shell MissingInclude.sh
*/
class MissingInclude {}
| 1,266 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
SuperField.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/SuperField.java | /*
* Copyright (c) 2002, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4336291
* @summary wrong bytecode for qualified access of superclass field
* @author gafter
*
* @compile SuperField.java
* @run main SuperField
*/
public class SuperField extends B {
class IC extends B {
IC(String name) { super(name); }
void doCheck() {
if (SuperField.super.ref.name != "obj.super.ref")
throw new Error();
}
}
protected B ref = null;
SuperField(String name) { super(name); }
public static void main(String[] args) {
SuperField obj = new SuperField("obj");
obj.ref = new SuperField("obj.ref");
obj.put(new SuperField("obj.super.ref"));
IC ins = obj.new IC("ins");
ins.doCheck();
}
}
class B {
String name;
protected B ref;
B(String name) { this.name = name; }
void put(B b) { ref = b; }
class S {
String get() { return name; }
}
}
| 1,980 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6340549.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6340549.java | /*
* Copyright (c) 2005, 2010, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test 6403456
* @summary javax.tools.JavaCompilerTool.getStandardFileManager().list() includes directories
*/
import javax.tools.*;
import java.util.*;
import java.io.*;
import static javax.tools.JavaFileObject.Kind;
public class T6340549 {
public static void main(String... args) throws Exception {
// Ensure a directory exists
File dir = new File("temp" + args.hashCode());
if (!dir.exists())
dir.mkdir();
if (!dir.isDirectory())
throw new AssertionError("Not a directory " + dir);
try {
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
StandardJavaFileManager jfm = compiler.getStandardFileManager(null, null, null);
jfm.setLocation(StandardLocation.CLASS_PATH, Arrays.asList(new File(".")));
for (JavaFileObject jfo : jfm.list(StandardLocation.CLASS_PATH,
"", EnumSet.of(Kind.OTHER), false)) {
if (new File(jfo.getName()).isDirectory()) {
throw new AssertionError("Found directory: " + jfo);
}
}
} finally {
dir.delete(); // cleanup
}
}
}
| 2,260 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
NonStaticFieldExpr4d.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/NonStaticFieldExpr4d.java | /*
* Copyright (c) 2003, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
class NonStaticFieldExpr4d extends p1.NonStaticFieldExpr4c {
// since a.i is an instance field, and qualifier is not d or subclass,
// only b.i is accessible
int i = p1.NonStaticFieldExpr4c.i;
}
| 1,259 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
QualifiedThisAndSuper_1.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/QualifiedThisAndSuper_1.java | /*
* Copyright (c) 1998, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4147520
* @summary Verify correct implementation of qualified 'this' and 'super'.
* @author maddox
*
* @run compile QualifiedThisAndSuper_1.java
* @run main QualifiedThisAndSuper_1
*/
public class QualifiedThisAndSuper_1 {
public class AS {
String s = "ass";
private String t = "ast";
protected String u = "asu";
String m() { return "asm"; }
private String n() { return "asn"; }
protected String o() { return "aso"; }
}
public class BS {
String s = "bss";
private String t = "bst";
protected String u = "bsu";
String m() { return "bsm"; }
private String n() { return "bsn"; }
protected String o() { return "bso"; }
}
public class CS {
String s = "css";
private String t = "cst";
protected String u = "csu";
String m() { return "csm"; }
private String n() { return "csn"; }
protected String o() { return "cso"; }
}
void check(String expr, String result, String expected) {
if (!result.equals(expected)) {
throw new Error("Evaluated "+ expr +
" : result " + result + ", expected " + expected);
}
}
public class A extends AS {
A() { super(); }
String s = "as";
private String t = "at";
protected String u = "au";
String m() { return "am"; }
private String n() { return "an"; }
protected String o() { return "ao"; }
public class B extends BS {
B() { super(); }
String s = "bs";
private String t = "bt";
protected String u = "bu";
String m() { return "bm"; }
private String n() { return "bn"; }
protected String o() { return "bo"; }
public class C extends CS {
C() { super(); }
String s = "cs";
private String t = "ct";
protected String u = "cu";
String m() { return "cm"; }
private String n() { return "cn"; }
protected String o() { return "co"; }
void test() {
check("this.m()", this.m(), "cm");
check("A.this.m()", A.this.m(), "am");
check("B.this.m()", B.this.m(), "bm");
check("C.this.m()", C.this.m(), "cm");
check("super.m()", super.m(), "csm");
check("A.super.m()", A.super.m(), "asm");
check("B.super.m()", B.super.m(), "bsm");
check("C.super.m()", C.super.m(), "csm");
// should re-use access methods.
check("A.super.m()", A.super.m(), "asm");
check("B.super.m()", B.super.m(), "bsm");
check("C.super.m()", C.super.m(), "csm");
//---
check("this.n()", this.n(), "cn");
check("A.this.n()", A.this.n(), "an");
check("B.this.n()", B.this.n(), "bn");
check("C.this.n()", C.this.n(), "cn");
check("super.n()", super.n(), "csn");
check("A.super.n()", A.super.n(), "asn");
check("B.super.n()", B.super.n(), "bsn");
check("C.super.n()", C.super.n(), "csn");
// should re-use access methods.
check("A.super.n()", A.super.n(), "asn");
check("B.super.n()", B.super.n(), "bsn");
check("C.super.n()", C.super.n(), "csn");
//---
check("this.o()", this.o(), "co");
check("A.this.o()", A.this.o(), "ao");
check("B.this.o()", B.this.o(), "bo");
check("C.this.o()", C.this.o(), "co");
check("super.o()", super.o(), "cso");
check("A.super.o()", A.super.o(), "aso");
check("B.super.o()", B.super.o(), "bso");
check("C.super.o()", C.super.o(), "cso");
// should re-use access methods.
check("A.super.o()", A.super.o(), "aso");
check("B.super.o()", B.super.o(), "bso");
check("C.super.o()", C.super.o(), "cso");
//---
check("this.s", this.s, "cs");
check("A.this.s", A.this.s, "as");
check("B.this.s", B.this.s, "bs");
check("C.this.s", C.this.s, "cs");
//---
check("this.t", this.t, "ct");
check("A.this.t", A.this.t, "at");
check("B.this.t", B.this.t, "bt");
check("C.this.t", C.this.t, "ct");
//---
check("this.u", this.u, "cu");
check("A.this.u", A.this.u, "au");
check("B.this.u", B.this.u, "bu");
check("C.this.u", C.this.u, "cu");
//---
check("super.s", super.s, "css");
check("A.super.s", A.super.s, "ass");
check("B.super.s", B.super.s, "bss");
check("C.super.s", C.super.s, "css");
//---
check("super.t", super.t, "cst");
check("A.super.t", A.super.t, "ast");
check("B.super.t", B.super.t, "bst");
check("C.super.t", C.super.t, "cst");
//---
check("super.u", super.u, "csu");
check("A.super.u", A.super.u, "asu");
check("B.super.u", B.super.u, "bsu");
check("C.super.u", C.super.u, "csu");
//---
A.this.s = "foo";
System.out.println(A.this.s);
check("A.this.s", A.this.s, "foo");
B.this.s = "bar";
System.out.println(B.this.s);
check("B.this.s", B.this.s, "bar");
C.this.s = "baz";
System.out.println(C.this.s);
check("C.this.s", C.this.s, "baz");
A.this.t = "foo";
System.out.println(A.this.t);
check("A.this.t", A.this.t, "foo");
B.this.t = "bar";
System.out.println(B.this.t);
check("B.this.t", B.this.t, "bar");
C.this.t = "baz";
System.out.println(C.this.t);
check("C.this.t", C.this.t, "baz");
A.this.u = "foo";
System.out.println(A.this.u);
check("A.this.u", A.this.u, "foo");
B.this.u = "bar";
System.out.println(B.this.u);
check("B.this.u", B.this.u, "bar");
C.this.u = "baz";
System.out.println(C.this.u);
check("C.this.u", C.this.u, "baz");
A.super.s = "foo";
System.out.println(A.super.s);
check("A.super.s", A.super.s, "foo");
B.super.s = "bar";
System.out.println(B.super.s);
check("B.super.s", B.super.s, "bar");
C.super.s = "baz";
System.out.println(C.super.s);
check("C.super.s", C.super.s, "baz");
A.super.t = "foo";
System.out.println(A.super.t);
check("A.super.t", A.super.t, "foo");
B.super.t = "bar";
System.out.println(B.super.t);
check("B.super.t", B.super.t, "bar");
C.super.t = "baz";
System.out.println(C.super.t);
check("C.super.t", C.super.t, "baz");
A.super.u = "foo";
System.out.println(A.super.u);
check("A.super.u", A.super.u, "foo");
B.super.u = "bar";
System.out.println(B.super.u);
check("B.super.u", B.super.u, "bar");
C.super.u = "baz";
System.out.println(C.super.u);
check("C.super.u", C.super.u, "baz");
}
}
void test() throws Exception {
C c = new C();
c.test();
}
}
void test() throws Exception {
B b = new B();
b.test();
}
}
public static void main(String[] args) throws Exception {
A a = new QualifiedThisAndSuper_1().new A();
a.test();
}
}
| 10,055 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
QualifiedConstant.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/QualifiedConstant.java | /*
* Copyright (c) 1999, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4266342
* @summary Verify that instance variable not allowed as constant qualifier.
* @author maddox
*
* @run compile/fail QualifiedConstant.java
*/
import java.awt.event.MouseEvent;
public class QualifiedConstant {
public void processMouseEvent (MouseEvent event) {
switch (event.getID ()) {
case event.MOUSE_RELEASED: // Not constant by JLS 15.27
break;
}
}
}
| 1,489 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
CyclicInheritance4.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/CyclicInheritance4.java | /*
* Copyright (c) 2003, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4781830
* @summary incorrect cyclic inheritance error versus name hiding
*
* @compile CyclicInheritance4.java
* @run main CyclicInheritance4
*/
class AX1 {
static class Z {
Z() {
throw new Error("WRONG");
}
}
}
class AX {
static class Z {
Z() {
System.out.println("correct");
}
}
}
class Y extends AX.Z {
class AX extends AX1 {
}
}
public class CyclicInheritance4 {
public static void main(String[] args) {
new Y();
}
}
| 1,595 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
EmptyBreak.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/EmptyBreak.java | /*
* Copyright (c) 1999, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* @test
* @bug 4238511
* @summary Empty "default/case" statements should not cause the compiler to crash.
*
* @run clean EmptyBreak
* @run compile EmptyBreak.java
*/
// If the test fails to compile, then the bug exists.
public class EmptyBreak {
public void emptyDefault(int i) {
switch (i) {
default:
// empty!
break;
}
}
public void emptyCase(int i) {
switch (i) {
case 1:
// empty!
break;
}
}
}
| 1,601 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
EarlyAssert.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/EarlyAssert.java | /*
* Copyright (c) 2001, 2010, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4402864
* @summary Verify that assertions are enabled before the class is initialized
* and not thereafter
* @author gafter
* @build EarlyAssert EarlyAssertWrapper
* @run main EarlyAssertWrapper
*/
/*
* Verify that assertions are enabled until the class is initialized
*/
class EASuper {
static {
EarlyAssert.foo();
}
}
public class EarlyAssert extends EASuper {
static public void foo() {
boolean assertionStatus = false;
assert assertionStatus = true;
if (!assertionStatus) {
throw new Error("Assertions are not enabled before initialization as they should be.");
}
}
public static void main(String[] args) {
boolean assertionStatus = false;
assert assertionStatus = true;
if (assertionStatus) {
throw new Error("Assertions are not disabled after initialization as they should be.");
}
}
}
| 2,001 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
EmptyArray.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/EmptyArray.java | /*
* Copyright (c) 2002, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4396418
* @summary Empty array initializer with comma
* @author gafter
*
* @compile EmptyArray.java
*/
class EmptyArray {
int[] i = {,};
int[] j = new int[] {,};
}
| 1,250 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
SynthName1.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/SynthName1.java | /*
* Copyright (c) 2001, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4462714
* @summary using of synthetic names in local class causes ClassFormatError
* @author gafter
*
* @compile SynthName1.java
* @run main SynthName1
*/
import java.io.PrintStream;
public class SynthName1 {
public static void main(String args[]) {
run(args, System.out);
}
public static void run(String args[],PrintStream out) {
int res1, res2;
Intf ob = meth(1, 2);
res1 = ob.getFirst();
res2 = ob.getSecond();
if ( res1 == 1 && res2 == 2 )
return;
out.println("Failed: res1=" + res1 + ", res2=" + res2);
throw new Error("test failed!");
}
interface Intf {
int getFirst();
int getSecond();
}
static Intf meth(final int prm1, final int zzz) {
class InnClass implements Intf {
Object val$prm1 = null;
// int val$zzz = 10;
Object locVar;
public int getFirst() {
locVar = val$prm1;
return prm1;
}
public int getSecond() {
return zzz;
}
}
return new InnClass();
}
}
| 2,232 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
VoidArray.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/VoidArray.java | /*
* Copyright (c) 1997, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4034979
* @summary The compiler should never allow void[] to appear as a type
* in a program.
*
* @compile/fail VoidArray.java
*/
public
class VoidArray {
void[] a = null;
void[] method2(void[][] x) {
return null;
}
}
| 1,326 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
VersionOpt.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/VersionOpt.java |
/*
* Copyright (c) 2005, 2008, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6728697
* @summary tools/javac/versionOpt.sh fails on OpenJDK builds
* Test checks the version strings displayed by javac, using
* strings that come out of the Java runtime.
*/
import java.io.File;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.net.URL;
public class VersionOpt {
public static void main(String... args) throws Exception {
new VersionOpt().run();
}
void run() throws Exception {
// Test functions by comparing the version string from javac against
// a "golden" version generated automatically from the underlying JVM.
// As such, it is only effective in testing the "standard" compiler,
// and not any development version being tested via -Xbootclasspath.
// Check the version of the compiler being used, and let the test pass
// automatically if is is a development version.
Class<?> javacClass = com.sun.tools.javac.Main.class;
URL javacURL = getClass().getClassLoader().getResource(javacClass.getName().replace(".", "/") + ".class");
if (!javacURL.getProtocol().equals("jar") || !javacURL.getFile().contains("!")) {
System.err.println("javac not found in tools.jar: " + javacURL);
System.err.println("rest of test skipped");
return;
}
String javacHome = javacURL.getFile().substring(0, javacURL.getFile().indexOf("!"));
File javaHome = new File(System.getProperty("java.home"));
if (javaHome.getName().equals("jre"))
javaHome = javaHome.getParentFile();
File toolsJar = new File(new File(javaHome, "lib"), "tools.jar");
if (!javacHome.equals(toolsJar.toURI().toString())){
System.err.println("javac not found in tools.jar: " + javacHome);
System.err.println("rest of test skipped");
return;
}
System.out.println("javac found in " + toolsJar);
String javaVersion = System.getProperty("java.version");
String javaRuntimeVersion = System.getProperty("java.runtime.version");
System.out.println("java.version: " + javaVersion);
System.out.println("java.runtime.version: " + javaRuntimeVersion);
StringWriter sw = new StringWriter();
com.sun.tools.javac.Main.compile(new String[] { "-version" }, new PrintWriter(sw));
String javacVersion = sw.toString().trim();
sw = new StringWriter();
com.sun.tools.javac.Main.compile(new String[] { "-fullversion" }, new PrintWriter(sw));
String javacFullVersion = sw.toString().trim();
System.out.println("javac -version: " + javacVersion);
System.out.println("javac -fullversion: " + javacFullVersion);
checkEqual("javac -version", javacVersion, "javac " + javaVersion);
checkEqual("javac -fullversion", javacFullVersion, "javac full version \"" + javaRuntimeVersion + "\"");
if (errors > 0)
throw new Exception(errors + " errors found");
}
void checkEqual(String kind, String found, String expect) {
if (!found.equals(expect)) {
System.err.println("error: unexpected value for " + kind);
System.err.println("expect: >>" + expect + "<<");
System.err.println(" found: >>" + found + "<<");
errors++;
}
}
int errors;
}
| 4,439 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
FlatnameClash.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/FlatnameClash.java | /*
* Copyright (c) 2000, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4302890
* @summary Verify that clash between user-defined class and
* flatname of member class is detected.
* @author William Maddox
*
* @run compile/fail FlatnameClash.java
*/
class FlatnameClash$Inner {}
public class FlatnameClash {
class Inner { } // error
}
| 1,348 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
PrivateUplevelConstant.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/PrivateUplevelConstant.java | /*
* Copyright (c) 1999, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4098737
* @summary Verify that private uplevel constant access is treated as constant.
* @author maddox
*
* @run compile PrivateUplevelConstant.java
*/
class PrivateUplevelConstant {
private static final int C1 = 1;
void test () {
Object bug = new Object() {
public int hashCode() {
switch (1+1) {
case C1: return 1;
default: return 3;
}
}
};
}
}
| 1,546 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
SwitchFence.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/SwitchFence.java | /*
* Copyright (c) 2001, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4368309
* @summary Simple switch statement with large case values gives OutOfMemoryError in javac.
* @author gafter
*
* @compile SwitchFence.java
* @run main SwitchFence
*/
public class SwitchFence {
public static final int MEMENTO_NULL = 0x7FFFFFFD;
public static final int MEMENTO_ALLE = 0x7FFFFFFE;
public static final int MEMENTO_LEER = 0x7FFFFFFF;
public static void main(String[] args) throws Exception {
int i = MEMENTO_LEER;
switch (i) {
case MEMENTO_NULL:
throw new Exception("fail");
case MEMENTO_ALLE:
throw new Exception("fail");
case MEMENTO_LEER:
break;
}
}
}
| 1,760 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
Parens4.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/Parens4.java | /*
* Copyright (c) 2004, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4933317
* @summary javac accepts parens in package names
* @author gafter
*
* @compile/fail Parens4.java
*/
class Parens4 {
Object f() {
return (java).util.Collections.EMPTY_LIST;
}
}
| 1,278 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6587674.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6587674.java | /*
* Copyright (c) 2010, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6587674
* @summary NoClassdefFound when anonymously extending a class.
*/
import java.util.Vector;
public class T6587674 {
private static final Vector<String> list =
true ? null : new Vector<String>() { };
public static void main(String[] args) {
System.out.println("T6587674 runs fine!");
}
}
| 1,399 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
QualifiedThisExactMatch.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/QualifiedThisExactMatch.java | /*
* Copyright (c) 1998, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4102393 4133457
* @summary Verify that <class>.this matches <class> exactly, not a subclass.
* @author maddox
*
* @run compile QualifiedThisExactMatch.java
* @run main QualifiedThisExactMatch
*/
public class QualifiedThisExactMatch {
void test() throws Exception {}
void checkIt1() throws Exception {
QualifiedThisExactMatch z = new QualifiedThisExactMatch() {
void test() throws Exception {
if (this == QualifiedThisExactMatch.this) {
throw new Exception("anonymous");
}
}
};
z.test();
}
//---
class A {
Object getThisA() { return A.this; }
class B extends A {
Object getThisA() { return A.this; }
Object getThisB() { return B.this; }
}
}
void check(Object x, Object y) throws Exception {
if (x != y) {
throw new Exception("named");
}
}
void checkIt2 () throws Exception {
A a = new A();
A.B b = a.new B();
check(a, a.getThisA());
check(a, b.getThisA());
check(b, b.getThisB());
}
//---
public static void main(String[] s) throws Exception {
QualifiedThisExactMatch x = new QualifiedThisExactMatch();
x.checkIt1();
x.checkIt2();
}
}
| 2,416 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
ManyMembers2.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/ManyMembers2.java | /*
* Copyright (c) 2002, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4498624
* @summary compiler crashes when number of members exceeds available recursion stack depth
* @author gafter
*
* @compile ManyMembers2.java
*/
public class ManyMembers2 {
int f0 ;
void d0 () {}
int f1 ;
void d1 () {}
int f2 ;
void d2 () {}
int f3 ;
void d3 () {}
int f4 ;
void d4 () {}
int f5 ;
void d5 () {}
int f6 ;
void d6 () {}
int f7 ;
void d7 () {}
int f8 ;
void d8 () {}
int f9 ;
void d9 () {}
int f10 ;
void d10 () {}
int f11 ;
void d11 () {}
int f12 ;
void d12 () {}
int f13 ;
void d13 () {}
int f14 ;
void d14 () {}
int f15 ;
void d15 () {}
int f16 ;
void d16 () {}
int f17 ;
void d17 () {}
int f18 ;
void d18 () {}
int f19 ;
void d19 () {}
int f20 ;
void d20 () {}
int f21 ;
void d21 () {}
int f22 ;
void d22 () {}
int f23 ;
void d23 () {}
int f24 ;
void d24 () {}
int f25 ;
void d25 () {}
int f26 ;
void d26 () {}
int f27 ;
void d27 () {}
int f28 ;
void d28 () {}
int f29 ;
void d29 () {}
int f30 ;
void d30 () {}
int f31 ;
void d31 () {}
int f32 ;
void d32 () {}
int f33 ;
void d33 () {}
int f34 ;
void d34 () {}
int f35 ;
void d35 () {}
int f36 ;
void d36 () {}
int f37 ;
void d37 () {}
int f38 ;
void d38 () {}
int f39 ;
void d39 () {}
int f40 ;
void d40 () {}
int f41 ;
void d41 () {}
int f42 ;
void d42 () {}
int f43 ;
void d43 () {}
int f44 ;
void d44 () {}
int f45 ;
void d45 () {}
int f46 ;
void d46 () {}
int f47 ;
void d47 () {}
int f48 ;
void d48 () {}
int f49 ;
void d49 () {}
int f50 ;
void d50 () {}
int f51 ;
void d51 () {}
int f52 ;
void d52 () {}
int f53 ;
void d53 () {}
int f54 ;
void d54 () {}
int f55 ;
void d55 () {}
int f56 ;
void d56 () {}
int f57 ;
void d57 () {}
int f58 ;
void d58 () {}
int f59 ;
void d59 () {}
int f60 ;
void d60 () {}
int f61 ;
void d61 () {}
int f62 ;
void d62 () {}
int f63 ;
void d63 () {}
int f64 ;
void d64 () {}
int f65 ;
void d65 () {}
int f66 ;
void d66 () {}
int f67 ;
void d67 () {}
int f68 ;
void d68 () {}
int f69 ;
void d69 () {}
int f70 ;
void d70 () {}
int f71 ;
void d71 () {}
int f72 ;
void d72 () {}
int f73 ;
void d73 () {}
int f74 ;
void d74 () {}
int f75 ;
void d75 () {}
int f76 ;
void d76 () {}
int f77 ;
void d77 () {}
int f78 ;
void d78 () {}
int f79 ;
void d79 () {}
int f80 ;
void d80 () {}
int f81 ;
void d81 () {}
int f82 ;
void d82 () {}
int f83 ;
void d83 () {}
int f84 ;
void d84 () {}
int f85 ;
void d85 () {}
int f86 ;
void d86 () {}
int f87 ;
void d87 () {}
int f88 ;
void d88 () {}
int f89 ;
void d89 () {}
int f90 ;
void d90 () {}
int f91 ;
void d91 () {}
int f92 ;
void d92 () {}
int f93 ;
void d93 () {}
int f94 ;
void d94 () {}
int f95 ;
void d95 () {}
int f96 ;
void d96 () {}
int f97 ;
void d97 () {}
int f98 ;
void d98 () {}
int f99 ;
void d99 () {}
int f100 ;
void d100 () {}
int f101 ;
void d101 () {}
int f102 ;
void d102 () {}
int f103 ;
void d103 () {}
int f104 ;
void d104 () {}
int f105 ;
void d105 () {}
int f106 ;
void d106 () {}
int f107 ;
void d107 () {}
int f108 ;
void d108 () {}
int f109 ;
void d109 () {}
int f110 ;
void d110 () {}
int f111 ;
void d111 () {}
int f112 ;
void d112 () {}
int f113 ;
void d113 () {}
int f114 ;
void d114 () {}
int f115 ;
void d115 () {}
int f116 ;
void d116 () {}
int f117 ;
void d117 () {}
int f118 ;
void d118 () {}
int f119 ;
void d119 () {}
int f120 ;
void d120 () {}
int f121 ;
void d121 () {}
int f122 ;
void d122 () {}
int f123 ;
void d123 () {}
int f124 ;
void d124 () {}
int f125 ;
void d125 () {}
int f126 ;
void d126 () {}
int f127 ;
void d127 () {}
int f128 ;
void d128 () {}
int f129 ;
void d129 () {}
int f130 ;
void d130 () {}
int f131 ;
void d131 () {}
int f132 ;
void d132 () {}
int f133 ;
void d133 () {}
int f134 ;
void d134 () {}
int f135 ;
void d135 () {}
int f136 ;
void d136 () {}
int f137 ;
void d137 () {}
int f138 ;
void d138 () {}
int f139 ;
void d139 () {}
int f140 ;
void d140 () {}
int f141 ;
void d141 () {}
int f142 ;
void d142 () {}
int f143 ;
void d143 () {}
int f144 ;
void d144 () {}
int f145 ;
void d145 () {}
int f146 ;
void d146 () {}
int f147 ;
void d147 () {}
int f148 ;
void d148 () {}
int f149 ;
void d149 () {}
int f150 ;
void d150 () {}
int f151 ;
void d151 () {}
int f152 ;
void d152 () {}
int f153 ;
void d153 () {}
int f154 ;
void d154 () {}
int f155 ;
void d155 () {}
int f156 ;
void d156 () {}
int f157 ;
void d157 () {}
int f158 ;
void d158 () {}
int f159 ;
void d159 () {}
int f160 ;
void d160 () {}
int f161 ;
void d161 () {}
int f162 ;
void d162 () {}
int f163 ;
void d163 () {}
int f164 ;
void d164 () {}
int f165 ;
void d165 () {}
int f166 ;
void d166 () {}
int f167 ;
void d167 () {}
int f168 ;
void d168 () {}
int f169 ;
void d169 () {}
int f170 ;
void d170 () {}
int f171 ;
void d171 () {}
int f172 ;
void d172 () {}
int f173 ;
void d173 () {}
int f174 ;
void d174 () {}
int f175 ;
void d175 () {}
int f176 ;
void d176 () {}
int f177 ;
void d177 () {}
int f178 ;
void d178 () {}
int f179 ;
void d179 () {}
int f180 ;
void d180 () {}
int f181 ;
void d181 () {}
int f182 ;
void d182 () {}
int f183 ;
void d183 () {}
int f184 ;
void d184 () {}
int f185 ;
void d185 () {}
int f186 ;
void d186 () {}
int f187 ;
void d187 () {}
int f188 ;
void d188 () {}
int f189 ;
void d189 () {}
int f190 ;
void d190 () {}
int f191 ;
void d191 () {}
int f192 ;
void d192 () {}
int f193 ;
void d193 () {}
int f194 ;
void d194 () {}
int f195 ;
void d195 () {}
int f196 ;
void d196 () {}
int f197 ;
void d197 () {}
int f198 ;
void d198 () {}
int f199 ;
void d199 () {}
int f200 ;
void d200 () {}
int f201 ;
void d201 () {}
int f202 ;
void d202 () {}
int f203 ;
void d203 () {}
int f204 ;
void d204 () {}
int f205 ;
void d205 () {}
int f206 ;
void d206 () {}
int f207 ;
void d207 () {}
int f208 ;
void d208 () {}
int f209 ;
void d209 () {}
int f210 ;
void d210 () {}
int f211 ;
void d211 () {}
int f212 ;
void d212 () {}
int f213 ;
void d213 () {}
int f214 ;
void d214 () {}
int f215 ;
void d215 () {}
int f216 ;
void d216 () {}
int f217 ;
void d217 () {}
int f218 ;
void d218 () {}
int f219 ;
void d219 () {}
int f220 ;
void d220 () {}
int f221 ;
void d221 () {}
int f222 ;
void d222 () {}
int f223 ;
void d223 () {}
int f224 ;
void d224 () {}
int f225 ;
void d225 () {}
int f226 ;
void d226 () {}
int f227 ;
void d227 () {}
int f228 ;
void d228 () {}
int f229 ;
void d229 () {}
int f230 ;
void d230 () {}
int f231 ;
void d231 () {}
int f232 ;
void d232 () {}
int f233 ;
void d233 () {}
int f234 ;
void d234 () {}
int f235 ;
void d235 () {}
int f236 ;
void d236 () {}
int f237 ;
void d237 () {}
int f238 ;
void d238 () {}
int f239 ;
void d239 () {}
int f240 ;
void d240 () {}
int f241 ;
void d241 () {}
int f242 ;
void d242 () {}
int f243 ;
void d243 () {}
int f244 ;
void d244 () {}
int f245 ;
void d245 () {}
int f246 ;
void d246 () {}
int f247 ;
void d247 () {}
int f248 ;
void d248 () {}
int f249 ;
void d249 () {}
int f250 ;
void d250 () {}
int f251 ;
void d251 () {}
int f252 ;
void d252 () {}
int f253 ;
void d253 () {}
int f254 ;
void d254 () {}
int f255 ;
void d255 () {}
int f256 ;
void d256 () {}
int f257 ;
void d257 () {}
int f258 ;
void d258 () {}
int f259 ;
void d259 () {}
int f260 ;
void d260 () {}
int f261 ;
void d261 () {}
int f262 ;
void d262 () {}
int f263 ;
void d263 () {}
int f264 ;
void d264 () {}
int f265 ;
void d265 () {}
int f266 ;
void d266 () {}
int f267 ;
void d267 () {}
int f268 ;
void d268 () {}
int f269 ;
void d269 () {}
int f270 ;
void d270 () {}
int f271 ;
void d271 () {}
int f272 ;
void d272 () {}
int f273 ;
void d273 () {}
int f274 ;
void d274 () {}
int f275 ;
void d275 () {}
int f276 ;
void d276 () {}
int f277 ;
void d277 () {}
int f278 ;
void d278 () {}
int f279 ;
void d279 () {}
int f280 ;
void d280 () {}
int f281 ;
void d281 () {}
int f282 ;
void d282 () {}
int f283 ;
void d283 () {}
int f284 ;
void d284 () {}
int f285 ;
void d285 () {}
int f286 ;
void d286 () {}
int f287 ;
void d287 () {}
int f288 ;
void d288 () {}
int f289 ;
void d289 () {}
int f290 ;
void d290 () {}
int f291 ;
void d291 () {}
int f292 ;
void d292 () {}
int f293 ;
void d293 () {}
int f294 ;
void d294 () {}
int f295 ;
void d295 () {}
int f296 ;
void d296 () {}
int f297 ;
void d297 () {}
int f298 ;
void d298 () {}
int f299 ;
void d299 () {}
int f300 ;
void d300 () {}
int f301 ;
void d301 () {}
int f302 ;
void d302 () {}
int f303 ;
void d303 () {}
int f304 ;
void d304 () {}
int f305 ;
void d305 () {}
int f306 ;
void d306 () {}
int f307 ;
void d307 () {}
int f308 ;
void d308 () {}
int f309 ;
void d309 () {}
int f310 ;
void d310 () {}
int f311 ;
void d311 () {}
int f312 ;
void d312 () {}
int f313 ;
void d313 () {}
int f314 ;
void d314 () {}
int f315 ;
void d315 () {}
int f316 ;
void d316 () {}
int f317 ;
void d317 () {}
int f318 ;
void d318 () {}
int f319 ;
void d319 () {}
int f320 ;
void d320 () {}
int f321 ;
void d321 () {}
int f322 ;
void d322 () {}
int f323 ;
void d323 () {}
int f324 ;
void d324 () {}
int f325 ;
void d325 () {}
int f326 ;
void d326 () {}
int f327 ;
void d327 () {}
int f328 ;
void d328 () {}
int f329 ;
void d329 () {}
int f330 ;
void d330 () {}
int f331 ;
void d331 () {}
int f332 ;
void d332 () {}
int f333 ;
void d333 () {}
int f334 ;
void d334 () {}
int f335 ;
void d335 () {}
int f336 ;
void d336 () {}
int f337 ;
void d337 () {}
int f338 ;
void d338 () {}
int f339 ;
void d339 () {}
int f340 ;
void d340 () {}
int f341 ;
void d341 () {}
int f342 ;
void d342 () {}
int f343 ;
void d343 () {}
int f344 ;
void d344 () {}
int f345 ;
void d345 () {}
int f346 ;
void d346 () {}
int f347 ;
void d347 () {}
int f348 ;
void d348 () {}
int f349 ;
void d349 () {}
int f350 ;
void d350 () {}
int f351 ;
void d351 () {}
int f352 ;
void d352 () {}
int f353 ;
void d353 () {}
int f354 ;
void d354 () {}
int f355 ;
void d355 () {}
int f356 ;
void d356 () {}
int f357 ;
void d357 () {}
int f358 ;
void d358 () {}
int f359 ;
void d359 () {}
int f360 ;
void d360 () {}
int f361 ;
void d361 () {}
int f362 ;
void d362 () {}
int f363 ;
void d363 () {}
int f364 ;
void d364 () {}
int f365 ;
void d365 () {}
int f366 ;
void d366 () {}
int f367 ;
void d367 () {}
int f368 ;
void d368 () {}
int f369 ;
void d369 () {}
int f370 ;
void d370 () {}
int f371 ;
void d371 () {}
int f372 ;
void d372 () {}
int f373 ;
void d373 () {}
int f374 ;
void d374 () {}
int f375 ;
void d375 () {}
int f376 ;
void d376 () {}
int f377 ;
void d377 () {}
int f378 ;
void d378 () {}
int f379 ;
void d379 () {}
int f380 ;
void d380 () {}
int f381 ;
void d381 () {}
int f382 ;
void d382 () {}
int f383 ;
void d383 () {}
int f384 ;
void d384 () {}
int f385 ;
void d385 () {}
int f386 ;
void d386 () {}
int f387 ;
void d387 () {}
int f388 ;
void d388 () {}
int f389 ;
void d389 () {}
int f390 ;
void d390 () {}
int f391 ;
void d391 () {}
int f392 ;
void d392 () {}
int f393 ;
void d393 () {}
int f394 ;
void d394 () {}
int f395 ;
void d395 () {}
int f396 ;
void d396 () {}
int f397 ;
void d397 () {}
int f398 ;
void d398 () {}
int f399 ;
void d399 () {}
int f400 ;
void d400 () {}
int f401 ;
void d401 () {}
int f402 ;
void d402 () {}
int f403 ;
void d403 () {}
int f404 ;
void d404 () {}
int f405 ;
void d405 () {}
int f406 ;
void d406 () {}
int f407 ;
void d407 () {}
int f408 ;
void d408 () {}
int f409 ;
void d409 () {}
int f410 ;
void d410 () {}
int f411 ;
void d411 () {}
int f412 ;
void d412 () {}
int f413 ;
void d413 () {}
int f414 ;
void d414 () {}
int f415 ;
void d415 () {}
int f416 ;
void d416 () {}
int f417 ;
void d417 () {}
int f418 ;
void d418 () {}
int f419 ;
void d419 () {}
int f420 ;
void d420 () {}
int f421 ;
void d421 () {}
int f422 ;
void d422 () {}
int f423 ;
void d423 () {}
int f424 ;
void d424 () {}
int f425 ;
void d425 () {}
int f426 ;
void d426 () {}
int f427 ;
void d427 () {}
int f428 ;
void d428 () {}
int f429 ;
void d429 () {}
int f430 ;
void d430 () {}
int f431 ;
void d431 () {}
int f432 ;
void d432 () {}
int f433 ;
void d433 () {}
int f434 ;
void d434 () {}
int f435 ;
void d435 () {}
int f436 ;
void d436 () {}
int f437 ;
void d437 () {}
int f438 ;
void d438 () {}
int f439 ;
void d439 () {}
int f440 ;
void d440 () {}
int f441 ;
void d441 () {}
int f442 ;
void d442 () {}
int f443 ;
void d443 () {}
int f444 ;
void d444 () {}
int f445 ;
void d445 () {}
int f446 ;
void d446 () {}
int f447 ;
void d447 () {}
int f448 ;
void d448 () {}
int f449 ;
void d449 () {}
int f450 ;
void d450 () {}
int f451 ;
void d451 () {}
int f452 ;
void d452 () {}
int f453 ;
void d453 () {}
int f454 ;
void d454 () {}
int f455 ;
void d455 () {}
int f456 ;
void d456 () {}
int f457 ;
void d457 () {}
int f458 ;
void d458 () {}
int f459 ;
void d459 () {}
int f460 ;
void d460 () {}
int f461 ;
void d461 () {}
int f462 ;
void d462 () {}
int f463 ;
void d463 () {}
int f464 ;
void d464 () {}
int f465 ;
void d465 () {}
int f466 ;
void d466 () {}
int f467 ;
void d467 () {}
int f468 ;
void d468 () {}
int f469 ;
void d469 () {}
int f470 ;
void d470 () {}
int f471 ;
void d471 () {}
int f472 ;
void d472 () {}
int f473 ;
void d473 () {}
int f474 ;
void d474 () {}
int f475 ;
void d475 () {}
int f476 ;
void d476 () {}
int f477 ;
void d477 () {}
int f478 ;
void d478 () {}
int f479 ;
void d479 () {}
int f480 ;
void d480 () {}
int f481 ;
void d481 () {}
int f482 ;
void d482 () {}
int f483 ;
void d483 () {}
int f484 ;
void d484 () {}
int f485 ;
void d485 () {}
int f486 ;
void d486 () {}
int f487 ;
void d487 () {}
int f488 ;
void d488 () {}
int f489 ;
void d489 () {}
int f490 ;
void d490 () {}
int f491 ;
void d491 () {}
int f492 ;
void d492 () {}
int f493 ;
void d493 () {}
int f494 ;
void d494 () {}
int f495 ;
void d495 () {}
int f496 ;
void d496 () {}
int f497 ;
void d497 () {}
int f498 ;
void d498 () {}
int f499 ;
void d499 () {}
int f500 ;
void d500 () {}
int f501 ;
void d501 () {}
int f502 ;
void d502 () {}
int f503 ;
void d503 () {}
int f504 ;
void d504 () {}
int f505 ;
void d505 () {}
int f506 ;
void d506 () {}
int f507 ;
void d507 () {}
int f508 ;
void d508 () {}
int f509 ;
void d509 () {}
int f510 ;
void d510 () {}
int f511 ;
void d511 () {}
int f512 ;
void d512 () {}
int f513 ;
void d513 () {}
int f514 ;
void d514 () {}
int f515 ;
void d515 () {}
int f516 ;
void d516 () {}
int f517 ;
void d517 () {}
int f518 ;
void d518 () {}
int f519 ;
void d519 () {}
int f520 ;
void d520 () {}
int f521 ;
void d521 () {}
int f522 ;
void d522 () {}
int f523 ;
void d523 () {}
int f524 ;
void d524 () {}
int f525 ;
void d525 () {}
int f526 ;
void d526 () {}
int f527 ;
void d527 () {}
int f528 ;
void d528 () {}
int f529 ;
void d529 () {}
int f530 ;
void d530 () {}
int f531 ;
void d531 () {}
int f532 ;
void d532 () {}
int f533 ;
void d533 () {}
int f534 ;
void d534 () {}
int f535 ;
void d535 () {}
int f536 ;
void d536 () {}
int f537 ;
void d537 () {}
int f538 ;
void d538 () {}
int f539 ;
void d539 () {}
int f540 ;
void d540 () {}
int f541 ;
void d541 () {}
int f542 ;
void d542 () {}
int f543 ;
void d543 () {}
int f544 ;
void d544 () {}
int f545 ;
void d545 () {}
int f546 ;
void d546 () {}
int f547 ;
void d547 () {}
int f548 ;
void d548 () {}
int f549 ;
void d549 () {}
int f550 ;
void d550 () {}
int f551 ;
void d551 () {}
int f552 ;
void d552 () {}
int f553 ;
void d553 () {}
int f554 ;
void d554 () {}
int f555 ;
void d555 () {}
int f556 ;
void d556 () {}
int f557 ;
void d557 () {}
int f558 ;
void d558 () {}
int f559 ;
void d559 () {}
int f560 ;
void d560 () {}
int f561 ;
void d561 () {}
int f562 ;
void d562 () {}
int f563 ;
void d563 () {}
int f564 ;
void d564 () {}
int f565 ;
void d565 () {}
int f566 ;
void d566 () {}
int f567 ;
void d567 () {}
int f568 ;
void d568 () {}
int f569 ;
void d569 () {}
int f570 ;
void d570 () {}
int f571 ;
void d571 () {}
int f572 ;
void d572 () {}
int f573 ;
void d573 () {}
int f574 ;
void d574 () {}
int f575 ;
void d575 () {}
int f576 ;
void d576 () {}
int f577 ;
void d577 () {}
int f578 ;
void d578 () {}
int f579 ;
void d579 () {}
int f580 ;
void d580 () {}
int f581 ;
void d581 () {}
int f582 ;
void d582 () {}
int f583 ;
void d583 () {}
int f584 ;
void d584 () {}
int f585 ;
void d585 () {}
int f586 ;
void d586 () {}
int f587 ;
void d587 () {}
int f588 ;
void d588 () {}
int f589 ;
void d589 () {}
int f590 ;
void d590 () {}
int f591 ;
void d591 () {}
int f592 ;
void d592 () {}
int f593 ;
void d593 () {}
int f594 ;
void d594 () {}
int f595 ;
void d595 () {}
int f596 ;
void d596 () {}
int f597 ;
void d597 () {}
int f598 ;
void d598 () {}
int f599 ;
void d599 () {}
int f600 ;
void d600 () {}
int f601 ;
void d601 () {}
int f602 ;
void d602 () {}
int f603 ;
void d603 () {}
int f604 ;
void d604 () {}
int f605 ;
void d605 () {}
int f606 ;
void d606 () {}
int f607 ;
void d607 () {}
int f608 ;
void d608 () {}
int f609 ;
void d609 () {}
int f610 ;
void d610 () {}
int f611 ;
void d611 () {}
int f612 ;
void d612 () {}
int f613 ;
void d613 () {}
int f614 ;
void d614 () {}
int f615 ;
void d615 () {}
int f616 ;
void d616 () {}
int f617 ;
void d617 () {}
int f618 ;
void d618 () {}
int f619 ;
void d619 () {}
int f620 ;
void d620 () {}
int f621 ;
void d621 () {}
int f622 ;
void d622 () {}
int f623 ;
void d623 () {}
int f624 ;
void d624 () {}
int f625 ;
void d625 () {}
int f626 ;
void d626 () {}
int f627 ;
void d627 () {}
int f628 ;
void d628 () {}
int f629 ;
void d629 () {}
int f630 ;
void d630 () {}
int f631 ;
void d631 () {}
int f632 ;
void d632 () {}
int f633 ;
void d633 () {}
int f634 ;
void d634 () {}
int f635 ;
void d635 () {}
int f636 ;
void d636 () {}
int f637 ;
void d637 () {}
int f638 ;
void d638 () {}
int f639 ;
void d639 () {}
int f640 ;
void d640 () {}
int f641 ;
void d641 () {}
int f642 ;
void d642 () {}
int f643 ;
void d643 () {}
int f644 ;
void d644 () {}
int f645 ;
void d645 () {}
int f646 ;
void d646 () {}
int f647 ;
void d647 () {}
int f648 ;
void d648 () {}
int f649 ;
void d649 () {}
int f650 ;
void d650 () {}
int f651 ;
void d651 () {}
int f652 ;
void d652 () {}
int f653 ;
void d653 () {}
int f654 ;
void d654 () {}
int f655 ;
void d655 () {}
int f656 ;
void d656 () {}
int f657 ;
void d657 () {}
int f658 ;
void d658 () {}
int f659 ;
void d659 () {}
int f660 ;
void d660 () {}
int f661 ;
void d661 () {}
int f662 ;
void d662 () {}
int f663 ;
void d663 () {}
int f664 ;
void d664 () {}
int f665 ;
void d665 () {}
int f666 ;
void d666 () {}
int f667 ;
void d667 () {}
int f668 ;
void d668 () {}
int f669 ;
void d669 () {}
int f670 ;
void d670 () {}
int f671 ;
void d671 () {}
int f672 ;
void d672 () {}
int f673 ;
void d673 () {}
int f674 ;
void d674 () {}
int f675 ;
void d675 () {}
int f676 ;
void d676 () {}
int f677 ;
void d677 () {}
int f678 ;
void d678 () {}
int f679 ;
void d679 () {}
int f680 ;
void d680 () {}
int f681 ;
void d681 () {}
int f682 ;
void d682 () {}
int f683 ;
void d683 () {}
int f684 ;
void d684 () {}
int f685 ;
void d685 () {}
int f686 ;
void d686 () {}
int f687 ;
void d687 () {}
int f688 ;
void d688 () {}
int f689 ;
void d689 () {}
int f690 ;
void d690 () {}
int f691 ;
void d691 () {}
int f692 ;
void d692 () {}
int f693 ;
void d693 () {}
int f694 ;
void d694 () {}
int f695 ;
void d695 () {}
int f696 ;
void d696 () {}
int f697 ;
void d697 () {}
int f698 ;
void d698 () {}
int f699 ;
void d699 () {}
int f700 ;
void d700 () {}
int f701 ;
void d701 () {}
int f702 ;
void d702 () {}
int f703 ;
void d703 () {}
int f704 ;
void d704 () {}
int f705 ;
void d705 () {}
int f706 ;
void d706 () {}
int f707 ;
void d707 () {}
int f708 ;
void d708 () {}
int f709 ;
void d709 () {}
int f710 ;
void d710 () {}
int f711 ;
void d711 () {}
int f712 ;
void d712 () {}
int f713 ;
void d713 () {}
int f714 ;
void d714 () {}
int f715 ;
void d715 () {}
int f716 ;
void d716 () {}
int f717 ;
void d717 () {}
int f718 ;
void d718 () {}
int f719 ;
void d719 () {}
int f720 ;
void d720 () {}
int f721 ;
void d721 () {}
int f722 ;
void d722 () {}
int f723 ;
void d723 () {}
int f724 ;
void d724 () {}
int f725 ;
void d725 () {}
int f726 ;
void d726 () {}
int f727 ;
void d727 () {}
int f728 ;
void d728 () {}
int f729 ;
void d729 () {}
int f730 ;
void d730 () {}
int f731 ;
void d731 () {}
int f732 ;
void d732 () {}
int f733 ;
void d733 () {}
int f734 ;
void d734 () {}
int f735 ;
void d735 () {}
int f736 ;
void d736 () {}
int f737 ;
void d737 () {}
int f738 ;
void d738 () {}
int f739 ;
void d739 () {}
int f740 ;
void d740 () {}
int f741 ;
void d741 () {}
int f742 ;
void d742 () {}
int f743 ;
void d743 () {}
int f744 ;
void d744 () {}
int f745 ;
void d745 () {}
int f746 ;
void d746 () {}
int f747 ;
void d747 () {}
int f748 ;
void d748 () {}
int f749 ;
void d749 () {}
int f750 ;
void d750 () {}
int f751 ;
void d751 () {}
int f752 ;
void d752 () {}
int f753 ;
void d753 () {}
int f754 ;
void d754 () {}
int f755 ;
void d755 () {}
int f756 ;
void d756 () {}
int f757 ;
void d757 () {}
int f758 ;
void d758 () {}
int f759 ;
void d759 () {}
int f760 ;
void d760 () {}
int f761 ;
void d761 () {}
int f762 ;
void d762 () {}
int f763 ;
void d763 () {}
int f764 ;
void d764 () {}
int f765 ;
void d765 () {}
int f766 ;
void d766 () {}
int f767 ;
void d767 () {}
int f768 ;
void d768 () {}
int f769 ;
void d769 () {}
int f770 ;
void d770 () {}
int f771 ;
void d771 () {}
int f772 ;
void d772 () {}
int f773 ;
void d773 () {}
int f774 ;
void d774 () {}
int f775 ;
void d775 () {}
int f776 ;
void d776 () {}
int f777 ;
void d777 () {}
int f778 ;
void d778 () {}
int f779 ;
void d779 () {}
int f780 ;
void d780 () {}
int f781 ;
void d781 () {}
int f782 ;
void d782 () {}
int f783 ;
void d783 () {}
int f784 ;
void d784 () {}
int f785 ;
void d785 () {}
int f786 ;
void d786 () {}
int f787 ;
void d787 () {}
int f788 ;
void d788 () {}
int f789 ;
void d789 () {}
int f790 ;
void d790 () {}
int f791 ;
void d791 () {}
int f792 ;
void d792 () {}
int f793 ;
void d793 () {}
int f794 ;
void d794 () {}
int f795 ;
void d795 () {}
int f796 ;
void d796 () {}
int f797 ;
void d797 () {}
int f798 ;
void d798 () {}
int f799 ;
void d799 () {}
int f800 ;
void d800 () {}
int f801 ;
void d801 () {}
int f802 ;
void d802 () {}
int f803 ;
void d803 () {}
int f804 ;
void d804 () {}
int f805 ;
void d805 () {}
int f806 ;
void d806 () {}
int f807 ;
void d807 () {}
int f808 ;
void d808 () {}
int f809 ;
void d809 () {}
int f810 ;
void d810 () {}
int f811 ;
void d811 () {}
int f812 ;
void d812 () {}
int f813 ;
void d813 () {}
int f814 ;
void d814 () {}
int f815 ;
void d815 () {}
int f816 ;
void d816 () {}
int f817 ;
void d817 () {}
int f818 ;
void d818 () {}
int f819 ;
void d819 () {}
int f820 ;
void d820 () {}
int f821 ;
void d821 () {}
int f822 ;
void d822 () {}
int f823 ;
void d823 () {}
int f824 ;
void d824 () {}
int f825 ;
void d825 () {}
int f826 ;
void d826 () {}
int f827 ;
void d827 () {}
int f828 ;
void d828 () {}
int f829 ;
void d829 () {}
int f830 ;
void d830 () {}
int f831 ;
void d831 () {}
int f832 ;
void d832 () {}
int f833 ;
void d833 () {}
int f834 ;
void d834 () {}
int f835 ;
void d835 () {}
int f836 ;
void d836 () {}
int f837 ;
void d837 () {}
int f838 ;
void d838 () {}
int f839 ;
void d839 () {}
int f840 ;
void d840 () {}
int f841 ;
void d841 () {}
int f842 ;
void d842 () {}
int f843 ;
void d843 () {}
int f844 ;
void d844 () {}
int f845 ;
void d845 () {}
int f846 ;
void d846 () {}
int f847 ;
void d847 () {}
int f848 ;
void d848 () {}
int f849 ;
void d849 () {}
int f850 ;
void d850 () {}
int f851 ;
void d851 () {}
int f852 ;
void d852 () {}
int f853 ;
void d853 () {}
int f854 ;
void d854 () {}
int f855 ;
void d855 () {}
int f856 ;
void d856 () {}
int f857 ;
void d857 () {}
int f858 ;
void d858 () {}
int f859 ;
void d859 () {}
int f860 ;
void d860 () {}
int f861 ;
void d861 () {}
int f862 ;
void d862 () {}
int f863 ;
void d863 () {}
int f864 ;
void d864 () {}
int f865 ;
void d865 () {}
int f866 ;
void d866 () {}
int f867 ;
void d867 () {}
int f868 ;
void d868 () {}
int f869 ;
void d869 () {}
int f870 ;
void d870 () {}
int f871 ;
void d871 () {}
int f872 ;
void d872 () {}
int f873 ;
void d873 () {}
int f874 ;
void d874 () {}
int f875 ;
void d875 () {}
int f876 ;
void d876 () {}
int f877 ;
void d877 () {}
int f878 ;
void d878 () {}
int f879 ;
void d879 () {}
int f880 ;
void d880 () {}
int f881 ;
void d881 () {}
int f882 ;
void d882 () {}
int f883 ;
void d883 () {}
int f884 ;
void d884 () {}
int f885 ;
void d885 () {}
int f886 ;
void d886 () {}
int f887 ;
void d887 () {}
int f888 ;
void d888 () {}
int f889 ;
void d889 () {}
int f890 ;
void d890 () {}
int f891 ;
void d891 () {}
int f892 ;
void d892 () {}
int f893 ;
void d893 () {}
int f894 ;
void d894 () {}
int f895 ;
void d895 () {}
int f896 ;
void d896 () {}
int f897 ;
void d897 () {}
int f898 ;
void d898 () {}
int f899 ;
void d899 () {}
int f900 ;
void d900 () {}
int f901 ;
void d901 () {}
int f902 ;
void d902 () {}
int f903 ;
void d903 () {}
int f904 ;
void d904 () {}
int f905 ;
void d905 () {}
int f906 ;
void d906 () {}
int f907 ;
void d907 () {}
int f908 ;
void d908 () {}
int f909 ;
void d909 () {}
int f910 ;
void d910 () {}
int f911 ;
void d911 () {}
int f912 ;
void d912 () {}
int f913 ;
void d913 () {}
int f914 ;
void d914 () {}
int f915 ;
void d915 () {}
int f916 ;
void d916 () {}
int f917 ;
void d917 () {}
int f918 ;
void d918 () {}
int f919 ;
void d919 () {}
int f920 ;
void d920 () {}
int f921 ;
void d921 () {}
int f922 ;
void d922 () {}
int f923 ;
void d923 () {}
int f924 ;
void d924 () {}
int f925 ;
void d925 () {}
int f926 ;
void d926 () {}
int f927 ;
void d927 () {}
int f928 ;
void d928 () {}
int f929 ;
void d929 () {}
int f930 ;
void d930 () {}
int f931 ;
void d931 () {}
int f932 ;
void d932 () {}
int f933 ;
void d933 () {}
int f934 ;
void d934 () {}
int f935 ;
void d935 () {}
int f936 ;
void d936 () {}
int f937 ;
void d937 () {}
int f938 ;
void d938 () {}
int f939 ;
void d939 () {}
int f940 ;
void d940 () {}
int f941 ;
void d941 () {}
int f942 ;
void d942 () {}
int f943 ;
void d943 () {}
int f944 ;
void d944 () {}
int f945 ;
void d945 () {}
int f946 ;
void d946 () {}
int f947 ;
void d947 () {}
int f948 ;
void d948 () {}
int f949 ;
void d949 () {}
int f950 ;
void d950 () {}
int f951 ;
void d951 () {}
int f952 ;
void d952 () {}
int f953 ;
void d953 () {}
int f954 ;
void d954 () {}
int f955 ;
void d955 () {}
int f956 ;
void d956 () {}
int f957 ;
void d957 () {}
int f958 ;
void d958 () {}
int f959 ;
void d959 () {}
int f960 ;
void d960 () {}
int f961 ;
void d961 () {}
int f962 ;
void d962 () {}
int f963 ;
void d963 () {}
int f964 ;
void d964 () {}
int f965 ;
void d965 () {}
int f966 ;
void d966 () {}
int f967 ;
void d967 () {}
int f968 ;
void d968 () {}
int f969 ;
void d969 () {}
int f970 ;
void d970 () {}
int f971 ;
void d971 () {}
int f972 ;
void d972 () {}
int f973 ;
void d973 () {}
int f974 ;
void d974 () {}
int f975 ;
void d975 () {}
int f976 ;
void d976 () {}
int f977 ;
void d977 () {}
int f978 ;
void d978 () {}
int f979 ;
void d979 () {}
int f980 ;
void d980 () {}
int f981 ;
void d981 () {}
int f982 ;
void d982 () {}
int f983 ;
void d983 () {}
int f984 ;
void d984 () {}
int f985 ;
void d985 () {}
int f986 ;
void d986 () {}
int f987 ;
void d987 () {}
int f988 ;
void d988 () {}
int f989 ;
void d989 () {}
int f990 ;
void d990 () {}
int f991 ;
void d991 () {}
int f992 ;
void d992 () {}
int f993 ;
void d993 () {}
int f994 ;
void d994 () {}
int f995 ;
void d995 () {}
int f996 ;
void d996 () {}
int f997 ;
void d997 () {}
int f998 ;
void d998 () {}
int f999 ;
void d999 () {}
int f1000 ;
void d1000 () {}
int f1001 ;
void d1001 () {}
int f1002 ;
void d1002 () {}
int f1003 ;
void d1003 () {}
int f1004 ;
void d1004 () {}
int f1005 ;
void d1005 () {}
int f1006 ;
void d1006 () {}
int f1007 ;
void d1007 () {}
int f1008 ;
void d1008 () {}
int f1009 ;
void d1009 () {}
int f1010 ;
void d1010 () {}
int f1011 ;
void d1011 () {}
int f1012 ;
void d1012 () {}
int f1013 ;
void d1013 () {}
int f1014 ;
void d1014 () {}
int f1015 ;
void d1015 () {}
int f1016 ;
void d1016 () {}
int f1017 ;
void d1017 () {}
int f1018 ;
void d1018 () {}
int f1019 ;
void d1019 () {}
int f1020 ;
void d1020 () {}
int f1021 ;
void d1021 () {}
int f1022 ;
void d1022 () {}
int f1023 ;
void d1023 () {}
int f1024 ;
void d1024 () {}
int f1025 ;
void d1025 () {}
int f1026 ;
void d1026 () {}
int f1027 ;
void d1027 () {}
int f1028 ;
void d1028 () {}
int f1029 ;
void d1029 () {}
int f1030 ;
void d1030 () {}
int f1031 ;
void d1031 () {}
int f1032 ;
void d1032 () {}
int f1033 ;
void d1033 () {}
int f1034 ;
void d1034 () {}
int f1035 ;
void d1035 () {}
int f1036 ;
void d1036 () {}
int f1037 ;
void d1037 () {}
int f1038 ;
void d1038 () {}
int f1039 ;
void d1039 () {}
int f1040 ;
void d1040 () {}
int f1041 ;
void d1041 () {}
int f1042 ;
void d1042 () {}
int f1043 ;
void d1043 () {}
int f1044 ;
void d1044 () {}
int f1045 ;
void d1045 () {}
int f1046 ;
void d1046 () {}
int f1047 ;
void d1047 () {}
int f1048 ;
void d1048 () {}
int f1049 ;
void d1049 () {}
int f1050 ;
void d1050 () {}
int f1051 ;
void d1051 () {}
int f1052 ;
void d1052 () {}
int f1053 ;
void d1053 () {}
int f1054 ;
void d1054 () {}
int f1055 ;
void d1055 () {}
int f1056 ;
void d1056 () {}
int f1057 ;
void d1057 () {}
int f1058 ;
void d1058 () {}
int f1059 ;
void d1059 () {}
int f1060 ;
void d1060 () {}
int f1061 ;
void d1061 () {}
int f1062 ;
void d1062 () {}
int f1063 ;
void d1063 () {}
int f1064 ;
void d1064 () {}
int f1065 ;
void d1065 () {}
int f1066 ;
void d1066 () {}
int f1067 ;
void d1067 () {}
int f1068 ;
void d1068 () {}
int f1069 ;
void d1069 () {}
int f1070 ;
void d1070 () {}
int f1071 ;
void d1071 () {}
int f1072 ;
void d1072 () {}
int f1073 ;
void d1073 () {}
int f1074 ;
void d1074 () {}
int f1075 ;
void d1075 () {}
int f1076 ;
void d1076 () {}
int f1077 ;
void d1077 () {}
int f1078 ;
void d1078 () {}
int f1079 ;
void d1079 () {}
int f1080 ;
void d1080 () {}
int f1081 ;
void d1081 () {}
int f1082 ;
void d1082 () {}
int f1083 ;
void d1083 () {}
int f1084 ;
void d1084 () {}
int f1085 ;
void d1085 () {}
int f1086 ;
void d1086 () {}
int f1087 ;
void d1087 () {}
int f1088 ;
void d1088 () {}
int f1089 ;
void d1089 () {}
int f1090 ;
void d1090 () {}
int f1091 ;
void d1091 () {}
int f1092 ;
void d1092 () {}
int f1093 ;
void d1093 () {}
int f1094 ;
void d1094 () {}
int f1095 ;
void d1095 () {}
int f1096 ;
void d1096 () {}
int f1097 ;
void d1097 () {}
int f1098 ;
void d1098 () {}
int f1099 ;
void d1099 () {}
int f1100 ;
void d1100 () {}
int f1101 ;
void d1101 () {}
int f1102 ;
void d1102 () {}
int f1103 ;
void d1103 () {}
int f1104 ;
void d1104 () {}
int f1105 ;
void d1105 () {}
int f1106 ;
void d1106 () {}
int f1107 ;
void d1107 () {}
int f1108 ;
void d1108 () {}
int f1109 ;
void d1109 () {}
int f1110 ;
void d1110 () {}
int f1111 ;
void d1111 () {}
int f1112 ;
void d1112 () {}
int f1113 ;
void d1113 () {}
int f1114 ;
void d1114 () {}
int f1115 ;
void d1115 () {}
int f1116 ;
void d1116 () {}
int f1117 ;
void d1117 () {}
int f1118 ;
void d1118 () {}
int f1119 ;
void d1119 () {}
int f1120 ;
void d1120 () {}
int f1121 ;
void d1121 () {}
int f1122 ;
void d1122 () {}
int f1123 ;
void d1123 () {}
int f1124 ;
void d1124 () {}
int f1125 ;
void d1125 () {}
int f1126 ;
void d1126 () {}
int f1127 ;
void d1127 () {}
int f1128 ;
void d1128 () {}
int f1129 ;
void d1129 () {}
int f1130 ;
void d1130 () {}
int f1131 ;
void d1131 () {}
int f1132 ;
void d1132 () {}
int f1133 ;
void d1133 () {}
int f1134 ;
void d1134 () {}
int f1135 ;
void d1135 () {}
int f1136 ;
void d1136 () {}
int f1137 ;
void d1137 () {}
int f1138 ;
void d1138 () {}
int f1139 ;
void d1139 () {}
int f1140 ;
void d1140 () {}
int f1141 ;
void d1141 () {}
int f1142 ;
void d1142 () {}
int f1143 ;
void d1143 () {}
int f1144 ;
void d1144 () {}
int f1145 ;
void d1145 () {}
int f1146 ;
void d1146 () {}
int f1147 ;
void d1147 () {}
int f1148 ;
void d1148 () {}
int f1149 ;
void d1149 () {}
int f1150 ;
void d1150 () {}
int f1151 ;
void d1151 () {}
int f1152 ;
void d1152 () {}
int f1153 ;
void d1153 () {}
int f1154 ;
void d1154 () {}
int f1155 ;
void d1155 () {}
int f1156 ;
void d1156 () {}
int f1157 ;
void d1157 () {}
int f1158 ;
void d1158 () {}
int f1159 ;
void d1159 () {}
int f1160 ;
void d1160 () {}
int f1161 ;
void d1161 () {}
int f1162 ;
void d1162 () {}
int f1163 ;
void d1163 () {}
int f1164 ;
void d1164 () {}
int f1165 ;
void d1165 () {}
int f1166 ;
void d1166 () {}
int f1167 ;
void d1167 () {}
int f1168 ;
void d1168 () {}
int f1169 ;
void d1169 () {}
int f1170 ;
void d1170 () {}
int f1171 ;
void d1171 () {}
int f1172 ;
void d1172 () {}
int f1173 ;
void d1173 () {}
int f1174 ;
void d1174 () {}
int f1175 ;
void d1175 () {}
int f1176 ;
void d1176 () {}
int f1177 ;
void d1177 () {}
int f1178 ;
void d1178 () {}
int f1179 ;
void d1179 () {}
int f1180 ;
void d1180 () {}
int f1181 ;
void d1181 () {}
int f1182 ;
void d1182 () {}
int f1183 ;
void d1183 () {}
int f1184 ;
void d1184 () {}
int f1185 ;
void d1185 () {}
int f1186 ;
void d1186 () {}
int f1187 ;
void d1187 () {}
int f1188 ;
void d1188 () {}
int f1189 ;
void d1189 () {}
int f1190 ;
void d1190 () {}
int f1191 ;
void d1191 () {}
int f1192 ;
void d1192 () {}
int f1193 ;
void d1193 () {}
int f1194 ;
void d1194 () {}
int f1195 ;
void d1195 () {}
int f1196 ;
void d1196 () {}
int f1197 ;
void d1197 () {}
int f1198 ;
void d1198 () {}
int f1199 ;
void d1199 () {}
int f1200 ;
void d1200 () {}
int f1201 ;
void d1201 () {}
int f1202 ;
void d1202 () {}
int f1203 ;
void d1203 () {}
int f1204 ;
void d1204 () {}
int f1205 ;
void d1205 () {}
int f1206 ;
void d1206 () {}
int f1207 ;
void d1207 () {}
int f1208 ;
void d1208 () {}
int f1209 ;
void d1209 () {}
int f1210 ;
void d1210 () {}
int f1211 ;
void d1211 () {}
int f1212 ;
void d1212 () {}
int f1213 ;
void d1213 () {}
int f1214 ;
void d1214 () {}
int f1215 ;
void d1215 () {}
int f1216 ;
void d1216 () {}
int f1217 ;
void d1217 () {}
int f1218 ;
void d1218 () {}
int f1219 ;
void d1219 () {}
int f1220 ;
void d1220 () {}
int f1221 ;
void d1221 () {}
int f1222 ;
void d1222 () {}
int f1223 ;
void d1223 () {}
int f1224 ;
void d1224 () {}
int f1225 ;
void d1225 () {}
int f1226 ;
void d1226 () {}
int f1227 ;
void d1227 () {}
int f1228 ;
void d1228 () {}
int f1229 ;
void d1229 () {}
int f1230 ;
void d1230 () {}
int f1231 ;
void d1231 () {}
int f1232 ;
void d1232 () {}
int f1233 ;
void d1233 () {}
int f1234 ;
void d1234 () {}
int f1235 ;
void d1235 () {}
int f1236 ;
void d1236 () {}
int f1237 ;
void d1237 () {}
int f1238 ;
void d1238 () {}
int f1239 ;
void d1239 () {}
int f1240 ;
void d1240 () {}
int f1241 ;
void d1241 () {}
int f1242 ;
void d1242 () {}
int f1243 ;
void d1243 () {}
int f1244 ;
void d1244 () {}
int f1245 ;
void d1245 () {}
int f1246 ;
void d1246 () {}
int f1247 ;
void d1247 () {}
int f1248 ;
void d1248 () {}
int f1249 ;
void d1249 () {}
int f1250 ;
void d1250 () {}
int f1251 ;
void d1251 () {}
int f1252 ;
void d1252 () {}
int f1253 ;
void d1253 () {}
int f1254 ;
void d1254 () {}
int f1255 ;
void d1255 () {}
int f1256 ;
void d1256 () {}
int f1257 ;
void d1257 () {}
int f1258 ;
void d1258 () {}
int f1259 ;
void d1259 () {}
int f1260 ;
void d1260 () {}
int f1261 ;
void d1261 () {}
int f1262 ;
void d1262 () {}
int f1263 ;
void d1263 () {}
int f1264 ;
void d1264 () {}
int f1265 ;
void d1265 () {}
int f1266 ;
void d1266 () {}
int f1267 ;
void d1267 () {}
int f1268 ;
void d1268 () {}
int f1269 ;
void d1269 () {}
int f1270 ;
void d1270 () {}
int f1271 ;
void d1271 () {}
int f1272 ;
void d1272 () {}
int f1273 ;
void d1273 () {}
int f1274 ;
void d1274 () {}
int f1275 ;
void d1275 () {}
int f1276 ;
void d1276 () {}
int f1277 ;
void d1277 () {}
int f1278 ;
void d1278 () {}
int f1279 ;
void d1279 () {}
int f1280 ;
void d1280 () {}
int f1281 ;
void d1281 () {}
int f1282 ;
void d1282 () {}
int f1283 ;
void d1283 () {}
int f1284 ;
void d1284 () {}
int f1285 ;
void d1285 () {}
int f1286 ;
void d1286 () {}
int f1287 ;
void d1287 () {}
int f1288 ;
void d1288 () {}
int f1289 ;
void d1289 () {}
int f1290 ;
void d1290 () {}
int f1291 ;
void d1291 () {}
int f1292 ;
void d1292 () {}
int f1293 ;
void d1293 () {}
int f1294 ;
void d1294 () {}
int f1295 ;
void d1295 () {}
int f1296 ;
void d1296 () {}
int f1297 ;
void d1297 () {}
int f1298 ;
void d1298 () {}
int f1299 ;
void d1299 () {}
int f1300 ;
void d1300 () {}
int f1301 ;
void d1301 () {}
int f1302 ;
void d1302 () {}
int f1303 ;
void d1303 () {}
int f1304 ;
void d1304 () {}
int f1305 ;
void d1305 () {}
int f1306 ;
void d1306 () {}
int f1307 ;
void d1307 () {}
int f1308 ;
void d1308 () {}
int f1309 ;
void d1309 () {}
int f1310 ;
void d1310 () {}
int f1311 ;
void d1311 () {}
int f1312 ;
void d1312 () {}
int f1313 ;
void d1313 () {}
int f1314 ;
void d1314 () {}
int f1315 ;
void d1315 () {}
int f1316 ;
void d1316 () {}
int f1317 ;
void d1317 () {}
int f1318 ;
void d1318 () {}
int f1319 ;
void d1319 () {}
int f1320 ;
void d1320 () {}
int f1321 ;
void d1321 () {}
int f1322 ;
void d1322 () {}
int f1323 ;
void d1323 () {}
int f1324 ;
void d1324 () {}
int f1325 ;
void d1325 () {}
int f1326 ;
void d1326 () {}
int f1327 ;
void d1327 () {}
int f1328 ;
void d1328 () {}
int f1329 ;
void d1329 () {}
int f1330 ;
void d1330 () {}
int f1331 ;
void d1331 () {}
int f1332 ;
void d1332 () {}
int f1333 ;
void d1333 () {}
int f1334 ;
void d1334 () {}
int f1335 ;
void d1335 () {}
int f1336 ;
void d1336 () {}
int f1337 ;
void d1337 () {}
int f1338 ;
void d1338 () {}
int f1339 ;
void d1339 () {}
int f1340 ;
void d1340 () {}
int f1341 ;
void d1341 () {}
int f1342 ;
void d1342 () {}
int f1343 ;
void d1343 () {}
int f1344 ;
void d1344 () {}
int f1345 ;
void d1345 () {}
int f1346 ;
void d1346 () {}
int f1347 ;
void d1347 () {}
int f1348 ;
void d1348 () {}
int f1349 ;
void d1349 () {}
int f1350 ;
void d1350 () {}
int f1351 ;
void d1351 () {}
int f1352 ;
void d1352 () {}
int f1353 ;
void d1353 () {}
int f1354 ;
void d1354 () {}
int f1355 ;
void d1355 () {}
int f1356 ;
void d1356 () {}
int f1357 ;
void d1357 () {}
int f1358 ;
void d1358 () {}
int f1359 ;
void d1359 () {}
int f1360 ;
void d1360 () {}
int f1361 ;
void d1361 () {}
int f1362 ;
void d1362 () {}
int f1363 ;
void d1363 () {}
int f1364 ;
void d1364 () {}
int f1365 ;
void d1365 () {}
int f1366 ;
void d1366 () {}
int f1367 ;
void d1367 () {}
int f1368 ;
void d1368 () {}
int f1369 ;
void d1369 () {}
int f1370 ;
void d1370 () {}
int f1371 ;
void d1371 () {}
int f1372 ;
void d1372 () {}
int f1373 ;
void d1373 () {}
int f1374 ;
void d1374 () {}
int f1375 ;
void d1375 () {}
int f1376 ;
void d1376 () {}
int f1377 ;
void d1377 () {}
int f1378 ;
void d1378 () {}
int f1379 ;
void d1379 () {}
int f1380 ;
void d1380 () {}
int f1381 ;
void d1381 () {}
int f1382 ;
void d1382 () {}
int f1383 ;
void d1383 () {}
int f1384 ;
void d1384 () {}
int f1385 ;
void d1385 () {}
int f1386 ;
void d1386 () {}
int f1387 ;
void d1387 () {}
int f1388 ;
void d1388 () {}
int f1389 ;
void d1389 () {}
int f1390 ;
void d1390 () {}
int f1391 ;
void d1391 () {}
int f1392 ;
void d1392 () {}
int f1393 ;
void d1393 () {}
int f1394 ;
void d1394 () {}
int f1395 ;
void d1395 () {}
int f1396 ;
void d1396 () {}
int f1397 ;
void d1397 () {}
int f1398 ;
void d1398 () {}
int f1399 ;
void d1399 () {}
int f1400 ;
void d1400 () {}
int f1401 ;
void d1401 () {}
int f1402 ;
void d1402 () {}
int f1403 ;
void d1403 () {}
int f1404 ;
void d1404 () {}
int f1405 ;
void d1405 () {}
int f1406 ;
void d1406 () {}
int f1407 ;
void d1407 () {}
int f1408 ;
void d1408 () {}
int f1409 ;
void d1409 () {}
int f1410 ;
void d1410 () {}
int f1411 ;
void d1411 () {}
int f1412 ;
void d1412 () {}
int f1413 ;
void d1413 () {}
int f1414 ;
void d1414 () {}
int f1415 ;
void d1415 () {}
int f1416 ;
void d1416 () {}
int f1417 ;
void d1417 () {}
int f1418 ;
void d1418 () {}
int f1419 ;
void d1419 () {}
int f1420 ;
void d1420 () {}
int f1421 ;
void d1421 () {}
int f1422 ;
void d1422 () {}
int f1423 ;
void d1423 () {}
int f1424 ;
void d1424 () {}
int f1425 ;
void d1425 () {}
int f1426 ;
void d1426 () {}
int f1427 ;
void d1427 () {}
int f1428 ;
void d1428 () {}
int f1429 ;
void d1429 () {}
int f1430 ;
void d1430 () {}
int f1431 ;
void d1431 () {}
int f1432 ;
void d1432 () {}
int f1433 ;
void d1433 () {}
int f1434 ;
void d1434 () {}
int f1435 ;
void d1435 () {}
int f1436 ;
void d1436 () {}
int f1437 ;
void d1437 () {}
int f1438 ;
void d1438 () {}
int f1439 ;
void d1439 () {}
int f1440 ;
void d1440 () {}
int f1441 ;
void d1441 () {}
int f1442 ;
void d1442 () {}
int f1443 ;
void d1443 () {}
int f1444 ;
void d1444 () {}
int f1445 ;
void d1445 () {}
int f1446 ;
void d1446 () {}
int f1447 ;
void d1447 () {}
int f1448 ;
void d1448 () {}
int f1449 ;
void d1449 () {}
int f1450 ;
void d1450 () {}
int f1451 ;
void d1451 () {}
int f1452 ;
void d1452 () {}
int f1453 ;
void d1453 () {}
int f1454 ;
void d1454 () {}
int f1455 ;
void d1455 () {}
int f1456 ;
void d1456 () {}
int f1457 ;
void d1457 () {}
int f1458 ;
void d1458 () {}
int f1459 ;
void d1459 () {}
int f1460 ;
void d1460 () {}
int f1461 ;
void d1461 () {}
int f1462 ;
void d1462 () {}
int f1463 ;
void d1463 () {}
int f1464 ;
void d1464 () {}
int f1465 ;
void d1465 () {}
int f1466 ;
void d1466 () {}
int f1467 ;
void d1467 () {}
int f1468 ;
void d1468 () {}
int f1469 ;
void d1469 () {}
int f1470 ;
void d1470 () {}
int f1471 ;
void d1471 () {}
int f1472 ;
void d1472 () {}
int f1473 ;
void d1473 () {}
int f1474 ;
void d1474 () {}
int f1475 ;
void d1475 () {}
int f1476 ;
void d1476 () {}
int f1477 ;
void d1477 () {}
int f1478 ;
void d1478 () {}
int f1479 ;
void d1479 () {}
int f1480 ;
void d1480 () {}
int f1481 ;
void d1481 () {}
int f1482 ;
void d1482 () {}
int f1483 ;
void d1483 () {}
int f1484 ;
void d1484 () {}
int f1485 ;
void d1485 () {}
int f1486 ;
void d1486 () {}
int f1487 ;
void d1487 () {}
int f1488 ;
void d1488 () {}
int f1489 ;
void d1489 () {}
int f1490 ;
void d1490 () {}
int f1491 ;
void d1491 () {}
int f1492 ;
void d1492 () {}
int f1493 ;
void d1493 () {}
int f1494 ;
void d1494 () {}
int f1495 ;
void d1495 () {}
int f1496 ;
void d1496 () {}
int f1497 ;
void d1497 () {}
int f1498 ;
void d1498 () {}
int f1499 ;
void d1499 () {}
int f1500 ;
void d1500 () {}
int f1501 ;
void d1501 () {}
int f1502 ;
void d1502 () {}
int f1503 ;
void d1503 () {}
int f1504 ;
void d1504 () {}
int f1505 ;
void d1505 () {}
int f1506 ;
void d1506 () {}
int f1507 ;
void d1507 () {}
int f1508 ;
void d1508 () {}
int f1509 ;
void d1509 () {}
int f1510 ;
void d1510 () {}
int f1511 ;
void d1511 () {}
int f1512 ;
void d1512 () {}
int f1513 ;
void d1513 () {}
int f1514 ;
void d1514 () {}
int f1515 ;
void d1515 () {}
int f1516 ;
void d1516 () {}
int f1517 ;
void d1517 () {}
int f1518 ;
void d1518 () {}
int f1519 ;
void d1519 () {}
int f1520 ;
void d1520 () {}
int f1521 ;
void d1521 () {}
int f1522 ;
void d1522 () {}
int f1523 ;
void d1523 () {}
int f1524 ;
void d1524 () {}
int f1525 ;
void d1525 () {}
int f1526 ;
void d1526 () {}
int f1527 ;
void d1527 () {}
int f1528 ;
void d1528 () {}
int f1529 ;
void d1529 () {}
int f1530 ;
void d1530 () {}
int f1531 ;
void d1531 () {}
int f1532 ;
void d1532 () {}
int f1533 ;
void d1533 () {}
int f1534 ;
void d1534 () {}
int f1535 ;
void d1535 () {}
int f1536 ;
void d1536 () {}
int f1537 ;
void d1537 () {}
int f1538 ;
void d1538 () {}
int f1539 ;
void d1539 () {}
int f1540 ;
void d1540 () {}
int f1541 ;
void d1541 () {}
int f1542 ;
void d1542 () {}
int f1543 ;
void d1543 () {}
int f1544 ;
void d1544 () {}
int f1545 ;
void d1545 () {}
int f1546 ;
void d1546 () {}
int f1547 ;
void d1547 () {}
int f1548 ;
void d1548 () {}
int f1549 ;
void d1549 () {}
int f1550 ;
void d1550 () {}
int f1551 ;
void d1551 () {}
int f1552 ;
void d1552 () {}
int f1553 ;
void d1553 () {}
int f1554 ;
void d1554 () {}
int f1555 ;
void d1555 () {}
int f1556 ;
void d1556 () {}
int f1557 ;
void d1557 () {}
int f1558 ;
void d1558 () {}
int f1559 ;
void d1559 () {}
int f1560 ;
void d1560 () {}
int f1561 ;
void d1561 () {}
int f1562 ;
void d1562 () {}
int f1563 ;
void d1563 () {}
int f1564 ;
void d1564 () {}
int f1565 ;
void d1565 () {}
int f1566 ;
void d1566 () {}
int f1567 ;
void d1567 () {}
int f1568 ;
void d1568 () {}
int f1569 ;
void d1569 () {}
int f1570 ;
void d1570 () {}
int f1571 ;
void d1571 () {}
int f1572 ;
void d1572 () {}
int f1573 ;
void d1573 () {}
int f1574 ;
void d1574 () {}
int f1575 ;
void d1575 () {}
int f1576 ;
void d1576 () {}
int f1577 ;
void d1577 () {}
int f1578 ;
void d1578 () {}
int f1579 ;
void d1579 () {}
int f1580 ;
void d1580 () {}
int f1581 ;
void d1581 () {}
int f1582 ;
void d1582 () {}
int f1583 ;
void d1583 () {}
int f1584 ;
void d1584 () {}
int f1585 ;
void d1585 () {}
int f1586 ;
void d1586 () {}
int f1587 ;
void d1587 () {}
int f1588 ;
void d1588 () {}
int f1589 ;
void d1589 () {}
int f1590 ;
void d1590 () {}
int f1591 ;
void d1591 () {}
int f1592 ;
void d1592 () {}
int f1593 ;
void d1593 () {}
int f1594 ;
void d1594 () {}
int f1595 ;
void d1595 () {}
int f1596 ;
void d1596 () {}
int f1597 ;
void d1597 () {}
int f1598 ;
void d1598 () {}
int f1599 ;
void d1599 () {}
int f1600 ;
void d1600 () {}
int f1601 ;
void d1601 () {}
int f1602 ;
void d1602 () {}
int f1603 ;
void d1603 () {}
int f1604 ;
void d1604 () {}
int f1605 ;
void d1605 () {}
int f1606 ;
void d1606 () {}
int f1607 ;
void d1607 () {}
int f1608 ;
void d1608 () {}
int f1609 ;
void d1609 () {}
int f1610 ;
void d1610 () {}
int f1611 ;
void d1611 () {}
int f1612 ;
void d1612 () {}
int f1613 ;
void d1613 () {}
int f1614 ;
void d1614 () {}
int f1615 ;
void d1615 () {}
int f1616 ;
void d1616 () {}
int f1617 ;
void d1617 () {}
int f1618 ;
void d1618 () {}
int f1619 ;
void d1619 () {}
int f1620 ;
void d1620 () {}
int f1621 ;
void d1621 () {}
int f1622 ;
void d1622 () {}
int f1623 ;
void d1623 () {}
int f1624 ;
void d1624 () {}
int f1625 ;
void d1625 () {}
int f1626 ;
void d1626 () {}
int f1627 ;
void d1627 () {}
int f1628 ;
void d1628 () {}
int f1629 ;
void d1629 () {}
int f1630 ;
void d1630 () {}
int f1631 ;
void d1631 () {}
int f1632 ;
void d1632 () {}
int f1633 ;
void d1633 () {}
int f1634 ;
void d1634 () {}
int f1635 ;
void d1635 () {}
int f1636 ;
void d1636 () {}
int f1637 ;
void d1637 () {}
int f1638 ;
void d1638 () {}
int f1639 ;
void d1639 () {}
int f1640 ;
void d1640 () {}
int f1641 ;
void d1641 () {}
int f1642 ;
void d1642 () {}
int f1643 ;
void d1643 () {}
int f1644 ;
void d1644 () {}
int f1645 ;
void d1645 () {}
int f1646 ;
void d1646 () {}
int f1647 ;
void d1647 () {}
int f1648 ;
void d1648 () {}
int f1649 ;
void d1649 () {}
int f1650 ;
void d1650 () {}
int f1651 ;
void d1651 () {}
int f1652 ;
void d1652 () {}
int f1653 ;
void d1653 () {}
int f1654 ;
void d1654 () {}
int f1655 ;
void d1655 () {}
int f1656 ;
void d1656 () {}
int f1657 ;
void d1657 () {}
int f1658 ;
void d1658 () {}
int f1659 ;
void d1659 () {}
int f1660 ;
void d1660 () {}
int f1661 ;
void d1661 () {}
int f1662 ;
void d1662 () {}
int f1663 ;
void d1663 () {}
int f1664 ;
void d1664 () {}
int f1665 ;
void d1665 () {}
int f1666 ;
void d1666 () {}
int f1667 ;
void d1667 () {}
int f1668 ;
void d1668 () {}
int f1669 ;
void d1669 () {}
int f1670 ;
void d1670 () {}
int f1671 ;
void d1671 () {}
int f1672 ;
void d1672 () {}
int f1673 ;
void d1673 () {}
int f1674 ;
void d1674 () {}
int f1675 ;
void d1675 () {}
int f1676 ;
void d1676 () {}
int f1677 ;
void d1677 () {}
int f1678 ;
void d1678 () {}
int f1679 ;
void d1679 () {}
int f1680 ;
void d1680 () {}
int f1681 ;
void d1681 () {}
int f1682 ;
void d1682 () {}
int f1683 ;
void d1683 () {}
int f1684 ;
void d1684 () {}
int f1685 ;
void d1685 () {}
int f1686 ;
void d1686 () {}
int f1687 ;
void d1687 () {}
int f1688 ;
void d1688 () {}
int f1689 ;
void d1689 () {}
int f1690 ;
void d1690 () {}
int f1691 ;
void d1691 () {}
int f1692 ;
void d1692 () {}
int f1693 ;
void d1693 () {}
int f1694 ;
void d1694 () {}
int f1695 ;
void d1695 () {}
int f1696 ;
void d1696 () {}
int f1697 ;
void d1697 () {}
int f1698 ;
void d1698 () {}
int f1699 ;
void d1699 () {}
int f1700 ;
void d1700 () {}
int f1701 ;
void d1701 () {}
int f1702 ;
void d1702 () {}
int f1703 ;
void d1703 () {}
int f1704 ;
void d1704 () {}
int f1705 ;
void d1705 () {}
int f1706 ;
void d1706 () {}
int f1707 ;
void d1707 () {}
int f1708 ;
void d1708 () {}
int f1709 ;
void d1709 () {}
int f1710 ;
void d1710 () {}
int f1711 ;
void d1711 () {}
int f1712 ;
void d1712 () {}
int f1713 ;
void d1713 () {}
int f1714 ;
void d1714 () {}
int f1715 ;
void d1715 () {}
int f1716 ;
void d1716 () {}
int f1717 ;
void d1717 () {}
int f1718 ;
void d1718 () {}
int f1719 ;
void d1719 () {}
int f1720 ;
void d1720 () {}
int f1721 ;
void d1721 () {}
int f1722 ;
void d1722 () {}
int f1723 ;
void d1723 () {}
int f1724 ;
void d1724 () {}
int f1725 ;
void d1725 () {}
int f1726 ;
void d1726 () {}
int f1727 ;
void d1727 () {}
int f1728 ;
void d1728 () {}
int f1729 ;
void d1729 () {}
int f1730 ;
void d1730 () {}
int f1731 ;
void d1731 () {}
int f1732 ;
void d1732 () {}
int f1733 ;
void d1733 () {}
int f1734 ;
void d1734 () {}
int f1735 ;
void d1735 () {}
int f1736 ;
void d1736 () {}
int f1737 ;
void d1737 () {}
int f1738 ;
void d1738 () {}
int f1739 ;
void d1739 () {}
int f1740 ;
void d1740 () {}
int f1741 ;
void d1741 () {}
int f1742 ;
void d1742 () {}
int f1743 ;
void d1743 () {}
int f1744 ;
void d1744 () {}
int f1745 ;
void d1745 () {}
int f1746 ;
void d1746 () {}
int f1747 ;
void d1747 () {}
int f1748 ;
void d1748 () {}
int f1749 ;
void d1749 () {}
int f1750 ;
void d1750 () {}
int f1751 ;
void d1751 () {}
int f1752 ;
void d1752 () {}
int f1753 ;
void d1753 () {}
int f1754 ;
void d1754 () {}
int f1755 ;
void d1755 () {}
int f1756 ;
void d1756 () {}
int f1757 ;
void d1757 () {}
int f1758 ;
void d1758 () {}
int f1759 ;
void d1759 () {}
int f1760 ;
void d1760 () {}
int f1761 ;
void d1761 () {}
int f1762 ;
void d1762 () {}
int f1763 ;
void d1763 () {}
int f1764 ;
void d1764 () {}
int f1765 ;
void d1765 () {}
int f1766 ;
void d1766 () {}
int f1767 ;
void d1767 () {}
int f1768 ;
void d1768 () {}
int f1769 ;
void d1769 () {}
int f1770 ;
void d1770 () {}
int f1771 ;
void d1771 () {}
int f1772 ;
void d1772 () {}
int f1773 ;
void d1773 () {}
int f1774 ;
void d1774 () {}
int f1775 ;
void d1775 () {}
int f1776 ;
void d1776 () {}
int f1777 ;
void d1777 () {}
int f1778 ;
void d1778 () {}
int f1779 ;
void d1779 () {}
int f1780 ;
void d1780 () {}
int f1781 ;
void d1781 () {}
int f1782 ;
void d1782 () {}
int f1783 ;
void d1783 () {}
int f1784 ;
void d1784 () {}
int f1785 ;
void d1785 () {}
int f1786 ;
void d1786 () {}
int f1787 ;
void d1787 () {}
int f1788 ;
void d1788 () {}
int f1789 ;
void d1789 () {}
int f1790 ;
void d1790 () {}
int f1791 ;
void d1791 () {}
int f1792 ;
void d1792 () {}
int f1793 ;
void d1793 () {}
int f1794 ;
void d1794 () {}
int f1795 ;
void d1795 () {}
int f1796 ;
void d1796 () {}
int f1797 ;
void d1797 () {}
int f1798 ;
void d1798 () {}
int f1799 ;
void d1799 () {}
int f1800 ;
void d1800 () {}
int f1801 ;
void d1801 () {}
int f1802 ;
void d1802 () {}
int f1803 ;
void d1803 () {}
int f1804 ;
void d1804 () {}
int f1805 ;
void d1805 () {}
int f1806 ;
void d1806 () {}
int f1807 ;
void d1807 () {}
int f1808 ;
void d1808 () {}
int f1809 ;
void d1809 () {}
int f1810 ;
void d1810 () {}
int f1811 ;
void d1811 () {}
int f1812 ;
void d1812 () {}
int f1813 ;
void d1813 () {}
int f1814 ;
void d1814 () {}
int f1815 ;
void d1815 () {}
int f1816 ;
void d1816 () {}
int f1817 ;
void d1817 () {}
int f1818 ;
void d1818 () {}
int f1819 ;
void d1819 () {}
int f1820 ;
void d1820 () {}
int f1821 ;
void d1821 () {}
int f1822 ;
void d1822 () {}
int f1823 ;
void d1823 () {}
int f1824 ;
void d1824 () {}
int f1825 ;
void d1825 () {}
int f1826 ;
void d1826 () {}
int f1827 ;
void d1827 () {}
int f1828 ;
void d1828 () {}
int f1829 ;
void d1829 () {}
int f1830 ;
void d1830 () {}
int f1831 ;
void d1831 () {}
int f1832 ;
void d1832 () {}
int f1833 ;
void d1833 () {}
int f1834 ;
void d1834 () {}
int f1835 ;
void d1835 () {}
int f1836 ;
void d1836 () {}
int f1837 ;
void d1837 () {}
int f1838 ;
void d1838 () {}
int f1839 ;
void d1839 () {}
int f1840 ;
void d1840 () {}
int f1841 ;
void d1841 () {}
int f1842 ;
void d1842 () {}
int f1843 ;
void d1843 () {}
int f1844 ;
void d1844 () {}
int f1845 ;
void d1845 () {}
int f1846 ;
void d1846 () {}
int f1847 ;
void d1847 () {}
int f1848 ;
void d1848 () {}
int f1849 ;
void d1849 () {}
int f1850 ;
void d1850 () {}
int f1851 ;
void d1851 () {}
int f1852 ;
void d1852 () {}
int f1853 ;
void d1853 () {}
int f1854 ;
void d1854 () {}
int f1855 ;
void d1855 () {}
int f1856 ;
void d1856 () {}
int f1857 ;
void d1857 () {}
int f1858 ;
void d1858 () {}
int f1859 ;
void d1859 () {}
int f1860 ;
void d1860 () {}
int f1861 ;
void d1861 () {}
int f1862 ;
void d1862 () {}
int f1863 ;
void d1863 () {}
int f1864 ;
void d1864 () {}
int f1865 ;
void d1865 () {}
int f1866 ;
void d1866 () {}
int f1867 ;
void d1867 () {}
int f1868 ;
void d1868 () {}
int f1869 ;
void d1869 () {}
int f1870 ;
void d1870 () {}
int f1871 ;
void d1871 () {}
int f1872 ;
void d1872 () {}
int f1873 ;
void d1873 () {}
int f1874 ;
void d1874 () {}
int f1875 ;
void d1875 () {}
int f1876 ;
void d1876 () {}
int f1877 ;
void d1877 () {}
int f1878 ;
void d1878 () {}
int f1879 ;
void d1879 () {}
int f1880 ;
void d1880 () {}
int f1881 ;
void d1881 () {}
int f1882 ;
void d1882 () {}
int f1883 ;
void d1883 () {}
int f1884 ;
void d1884 () {}
int f1885 ;
void d1885 () {}
int f1886 ;
void d1886 () {}
int f1887 ;
void d1887 () {}
int f1888 ;
void d1888 () {}
int f1889 ;
void d1889 () {}
int f1890 ;
void d1890 () {}
int f1891 ;
void d1891 () {}
int f1892 ;
void d1892 () {}
int f1893 ;
void d1893 () {}
int f1894 ;
void d1894 () {}
int f1895 ;
void d1895 () {}
int f1896 ;
void d1896 () {}
int f1897 ;
void d1897 () {}
int f1898 ;
void d1898 () {}
int f1899 ;
void d1899 () {}
int f1900 ;
void d1900 () {}
int f1901 ;
void d1901 () {}
int f1902 ;
void d1902 () {}
int f1903 ;
void d1903 () {}
int f1904 ;
void d1904 () {}
int f1905 ;
void d1905 () {}
int f1906 ;
void d1906 () {}
int f1907 ;
void d1907 () {}
int f1908 ;
void d1908 () {}
int f1909 ;
void d1909 () {}
int f1910 ;
void d1910 () {}
int f1911 ;
void d1911 () {}
int f1912 ;
void d1912 () {}
int f1913 ;
void d1913 () {}
int f1914 ;
void d1914 () {}
int f1915 ;
void d1915 () {}
int f1916 ;
void d1916 () {}
int f1917 ;
void d1917 () {}
int f1918 ;
void d1918 () {}
int f1919 ;
void d1919 () {}
int f1920 ;
void d1920 () {}
int f1921 ;
void d1921 () {}
int f1922 ;
void d1922 () {}
int f1923 ;
void d1923 () {}
int f1924 ;
void d1924 () {}
int f1925 ;
void d1925 () {}
int f1926 ;
void d1926 () {}
int f1927 ;
void d1927 () {}
int f1928 ;
void d1928 () {}
int f1929 ;
void d1929 () {}
int f1930 ;
void d1930 () {}
int f1931 ;
void d1931 () {}
int f1932 ;
void d1932 () {}
int f1933 ;
void d1933 () {}
int f1934 ;
void d1934 () {}
int f1935 ;
void d1935 () {}
int f1936 ;
void d1936 () {}
int f1937 ;
void d1937 () {}
int f1938 ;
void d1938 () {}
int f1939 ;
void d1939 () {}
int f1940 ;
void d1940 () {}
int f1941 ;
void d1941 () {}
int f1942 ;
void d1942 () {}
int f1943 ;
void d1943 () {}
int f1944 ;
void d1944 () {}
int f1945 ;
void d1945 () {}
int f1946 ;
void d1946 () {}
int f1947 ;
void d1947 () {}
int f1948 ;
void d1948 () {}
int f1949 ;
void d1949 () {}
int f1950 ;
void d1950 () {}
int f1951 ;
void d1951 () {}
int f1952 ;
void d1952 () {}
int f1953 ;
void d1953 () {}
int f1954 ;
void d1954 () {}
int f1955 ;
void d1955 () {}
int f1956 ;
void d1956 () {}
int f1957 ;
void d1957 () {}
int f1958 ;
void d1958 () {}
int f1959 ;
void d1959 () {}
int f1960 ;
void d1960 () {}
int f1961 ;
void d1961 () {}
int f1962 ;
void d1962 () {}
int f1963 ;
void d1963 () {}
int f1964 ;
void d1964 () {}
int f1965 ;
void d1965 () {}
int f1966 ;
void d1966 () {}
int f1967 ;
void d1967 () {}
int f1968 ;
void d1968 () {}
int f1969 ;
void d1969 () {}
int f1970 ;
void d1970 () {}
int f1971 ;
void d1971 () {}
int f1972 ;
void d1972 () {}
int f1973 ;
void d1973 () {}
int f1974 ;
void d1974 () {}
int f1975 ;
void d1975 () {}
int f1976 ;
void d1976 () {}
int f1977 ;
void d1977 () {}
int f1978 ;
void d1978 () {}
int f1979 ;
void d1979 () {}
int f1980 ;
void d1980 () {}
int f1981 ;
void d1981 () {}
int f1982 ;
void d1982 () {}
int f1983 ;
void d1983 () {}
int f1984 ;
void d1984 () {}
int f1985 ;
void d1985 () {}
int f1986 ;
void d1986 () {}
int f1987 ;
void d1987 () {}
int f1988 ;
void d1988 () {}
int f1989 ;
void d1989 () {}
int f1990 ;
void d1990 () {}
int f1991 ;
void d1991 () {}
int f1992 ;
void d1992 () {}
int f1993 ;
void d1993 () {}
int f1994 ;
void d1994 () {}
int f1995 ;
void d1995 () {}
int f1996 ;
void d1996 () {}
int f1997 ;
void d1997 () {}
int f1998 ;
void d1998 () {}
int f1999 ;
void d1999 () {}
int f2000 ;
void d2000 () {}
int f2001 ;
void d2001 () {}
int f2002 ;
void d2002 () {}
int f2003 ;
void d2003 () {}
int f2004 ;
void d2004 () {}
int f2005 ;
void d2005 () {}
int f2006 ;
void d2006 () {}
int f2007 ;
void d2007 () {}
int f2008 ;
void d2008 () {}
int f2009 ;
void d2009 () {}
int f2010 ;
void d2010 () {}
int f2011 ;
void d2011 () {}
int f2012 ;
void d2012 () {}
int f2013 ;
void d2013 () {}
int f2014 ;
void d2014 () {}
int f2015 ;
void d2015 () {}
int f2016 ;
void d2016 () {}
int f2017 ;
void d2017 () {}
int f2018 ;
void d2018 () {}
int f2019 ;
void d2019 () {}
int f2020 ;
void d2020 () {}
int f2021 ;
void d2021 () {}
int f2022 ;
void d2022 () {}
int f2023 ;
void d2023 () {}
int f2024 ;
void d2024 () {}
int f2025 ;
void d2025 () {}
int f2026 ;
void d2026 () {}
int f2027 ;
void d2027 () {}
int f2028 ;
void d2028 () {}
int f2029 ;
void d2029 () {}
int f2030 ;
void d2030 () {}
int f2031 ;
void d2031 () {}
int f2032 ;
void d2032 () {}
int f2033 ;
void d2033 () {}
int f2034 ;
void d2034 () {}
int f2035 ;
void d2035 () {}
int f2036 ;
void d2036 () {}
int f2037 ;
void d2037 () {}
int f2038 ;
void d2038 () {}
int f2039 ;
void d2039 () {}
int f2040 ;
void d2040 () {}
int f2041 ;
void d2041 () {}
int f2042 ;
void d2042 () {}
int f2043 ;
void d2043 () {}
int f2044 ;
void d2044 () {}
int f2045 ;
void d2045 () {}
int f2046 ;
void d2046 () {}
int f2047 ;
void d2047 () {}
}
| 58,430 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
InterfaceInInner.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/InterfaceInInner.java | /*
* @test /nodynamiccopyright/
* @bug 4063740 6969184
* @summary Interfaces may only be declared in top level classes.
* @author turnidge
*
* @compile/fail/ref=InterfaceInInner.out -XDrawDiagnostics InterfaceInInner.java
*/
class InterfaceInInner {
InterfaceInInner() {
class foo {
interface A {
}
}
}
}
| 361 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6665791.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6665791.java | /*
* Copyright (c) 2010, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6665791
* @summary com.sun.source.tree.MethodTree.toString() does not output default values
*/
import java.io.File;
import java.io.IOException;
import java.io.StringWriter;
import javax.tools.JavaCompiler;
import javax.tools.JavaFileObject;
import javax.tools.StandardJavaFileManager;
import javax.tools.ToolProvider;
import com.sun.source.tree.ClassTree;
import com.sun.source.util.JavacTask;
import com.sun.source.util.TreeScanner;
import java.io.FileWriter;
public class T6665791 {
static String test = "public @interface Annotation { boolean booleanProperty() default false; }";
static File test_java = new File("Test.java");
public static void main(String[] args) throws Exception {
write(test_java, test);
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
StandardJavaFileManager manager =
compiler.getStandardFileManager(null, null, null);
Iterable<? extends JavaFileObject> units = manager.getJavaFileObjects(test_java);
final StringWriter sw = new StringWriter();
JavacTask task = (JavacTask) compiler.getTask(sw, manager, null, null,
null, units);
new TreeScanner<Boolean, Void>() {
@Override
public Boolean visitClass(ClassTree arg0, Void arg1) {
sw.write(arg0.toString());
return super.visitClass(arg0, arg1);
}
}.scan(task.parse(), null);
System.out.println("output:");
System.out.println(sw.toString());
String found = sw.toString().replaceAll("\\s+", " ").trim();
String expect = test.replaceAll("\\s+", " ").trim();
if (!expect.equals(found)) {
System.out.println("expect: " + expect);
System.out.println("found: " + found);
throw new Exception("unexpected output");
}
}
static void write(File file, String body) throws IOException {
FileWriter out = new FileWriter(file);
out.write(body);
out.close();
}
}
| 3,113 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6247324.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6247324.java | /*
* @test /nodynamiccopyright/
* @bug 6247324
* @compile/fail/ref=T6247324.out -XDrawDiagnostics -Xlint -Xlint:-path T6247324.java
*/
class Pair<X,Y> {
private X x;
private Y y;
public Pair(X x, Y y){
this.x = x;
this.y = y;
}
public X getX(){
return x;
}
@Seetharam // Undefined annotation...
public Y getY(){
return y;
}
}
public class T6247324{
public void myMethod(){
Pair<Integer, String> pair = new Pair<Integer, String>(0, "I am not sure");
int intValue = pair.getX();
String strValue = pair.getY();
}
}
| 620 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6554097.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6554097.java | /*
* @test /nodynamiccopyright/
* @bug 6554097
* @summary "final" confuses at-SuppressWarnings
* @compile T6554097.java
* @compile/fail/ref=T6554097.out -XDrawDiagnostics -Werror -Xlint:serial T6554097.java
*/
class T6554097 {
@SuppressWarnings("serial") final Throwable[] v1 = { new Throwable() {} };
@SuppressWarnings("serial") Throwable[] v2 = { new Throwable() {} };
public static void m1() throws Throwable {
@SuppressWarnings("serial") final Throwable[] v3 = { new Throwable() {} };
@SuppressWarnings("serial") Throwable[] v4 = { new Throwable() {} };
}
final Throwable[] v5 = { new Throwable() {} };
Throwable[] v6 = { new Throwable() {} };
public static void m2() throws Throwable {
final Throwable[] v7 = { new Throwable() {} };
Throwable[] v8 = { new Throwable() {} };
}
}
| 898 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
ConditionalInline.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/ConditionalInline.java | /*
* Copyright (c) 1998, 1999, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4069861
* @summary The compiler got a null pointer exception on code like the
* following.
* @compile ConditionalInline.java
* @author turnidge
*/
public class ConditionalInline {
void method(int i) {
boolean a;
if ((i < 7) ? a = true : false) {
}
}
}
| 1,376 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
QualifiedThisAndSuper_3.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/QualifiedThisAndSuper_3.java | /*
* Copyright (c) 1998, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4147520
* @summary Verify correct implementation of qualified 'this' and 'super'.
* @author maddox
*
* @run compile QualifiedThisAndSuper_3.java
* @run main QualifiedThisAndSuper_3
*/
class AS {
String s = "ass";
private String t = "ast";
protected String u = "asu";
String m() { return "asm"; }
private String n() { return "asn"; }
protected String o() { return "aso"; }
static String xs = "xass";
static private String xt = "xast";
static protected String xu = "xasu";
static String xm() { return "xasm"; }
static private String xn() { return "xasn"; }
static protected String xo() { return "xaso"; }
}
class BS {
String s = "bss";
private String t = "bst";
protected String u = "bsu";
String m() { return "bsm"; }
private String n() { return "bsn"; }
protected String o() { return "bso"; }
}
class CS {
String s = "css";
private String t = "cst";
protected String u = "csu";
String m() { return "csm"; }
private String n() { return "csn"; }
protected String o() { return "cso"; }
}
public class QualifiedThisAndSuper_3 extends AS {
void check(String expr, String result, String expected) {
if (!result.equals(expected)) {
throw new Error("Evaluated "+ expr +
" : result " + result + ", expected " + expected);
}
}
QualifiedThisAndSuper_3() { super(); }
String s = "as";
private String t = "at";
protected String u = "au";
String m() { return "am"; }
private String n() { return "an"; }
protected String o() { return "ao"; }
static String xs = "xas";
static private String xt = "xat";
static protected String xu = "xau";
static String xm() { return "xam"; }
static private String xn() { return "xan"; }
static protected String xo() { return "xao"; }
public class B extends BS {
B() { super(); }
String s = "bs";
private String t = "bt";
protected String u = "bu";
String m() { return "bm"; }
private String n() { return "bn"; }
protected String o() { return "bo"; }
public class C extends CS {
C() { super(); }
String s = "cs";
private String t = "ct";
protected String u = "cu";
String m() { return "cm"; }
private String n() { return "cn"; }
protected String o() { return "co"; }
void test() {
check("QualifiedThisAndSuper_3.super.xm()", QualifiedThisAndSuper_3.super.xm(), "xasm");
// Private to another package-member class: not accessible
// check("QualifiedThisAndSuper_3.super.xn()", QualifiedThisAndSuper_3.super.xn(), "xasn");
check("QualifiedThisAndSuper_3.super.xo()", QualifiedThisAndSuper_3.super.xo(), "xaso");
check("QualifiedThisAndSuper_3.super.xs", QualifiedThisAndSuper_3.super.xs, "xass");
// Private to another package-member class: not accessible
// check("QualifiedThisAndSuper_3.super.xt", QualifiedThisAndSuper_3.super.xt, "xast");
check("QualifiedThisAndSuper_3.super.xu", QualifiedThisAndSuper_3.super.xu, "xasu");
check("QualifiedThisAndSuper_3.this.xm()", QualifiedThisAndSuper_3.this.xm(), "xam");
check("QualifiedThisAndSuper_3.this.xn()", QualifiedThisAndSuper_3.this.xn(), "xan");
check("QualifiedThisAndSuper_3.this.xo()", QualifiedThisAndSuper_3.this.xo(), "xao");
check("QualifiedThisAndSuper_3.this.xs", QualifiedThisAndSuper_3.this.xs, "xas");
check("QualifiedThisAndSuper_3.this.xt", QualifiedThisAndSuper_3.this.xt, "xat");
check("QualifiedThisAndSuper_3.this.xu", QualifiedThisAndSuper_3.this.xu, "xau");
//---
check("this.m()", this.m(), "cm");
check("QualifiedThisAndSuper_3.this.m()", QualifiedThisAndSuper_3.this.m(), "am");
check("B.this.m()", B.this.m(), "bm");
check("C.this.m()", C.this.m(), "cm");
check("super.m()", super.m(), "csm");
check("QualifiedThisAndSuper_3.super.m()", QualifiedThisAndSuper_3.super.m(), "asm");
check("B.super.m()", B.super.m(), "bsm");
check("C.super.m()", C.super.m(), "csm");
// should re-use access methods.
check("QualifiedThisAndSuper_3.super.m()", QualifiedThisAndSuper_3.super.m(), "asm");
check("B.super.m()", B.super.m(), "bsm");
check("C.super.m()", C.super.m(), "csm");
//---
check("this.n()", this.n(), "cn");
check("QualifiedThisAndSuper_3.this.n()", QualifiedThisAndSuper_3.this.n(), "an");
check("B.this.n()", B.this.n(), "bn");
check("C.this.n()", C.this.n(), "cn");
/*****
check("super.n()", super.n(), "csn");
check("QualifiedThisAndSuper_3.super.n()", QualifiedThisAndSuper_3.super.n(), "asn");
check("B.super.n()", B.super.n(), "bsn");
check("C.super.n()", C.super.n(), "csn");
// should re-use access methods.
check("QualifiedThisAndSuper_3.super.n()", QualifiedThisAndSuper_3.super.n(), "asn");
check("B.super.n()", B.super.n(), "bsn");
check("C.super.n()", C.super.n(), "csn");
*****/
//---
check("this.o()", this.o(), "co");
check("QualifiedThisAndSuper_3.this.o()", QualifiedThisAndSuper_3.this.o(), "ao");
check("B.this.o()", B.this.o(), "bo");
check("C.this.o()", C.this.o(), "co");
check("super.o()", super.o(), "cso");
check("QualifiedThisAndSuper_3.super.o()", QualifiedThisAndSuper_3.super.o(), "aso");
check("B.super.o()", B.super.o(), "bso");
check("C.super.o()", C.super.o(), "cso");
// should re-use access methods.
check("QualifiedThisAndSuper_3.super.o()", QualifiedThisAndSuper_3.super.o(), "aso");
check("B.super.o()", B.super.o(), "bso");
check("C.super.o()", C.super.o(), "cso");
//---
check("this.s", this.s, "cs");
check("QualifiedThisAndSuper_3.this.s", QualifiedThisAndSuper_3.this.s, "as");
check("B.this.s", B.this.s, "bs");
check("C.this.s", C.this.s, "cs");
//---
check("this.t", this.t, "ct");
check("QualifiedThisAndSuper_3.this.t", QualifiedThisAndSuper_3.this.t, "at");
check("B.this.t", B.this.t, "bt");
check("C.this.t", C.this.t, "ct");
//---
check("this.u", this.u, "cu");
check("QualifiedThisAndSuper_3.this.u", QualifiedThisAndSuper_3.this.u, "au");
check("B.this.u", B.this.u, "bu");
check("C.this.u", C.this.u, "cu");
//---
check("super.s", super.s, "css");
check("QualifiedThisAndSuper_3.super.s", QualifiedThisAndSuper_3.super.s, "ass");
check("B.super.s", B.super.s, "bss");
check("C.super.s", C.super.s, "css");
//---
/*****
check("super.t", super.t, "cst");
check("QualifiedThisAndSuper_3.super.t", QualifiedThisAndSuper_3.super.t, "ast");
check("B.super.t", B.super.t, "bst");
check("C.super.t", C.super.t, "cst");
*****/
//---
check("super.u", super.u, "csu");
check("QualifiedThisAndSuper_3.super.u", QualifiedThisAndSuper_3.super.u, "asu");
check("B.super.u", B.super.u, "bsu");
check("C.super.u", C.super.u, "csu");
//---
QualifiedThisAndSuper_3.this.s = "foo";
System.out.println(QualifiedThisAndSuper_3.this.s);
check("QualifiedThisAndSuper_3.this.s", QualifiedThisAndSuper_3.this.s, "foo");
B.this.s = "bar";
System.out.println(B.this.s);
check("B.this.s", B.this.s, "bar");
C.this.s = "baz";
System.out.println(C.this.s);
check("C.this.s", C.this.s, "baz");
QualifiedThisAndSuper_3.this.t = "foo";
System.out.println(QualifiedThisAndSuper_3.this.t);
check("QualifiedThisAndSuper_3.this.t", QualifiedThisAndSuper_3.this.t, "foo");
B.this.t = "bar";
System.out.println(B.this.t);
check("B.this.t", B.this.t, "bar");
C.this.t = "baz";
System.out.println(C.this.t);
check("C.this.t", C.this.t, "baz");
QualifiedThisAndSuper_3.this.u = "foo";
System.out.println(QualifiedThisAndSuper_3.this.u);
check("QualifiedThisAndSuper_3.this.u", QualifiedThisAndSuper_3.this.u, "foo");
B.this.u = "bar";
System.out.println(B.this.u);
check("B.this.u", B.this.u, "bar");
C.this.u = "baz";
System.out.println(C.this.u);
check("C.this.u", C.this.u, "baz");
QualifiedThisAndSuper_3.super.s = "foo";
System.out.println(QualifiedThisAndSuper_3.super.s);
check("QualifiedThisAndSuper_3.super.s", QualifiedThisAndSuper_3.super.s, "foo");
B.super.s = "bar";
System.out.println(B.super.s);
check("B.super.s", B.super.s, "bar");
C.super.s = "baz";
System.out.println(C.super.s);
check("C.super.s", C.super.s, "baz");
/*****
QualifiedThisAndSuper_3.super.t = "foo";
System.out.println(QualifiedThisAndSuper_3.super.t);
check("QualifiedThisAndSuper_3.super.t", QualifiedThisAndSuper_3.super.t, "foo");
B.super.t = "bar";
System.out.println(B.super.t);
check("B.super.t", B.super.t, "bar");
C.super.t = "baz";
System.out.println(C.super.t);
check("C.super.t", C.super.t, "baz");
*****/
QualifiedThisAndSuper_3.super.u = "foo";
System.out.println(QualifiedThisAndSuper_3.super.u);
check("QualifiedThisAndSuper_3.super.u", QualifiedThisAndSuper_3.super.u, "foo");
B.super.u = "bar";
System.out.println(B.super.u);
check("B.super.u", B.super.u, "bar");
C.super.u = "baz";
System.out.println(C.super.u);
check("C.super.u", C.super.u, "baz");
}
}
void test() throws Exception {
C c = new C();
c.test();
}
}
void test() throws Exception {
B b = new B();
b.test();
}
public static void main(String[] args) throws Exception {
QualifiedThisAndSuper_3 a = new QualifiedThisAndSuper_3();
a.test();
}
}
| 12,545 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
VarDeclarationWithAssignment.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/VarDeclarationWithAssignment.java | /*
* Copyright (c) 1997, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4076729
* @summary The statement "int j = (j = BLAH);" did not compile correctly in
* some contexts.
* @author turnidge
*
* @compile VarDeclarationWithAssignment.java
* @run main/othervm -verify VarDeclarationWithAssignment
*/
public
class VarDeclarationWithAssignment {
int x;
public static void main(String[] args) {
for (int i = 0; i < 1; i++);
VarDeclarationWithAssignment c = new VarDeclarationWithAssignment();
int j = (j=4);
c.x = 11;
}
}
| 1,559 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
ThrowsIntersection_4.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/ThrowsIntersection_4.java | /*
* Copyright (c) 2000, 2010, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4042259
* @summary Check that a class can inherit multiple methods with conflicting throws clauses.
* @author maddox
*
* @run compile/fail ThrowsIntersection_4.java
*/
package ThrowsIntersection_4;
// Note: This is the test that actually failed for 4042259. The others are for completeness.
class Ex1 extends Exception {}
class Ex2 extends Exception {}
interface a {
int m1() throws Ex1;
}
interface b {
int m1() throws Ex2;
}
// Should fail regardless of order in which superinterfaces appear.
abstract class c implements a, b {}
//abstract class c implements b, a {}
class d extends c {
public int m1() throws Ex1 {
return 1;
}
}
| 1,737 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6407257.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6407257.java | /*
* Copyright (c) 2006, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6407257
* @summary javac locks up when encountering cyclic inheritance
* @author Peter von der Ah\u00e9
* @compile/fail T6407257.java
*/
class T6407257a extends T6407257a {}
public class T6407257 extends T6407257a {
public static void main(String... args) {
main(args);
}
}
| 1,373 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
SuperNew.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/SuperNew.java | /*
* Copyright (c) 2002, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4500836
* @summary javac fails to find enclosing instance early in constructor
* @author gafter
*
* @compile SuperNew.java
*/
public class SuperNew {
class Inner1 {
}
class Inner2 {
Inner2(Inner1 ignore) {}
Inner2() {
this(new Inner1()); //BAD
}
Inner2(String s) {
this(SuperNew.this.new Inner1()); //OK
}
Inner2(char junk) {
this(newInner1()); //OK
}
Inner2(byte junk) {
this(SuperNew.this.newInner1()); //OK
}
}
Inner1 newInner1() { return new Inner1(); }
}
| 1,679 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6595666.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6595666.java | /*
* Copyright (c) 2009, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6595666
* @summary fix -Werror
*/
import java.io.*;
import java.util.*;
public class T6595666 {
void m() {
// the following line must create warnings with -Xlint, because of unchecked conversion
List<Integer> list = new ArrayList();
}
public static void main(String... args) throws Exception {
File testSrc = new File(System.getProperty("test.src", "."));
String basename = T6595666.class.getName();
File srcFile = new File(testSrc, basename+".java");
File classFile = new File(basename+".class");
classFile.delete();
if (classFile.exists())
throw new Exception("setup error, can't delete " + classFile);
compile(1, "-d", ".", "-Xlint", "-Werror", srcFile.getPath());
if (classFile.exists())
throw new Exception("failed: found " + classFile);
compile(0, "-d", ".", "-Xlint", srcFile.getPath());
if (!classFile.exists())
throw new Exception("failed: " + classFile + " not found");
}
private static void compile(int rc, String... args) throws Exception {
System.err.println("compile: " + Arrays.asList(args));
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
int rc2 = com.sun.tools.javac.Main.compile(args, pw);
pw.close();
System.err.println(sw);
if (rc != rc2)
throw new Exception("bad exit code; expected " + rc + ", found " + rc2);
}
}
| 2,571 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
SuperMeth.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/SuperMeth.java | /*
* Copyright (c) 2002, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4734016
* @summary Verify fails on inner class call to Outer.super.method()
* @author gafter
*
* @compile SuperMeth.java
* @run main SuperMeth
*/
public class SuperMeth {
public static void main(String[] ignore) {
int h = new Outer().hashCode();
}
}
class Outer {
Inner inner = new Inner();
class Inner {
public int hashCode() { return Outer.super.hashCode(); }
}
public int hashCode() { return inner.hashCode(); }
}
| 1,529 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
Closure1.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/Closure1.java | /*
* Copyright (c) 2001, 2004, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4030374
* @summary Initialization of up-level links, immediately after super(), occurs too late.
* @author gafter
*
* @compile Closure1.java
* @run main Closure1
*/
// Make sure the closure is present when the superclass is constructed.
// Specifically, N must have its T.this initialized when S calls hi().
public class Closure1 {
static class S {
void hi() { throw new Error(); }
S() { hi(); }
}
static class T {
void greet() { }
class N extends S {
void hi() {
T.this.greet();
}
}
}
public static void main(String av[]) { new T().new N(); }
}
| 1,732 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6394563.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6394563.java | /*
* @test /nodynamiccopyright/
* @bug 6394563
* @summary javac ignores -nowarn switch in 1.5.0_06 for deprecation warnings
*
* @compile/ref=T6394563.note.out -XDrawDiagnostics -nowarn T6394563.java
* @compile/ref=T6394563.note.out -XDrawDiagnostics -nowarn -source 1.5 T6394563.java
* @compile/ref=T6394563.empty.out -XDrawDiagnostics -nowarn -source 1.4 T6394563.java
*
* @compile/ref=T6394563.warn.out -XDrawDiagnostics -Xlint -nowarn T6394563.java
* @compile/ref=T6394563.warn.out -XDrawDiagnostics -Xlint -nowarn -source 1.5 T6394563.java
* @compile/ref=T6394563.empty.out -XDrawDiagnostics -Xlint -nowarn -source 1.4 T6394563.java
*/
class T6394563 {
void useDeprecated() {
deprecated.foo();
}
}
class deprecated {
/** @deprecated */ static void foo() { }
}
| 827 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
Closure3.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/Closure3.java | /*
* Copyright (c) 2001, 2004, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4030374
* @summary Initialization of up-level links, immediately after super(), occurs too late.
* @author gafter
*
* @compile Closure3.java
* @run main Closure3
*/
// Make sure the closure is present when the superclass is constructed.
// Specifically, Closure3.$1 must have its $parameter and $local_var copies initialized when BaseClass calls x().
abstract class BaseClass
{
protected BaseClass()
{
x();
}
protected abstract void x();
}
public class Closure3
{
public static void main(String[] args)
{
callingMethod("12345678");
}
protected static void callingMethod(final String parameter)
{
String t = "12345";
final String local_var = t;
BaseClass enum_ = new BaseClass() {
public void x()
{
int i = parameter.length() + local_var.length();
if (i != 13) throw new Error();
}
};
}
}
| 2,048 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6956638.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6956638.java | /*
* Copyright (c) 2010, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.StringWriter;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import javax.lang.model.element.Element;
import javax.tools.DiagnosticCollector;
import javax.tools.JavaCompiler;
import javax.tools.JavaFileObject;
import javax.tools.StandardJavaFileManager;
import javax.tools.ToolProvider;
import com.sun.source.tree.CompilationUnitTree;
import com.sun.source.util.JavacTask;
/**
* @test
* @bug 6956638
* @summary JavacTask.generate does not generate all required files
*/
public class T6956638 {
public static void main(String[] args) throws Exception {
new T6956638().run();
}
void run() throws Exception {
File srcDir = new File("src");
File[] files = {
writeFile(new File(srcDir, "T1.java"),
"public class T1 extends T2 {}\n"),
writeFile(new File(srcDir, "T2.java"),
"public class T2 extends T3 {}\n"),
writeFile(new File(srcDir, "T3.java"),
"public class T3 { public static final int C = 1; }\n"),
writeFile(new File(srcDir, "Test.java"),
"public class Test { public static final int D = T1.C; }\n")
};
for (File f1: files) {
for (File f2: files) {
if (f2 == f1) continue;
for (File f3: files) {
if (f3 == f2 || f3 == f1) continue;
for (File f4: files) {
if (f4 == f3 || f4 == f2 || f4 == f1) continue;
try {
test(f1, f2, f3, f4);
} catch (Exception e) {
error(e);
}
}
}
}
}
if (errors > 0)
throw new Exception(errors + " tests failed");
}
void test(File... sourceFiles) throws Exception {
System.err.println("Test " + (++count) + ": " + Arrays.asList(sourceFiles));
File classesDir = new File("classes" + count);
classesDir.mkdirs();
StringWriter compilerOutputStream = new StringWriter();
List<String> compileOptions = Arrays.asList("-d", classesDir.getPath());
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
DiagnosticCollector<JavaFileObject> diagnosticCollector = new DiagnosticCollector<JavaFileObject>();
StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnosticCollector, null, null);
Iterable<? extends JavaFileObject> sourceFileObjects = fileManager.getJavaFileObjects(sourceFiles);
System.err.println("1- javac given java source JavaFileObjects " + sourceFileObjects);
JavaCompiler.CompilationTask task = compiler.getTask(compilerOutputStream, fileManager, null, compileOptions, null, sourceFileObjects);
JavacTask javacTask = (JavacTask) task;
Iterable<? extends CompilationUnitTree> parsedTrees = javacTask.parse();
Iterable<? extends Element> analyzedTrees = javacTask.analyze();
Iterable<? extends JavaFileObject> generatedFiles = javacTask.generate();
System.err.println("2- parsed:" + size(parsedTrees) + " analysed:" + size(analyzedTrees) + " generated:" + size(generatedFiles));
System.err.print("3-");
for (JavaFileObject f : generatedFiles)
System.err.print(" " + f);
System.err.println("");
System.err.print("5-");
for (File f : classesDir.listFiles())
System.err.print(" " + f);
System.err.println("");
System.err.println("----");
System.err.println(compilerOutputStream.toString());
if (size(generatedFiles) != size(parsedTrees)) {
throw new Exception("wrong number of files generated: " + size(generatedFiles)
+ " expected: " + size(parsedTrees));
}
}
private void error(Throwable t) {
t.printStackTrace();
errors++;
}
int count;
int errors;
private static <E> int size(Iterable<E> x) {
int n = 0;
for (Iterator<E> iter = x.iterator(); iter.hasNext(); ++n)
iter.next();
return n;
}
private static File writeFile(File f, String str) throws IOException {
f.getParentFile().mkdirs();
BufferedWriter fout = new BufferedWriter(new FileWriter(f));
try {
fout.write(str);
fout.flush();
} finally {
fout.close();
}
return f;
}
}
| 5,733 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6625520.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6625520.java | /*
* Copyright (c) 2008, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
import java.io.*;
import java.util.*;
import javax.tools.*;
import com.sun.tools.javac.file.*;
import com.sun.tools.javac.file.JavacFileManager;
import com.sun.tools.javac.util.*;
/*
* @test
* @bug 6625520
* @summary javac handles missing entries on classpath badly
*/
public class T6625520 {
public static void main(String[] args) throws Exception {
new T6625520().run();
}
void run() throws Exception {
Context c = new Context();
DiagnosticCollector<JavaFileObject> dc =
new DiagnosticCollector<JavaFileObject>();
c.put(DiagnosticListener.class, dc);
StandardJavaFileManager fm = new JavacFileManager(c, false, null);
fm.setLocation(StandardLocation.CLASS_PATH,
Arrays.asList(new File("DOES_NOT_EXIST.jar")));
FileObject fo = fm.getFileForInput(StandardLocation.CLASS_PATH,
"p", "C.java");
System.err.println(fo + "\n" + dc.getDiagnostics());
if (dc.getDiagnostics().size() > 0)
throw new Exception("unexpected diagnostics found");
}
}
| 2,174 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6245591.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6245591.java | /*
* @test /nodynamiccopyright/
* @bug 6245591
* @compile/ref=T6245591.out -XDrawDiagnostics -Xlint:all,-path T6245591.java
*/
enum Season {
/** @deprecated */
WINTER, SPRING, SUMMER, FALL;
}
enum Season1 {
WINTER, SPRING, SUMMER, FALL;
}
class T6245591 {
void m() {
Season s1 = Season.WINTER; // ref to WINTER should be deprecated
Season1 s2 = Season1.WINTER; // nothing here should be deprecated;
// @deprecated should not leak out of Season
}
}
| 531 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6900149.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6900149.java | /*
* Copyright (c) 2010, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6900149
* @summary IllegalStateException when compiling same files and DiagnosticListener is set
*/
import java.io.*;
import java.util.*;
import javax.tools.*;
import javax.tools.JavaCompiler.CompilationTask;
public class T6900149 {
public static void main(String[] args) throws IOException {
DiagnosticCollector<JavaFileObject> diag =
new DiagnosticCollector<JavaFileObject>();
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
StandardJavaFileManager fm =
compiler.getStandardFileManager(null, null, null);
File emptyFile = File.createTempFile("Empty", ".java");
File[] files = new File[] { emptyFile, emptyFile };
CompilationTask task = compiler.getTask(null, fm, diag,
null, null, fm.getJavaFileObjects(files));
if (! task.call()) {
throw new AssertionError("compilation failed");
}
}
}
| 2,011 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6999210.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6999210.java | /*
* Copyright (c) 2010, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6999210
* @summary javac should be able to warn of anomalous conditions in classfiles
*/
import java.io.*;
import java.util.*;
public class T6999210 {
public static void main(String... args) throws Exception {
new T6999210().run();
}
void run() throws Exception {
File srcDir = new File("src");
File classesDir = new File("classes");
classesDir.mkdirs();
File c_java = writeFile(srcDir, "C.java", "class C<T> { }");
compile("-d", classesDir.getPath(), c_java.getPath());
File c_class = new File(classesDir, "C.class");
setMajorVersion(c_class, 48);
File d_java = writeFile(srcDir, "D.java", "class D { C c; }");
// verify no warning if -Xlint:classfile not enabled
String out1 = compile(
"-d", classesDir.getPath(),
"-classpath", classesDir.getPath(),
d_java.getPath());
if (out1.length() > 0)
error("unexpected output from javac");
// sanity check of warning when -XDrawDiagnostics not used
String out2 = compile(
"-d", classesDir.getPath(),
"-classpath", classesDir.getPath(),
"-Xlint:classfile",
d_java.getPath());
if (!out2.contains("[classfile]"))
error("expected output \"[classfile]\" not found");
// check specific details, using -XDrawDiagnostics
String out3 = compile(
"-d", classesDir.getPath(),
"-classpath", classesDir.getPath(),
"-Xlint:classfile", "-XDrawDiagnostics",
d_java.getPath());
String expect = "C.class:-:-: compiler.warn.future.attr: Signature, 49, 0, 48, 0";
if (!out3.contains(expect))
error("expected output \"" + expect + "\" not found");
if (errors > 0)
throw new Exception(errors + " errors occurred");
}
String compile(String... args) throws Exception {
System.err.println("compile: " + Arrays.asList(args));
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
int rc = com.sun.tools.javac.Main.compile(args, pw);
pw.close();
String out = sw.toString();
if (out.length() > 0)
System.err.println(out);
if (rc != 0)
throw new Exception("compilation failed, rc=" + rc);
return out;
}
void setMajorVersion(File f, int major) throws IOException {
int len = (int) f.length();
byte[] data = new byte[len];
try (DataInputStream in = new DataInputStream(new FileInputStream(f))) {
in.readFully(data);
}
// u4 magic
// u2 minor
data[6] = (byte) (major >> 8);
data[7] = (byte) (major & 0xff);
try (FileOutputStream out = new FileOutputStream(f)) {
out.write(data);
}
}
File writeFile(File dir, String path, String body) throws IOException {
File f = new File(dir, path);
f.getParentFile().mkdirs();
try (FileWriter out = new FileWriter(f)) {
out.write(body);
}
return f;
}
void error(String msg) {
System.err.println("Error: " + msg);
errors++;
}
int errors;
}
| 4,354 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
CyclicInheritance.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/CyclicInheritance.java | /*
* @test /nodynamiccopyright/
* @bug 4018525 4059072 4277274 4785453
* @summary Test that recursive 'extends' and 'implements' clauses are detected
* and disallowed.
*
* @compile/fail/ref=CyclicInheritance.out -XDrawDiagnostics CyclicInheritance.java
*/
class C1 extends C1 {} // ERROR - Cyclic inheritance
class C11 extends C12 {} // ERROR - Cyclic inheritance
class C12 extends C11 {} // error in previous line could correctly be reported here as well
interface I1 extends I1 {} // ERROR - Cyclic inheritance
interface I11 extends I12 {} // ERROR - Cyclic inheritance
interface I12 extends I11 {} // error in previous line could correctly be reported here as well
//-----
class C211 implements C211.I { // ERROR - may change pending resoluation of 4087020
interface I {}; // error in previous line could correctly be reported here as well
}
class C212 extends C212.C { // ERROR - Cyclic inheritance, subclass cannot enclose superclass
static class C {}; // error in previous line could correctly be reported here as well
}
class C221 implements C221.I { // ERROR - Cannot access C21 (private)
private interface I {}; // error in previous line could correctly be reported here as well
}
class C222 extends C222.C { // ERROR - Cannot access C22 (private)
private static class C {}; // error in previous line could correctly be reported here as well
}
//-----
class C3 {
class A {
class B extends A {}
}
}
class C4 {
class A extends B {}
class B {
class C extends A {}
}
}
| 1,734 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
5005368.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/5005368.java | /*
* Copyright (c) 2004, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 5005368
* @summary com/sun/tools/javac/comp/Check.java refers to the undefined resource
* @author gafter
*
* @compile -Werror 5005368.java
* @compile/fail -Werror -Xlint:unchecked 5005368.java
*/
package p5005368;
import java.util.*;
interface A {
List<String> f();
}
interface B extends A {
List f();
}
| 1,416 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6351767.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6351767.java | /*
* Copyright (c) 2006, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6351767
* @summary javax.tools.JavaCompilerTool.getStandardFileManager().list() treats directories as package
*/
import java.io.File;
import java.io.IOException;
import java.util.EnumSet;
import javax.tools.*;
import javax.tools.JavaFileObject.Kind;
import javax.tools.StandardLocation;
public class T6351767 {
public static void main(String... args) throws Exception {
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
JavaFileManager jfm = compiler.getStandardFileManager(null, null, null);
// test null
try {
jfm.list(StandardLocation.SOURCE_PATH, null, EnumSet.of(Kind.SOURCE), false);
error("NPE not thrown");
}
catch (NullPointerException e) {
// expected
}
// test null fileKinds
try {
jfm.list(StandardLocation.SOURCE_PATH, "", null, false);
error("NPE not thrown");
}
catch (NullPointerException e) {
// expected
}
// test good package
boolean found = false;
for (JavaFileObject jfo : jfm.list(StandardLocation.PLATFORM_CLASS_PATH,
"java.lang",
EnumSet.of(Kind.CLASS),
false)) {
System.err.println("found " + jfo.toUri());
if (jfo.isNameCompatible("Object", Kind.CLASS))
found = true;
}
if (!found)
error("expected file, java/lang/Object.class, not found");
found = false;
// test good package (VM name)
for (JavaFileObject jfo : jfm.list(StandardLocation.PLATFORM_CLASS_PATH,
"java/lang",
EnumSet.of(Kind.CLASS),
false)) {
System.err.println("found " + jfo.toUri());
if (jfo.isNameCompatible("Object", Kind.CLASS))
found = true;
}
if (!found)
error("expected file, java/lang/Object.class, not found");
}
static void error(String msg) {
throw new AssertionError(msg);
}
}
| 3,310 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
VerifyDA.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/VerifyDA.java | /*
* Copyright (c) 2003, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4836921
* @summary javac (1.3.1 .. 1.4.2) generates invalid bytecode: def. ass. & finally w/ nested
* @author gafter
*
* @compile VerifyDA.java
* @run main VerifyDA
*/
public class VerifyDA {
public static void main(String[] a) {
String x;
try {
x = "hello";
} finally {
try {
System.out.println("x");
} catch (RuntimeException e) {
e.printStackTrace();
x = null;
}
}
if (x != null) {
System.out.println(x);
}
}
}
| 1,657 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
StringConversion.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/StringConversion.java | /*
* Copyright (c) 1997, 1998, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4030173 4071548
* @summary Verify correct conversion of non-string arguments in string concatenation.
* @author maddox
*
* @compile StringConversion.java
* @run main StringConversion
*/
class FooBar {
public String toString(){
return null;
}
}
public class StringConversion {
static void check(int testid, String have, String expect)
throws Exception {
if ((have == null && have != expect) ||
(have != null && !have.equals(expect))) {
String msg =
"TEST " + testid + ": HAVE \"" +
have + "\" EXPECT \"" + expect + "\"";
System.out.println("StringConversion: " + msg);
throw new Exception(msg);
}
}
public static void main(String[] args) throws Exception {
String s;
String n = null;
Object o = null;
FooBar m = new FooBar();
// Null reference must be converted to "null"
// Conversion will be done by 'StringBuffer.append'.
s = "foo" + n;
check(11, s, "foonull");
s = n + "bar";
check(12, s, "nullbar");
s = "foo" + o;
check(13, s, "foonull");
s = o + "bar";
check(14, s, "nullbar");
// Conversion will be done by 'String.valueOf'.
s = "" + n;
check(21, s, "null");
s = n + "";
check(22, s, "null");
s = "" + o;
check(23, s, "null");
s = o + "";
check(24, s, "null");
// Null 'toString' result must be converted to "null"
// Conversion will be done by 'StringBuffer.append'.
s = "foo" + m;
check(31, s, "foonull");
s = m + "bar";
check(32, s, "nullbar");
// Conversion will be done by 'String.valueOf'.
s = "" + m;
check(43, s, "null");
s = m + "";
check(44, s, "null");
// A character array must be converted as if by
// 'toString', i.e., it is treated as an 'Object'.
s = "polymorph";
char[] ca = {'i', 's', 'm'};
check(51, s + ca, s + ca.toString());
check(52, ca + s, ca.toString() + s);
System.out.println("OK");
}
}
| 3,297 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
Closure5.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/Closure5.java | /*
* Copyright (c) 2001, 2004, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4416605
* @summary Incorrect order for initializers in nested class
* @author gafter
*
* @compile Closure5.java
* @run main Closure5
*/
// note that this test case was derived from 4466029, because it
// also checks other features of -target 1.4 simultaneously.
class A {
int i = 12;
abstract class B {
{ foo(); }
abstract void foo();
}
}
public class Closure5 extends A {
int i;
public static void main(String[] args) {
new Closure5().new D();
}
class D extends B {
int i;
void foo() {
if (Closure5.super.i != 12) throw new Error("4416605");
}
}
}
| 1,680 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
Closure6.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/Closure6.java | /*
* Copyright (c) 2002, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4661758
* @summary crash when anonymous static local in super() accesses enclosing variable
* @author gafter
*
* @compile Closure6.java
* @run main Closure6
*/
public class Closure6 {
static class L { L(Object o){} }
public static void f(final char x) {
class Sub extends L {
Sub(final char y) {
super(new Object() {{
System.out.println("" + x + y);
}});
}
}
new Sub('K');
}
public static void main(String[] args) {
f('O');
}
}
| 1,639 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
NoNoClassDefFoundErrorError.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/NoNoClassDefFoundErrorError.java | /*
* Copyright (c) 2001, 2004, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4313429
* @summary Compiling <Classname>.class on CLDC crashed the compiler.
*
* @compile/fail -source 1.4 -target 1.4 -XDfailcomplete=java.lang.NoClassDefFoundError NoNoClassDefFoundErrorError.java
*/
class NoNoClassDefFoundErrorError {
public static void main() {
Class self = NoNoClassDefFoundErrorError.class;
}
}
| 1,417 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
NameCollision2.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/NameCollision2.java | /*
* Copyright (c) 2002, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4615601
* @summary False detection of duplicate local class declaration
* @author gafter
*
* @compile NameCollision2.java
* @run main NameCollision2
*/
public class NameCollision2 {
boolean x1 = false;
boolean x2 = false;
void foo() {
class Local {{ x1 = true; }}
{ new Local(); }
new Object() {
class Local {{ x2 = true; }}
{ new Local(); }
};
}
void check() {
foo();
if (!x1) throw new Error("x1");
if (!x2) throw new Error("x2");
}
public static void main(String[] args) {
new NameCollision2().check();
}
}
| 1,709 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6397044.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6397044.java | /*
* Copyright (c) 2006, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6397044
* @summary JCModifiers.getModifiers() returns incorrect Modifiers set.
*/
import java.io.*;
import java.util.*;
import javax.tools.*;
import javax.lang.model.element.Modifier;
import com.sun.source.tree.*;
import com.sun.source.util.*;
import com.sun.tools.javac.api.JavacTool;
import com.sun.tools.javac.code.Flags;
import com.sun.tools.javac.tree.JCTree.JCModifiers;
public abstract class T6397044 {
public static void main(String[] args) throws Exception {
String srcDir = System.getProperty("test.src", ".");
String self = T6397044.class.getName();
JavacTool tool = JavacTool.create();
StandardJavaFileManager fm = tool.getStandardFileManager(null, null, null);
Iterable<? extends JavaFileObject> files
= fm.getJavaFileObjectsFromFiles(Arrays.asList(new File(srcDir, self + ".java")));
JavacTask task = tool.getTask(null, fm, null, null, null, files);
Iterable<? extends CompilationUnitTree> trees = task.parse();
Checker checker = new Checker();
for (CompilationUnitTree tree: trees)
checker.check(tree);
}
public int x_public;
protected int x_protected;
private int x_private;
abstract int x_abstract();
static int x_static;
final int x_final = 1;
transient int x_transient;
volatile int x_volatile;
synchronized void x_synchronized() { }
native int x_native();
strictfp void x_strictfp() { }
static class Checker extends TreeScanner<Void,Void> {
void check(Tree tree) {
if (tree != null)
tree.accept(this, null);
}
void check(List<? extends Tree> trees) {
if (trees == null)
return;
for (Tree tree: trees)
check(tree);
}
public Void visitCompilationUnit(CompilationUnitTree tree, Void ignore) {
check(tree.getTypeDecls());
return null;
}
public Void visitClass(ClassTree tree, Void ignore) {
check(tree.getMembers());
return null;
}
public Void visitMethod(MethodTree tree, Void ignore) {
check(tree.getName(), tree.getModifiers());
return null;
}
public Void visitVariable(VariableTree tree, Void ignore) {
check(tree.getName(), tree.getModifiers());
return null;
}
private void check(CharSequence name, ModifiersTree modifiers) {
long sysflags = ((JCModifiers) modifiers).flags;
System.err.println(name + ": " + modifiers.getFlags() + " | " + Flags.toString(sysflags));
if (name.toString().startsWith("x_")) {
String expected = "[" + name.toString().substring(2) + "]";
String found = modifiers.getFlags().toString();
if (!found.equals(expected))
throw new AssertionError("expected: " + expected + "; found: " + found);
}
}
}
}
| 4,093 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
StoreClass.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/StoreClass.java | /*
* Copyright (c) 2001, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4350352
* @summary InternalError: store unsupported: com.sun.tools.javac.v8.comp.Items
* @author gafter
*
* @compile/fail StoreClass.java
*/
class StoreClass {
void f() {
StoreClass.class = null;
int.class = null;
}
}
| 1,320 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6882235.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6882235.java | /*
* @test /nodynamiccopyright/
* @bug 6882235
* @summary invalid exponent causes silent javac crash
*
* @compile/fail T6882235.java
* @compile/fail/ref=T6882235.out -XDrawDiagnostics T6882235.java
*/
class T6882235 {
int i = ; // invalid expression
float f = 0e*; // invalid exponent, should not crash compiler
int j = ; // invalid expression
}
| 391 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
NonStaticFieldExpr3.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/NonStaticFieldExpr3.java | /* @test /nodynamiccopyright/
@bug 4087127 4785453
@author dps
@summary class: instance access through types is not allowed
@compile/fail/ref=NonStaticFieldExpr3.out -XDrawDiagnostics NonStaticFieldExpr3.java
*/
class NonStaticFieldExpr3 {
public int x;
}
class Subclass extends NonStaticFieldExpr3 {
int a = NonStaticFieldExpr3.x; // SHOULD BE ERROR
}
| 378 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
StringConversion2.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/StringConversion2.java | /*
* Copyright (c) 2008, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4741726
* @summary allow Object += String
*/
public class StringConversion2
{
public static void main(String[] args) {
Object o = "Hello ";
String s = "World!";
o += s;
if (!o.equals("Hello World!"))
throw new Error("test failed");
}
}
| 1,363 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
IllDefinedOrderOfInit.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/IllDefinedOrderOfInit.java | /*
* Copyright (c) 1997, 1998, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 1227855
* @summary The order of initialization used to be inconsistent, depending
* on whether a value was initialized to its default value.
* @author turnidge
*
* @compile IllDefinedOrderOfInit.java
* @run main IllDefinedOrderOfInit
*/
public class IllDefinedOrderOfInit {
int i = m();
int j = 0;
IllDefinedOrderOfInit() {
if (j != 0) {
throw new Error();
}
}
int m() { j = 5; return j++; }
static public void main(String args[]) {
new IllDefinedOrderOfInit();
}
}
| 1,625 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6557865.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6557865.java | /*
* Copyright (c) 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6557865
* @summary -source 5 -target 5 should not put ACC_SYNTHETIC on package-info
* @author Wei Tao
* @compile T6557865.java
* @compile -source 5 -target 5 T6232928/package-info.java
* @run main T6557865
*/
import java.io.*;
import java.lang.reflect.Modifier;
public class T6557865 {
public static void main(String... args) throws Exception {
Class pkginfo_cls = Class.forName("T6232928.package-info");
int mod = pkginfo_cls.getModifiers();
if ((mod & 0x1000) != 0) {
throw new AssertionError("Test failed: interface package-info shouldn't be synthetic in -target 5.");
}
}
}
| 1,684 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6370653.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6370653.java | /*
* Copyright (c) 2006, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6370653
* @summary Use iinc opcode for postfix decrement of local variable
* @run main T6370653
*/
public class T6370653 {
static boolean test() {
int x = 10;
int y = x--;
// check whether generated code still works correctly
return (x == 9) && (y == 10);
}
public static void main(String[] args) {
if (!test()) {
throw new Error("Test failed.");
}
}
}
| 1,510 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
Null2DArray.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/Null2DArray.java | /*
* Copyright (c) 2002, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4368664
* @summary VerifyError when using array of arrays
* @author gafter
*
* @compile Null2DArray.java
* @run main Null2DArray
*/
public class Null2DArray {
public static void main(final String[] args) {
try {
float[][] channels = null;
channels[0] = new float[10];
} catch (NullPointerException ex) {
return;
}
throw new Error();
}
}
| 1,492 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
Parens3.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/Parens3.java | /*
* Copyright (c) 2001, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4394546
* @summary get no err msg if label wrapped in parentheses
* @author gafter
*
* @compile/fail Parens3.java
*/
class Parens3 {
void f() {
(foo): ;
}
}
| 1,247 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
UncaughtOverflow2.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/UncaughtOverflow2.java | /*
* Copyright (c) 1998, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4097402
* @summary Compiler used to allow this initialization, despite the overflow.
* @author turnidge
*
* @compile/fail UncaughtOverflow2.java
*/
public
class UncaughtOverflow2 {
int i = -2147483649;
}
| 1,286 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
SynchronizedClass.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/SynchronizedClass.java | /* @test /nodynamiccopyright/
@bug 4037020 4785453
@summary Verify that ClassModifier "synchronized" is not allowed.
@author dps
@compile/fail/ref=SynchronizedClass.out -XDrawDiagnostics SynchronizedClass.java
*/
public synchronized class SynchronizedClass { } // ERROR
| 285 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
SwitchScope.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/SwitchScope.java | /*
* Copyright (c) 2002, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4725650
* @summary Restrict scope of local classes in switch-block-group
* @author gafter
*
* @compile/fail SwitchScope.java
*/
public class SwitchScope {
public static void main(String[] args) {
switch (args.length) {
case 0:
final int k;
k = 12;
class Local {
int j = k;
}
case 1:
// the scope of a local class does not extend from one
// switch case to the next.
Object o = new Local();
}
}
}
| 1,614 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
AnonInnerException_1.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/AnonInnerException_1.java | /*
* Copyright (c) 1999, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4266172
* @summary Verify that constructor for an anonymous class can throw
* exceptions if its superclass can.
* @author maddox
*
* @run compile AnonInnerException_1.java
*/
class AnonInnerException_1 {
boolean done = true;
void foo() throws Exception {
AnonInnerExceptionAux x =
new AnonInnerExceptionAux(){};
/**** This related case should pass, but does not!
AnonInnerExceptionAux y =
new AnonInnerExceptionAux() {
// instance initializer
{
if (done)
throw new Exception();
if (done)
throw new MyException();
}
};
****/
}
}
class AnonInnerExceptionAux {
AnonInnerExceptionAux() throws Exception {}
}
class MyException extends Exception {}
| 1,930 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
UseEnum.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/UseEnum.java | /*
* Copyright (c) 2004, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* @test
* @bug 5013488
* @summary Compiler AssertionError: com.sun.tools.javac.util.Bits.incl(Bits.java:73)
*
* @compile/fail UseEnum.java
*/
import static java.lang.System.out;
class UseEnum {
public static void main(String args[]) {
enum Animal {cat, dog, bird, fish};
Animal pet;
pet = Animal.cat;
out.println(pet);
for (Animal beast : beast.values())
out.println(pet);
}
}
| 1,504 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
AnonInnerException_2.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/AnonInnerException_2.java | /*
* Copyright (c) 1999, 2000, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4266172 4054256
* @summary Verify that instance initializer of inner class can throw checked exception.
*
* (Was Verify that constructor for an anonymous class cannot throw exceptions that its
* superclass constructor cannot. This restriction has been lifted -- 4054256.)
*
* @author maddox
*
* @run compile AnonInnerException_2.java
*/
class AnonInnerException_2 {
boolean done = true;
void foo() throws Exception {
AnonInnerExceptionAux y =
new AnonInnerExceptionAux() {
// instance initializer
{
if (done)
throw new java.io.IOException();
}
};
}
}
class AnonInnerExceptionAux {
AnonInnerExceptionAux() throws MyException {}
}
class MyException extends Exception {}
| 1,888 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6358024.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6358024.java | /*
* Copyright (c) 2006, 2010, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6358024
* @summary TaskListener should be propogated between processing rounds
*/
import java.io.*;
import java.util.*;
import java.util.List;
import javax.annotation.processing.*;
import javax.lang.model.element.*;
import javax.tools.*;
import com.sun.source.util.*;
import com.sun.tools.javac.api.*;
import com.sun.tools.javac.file.*;
import com.sun.tools.javac.file.JavacFileManager;
import com.sun.tools.javac.main.*;
import com.sun.tools.javac.util.*;
@SupportedAnnotationTypes("*")
public class T6358024 extends AbstractProcessor {
static JavacFileManager fm;
public static void main(String... args) throws Throwable {
String self = T6358024.class.getName();
String testSrc = System.getProperty("test.src");
fm = new JavacFileManager(new Context(), false, null);
JavaFileObject f = fm.getFileForInput(testSrc + File.separatorChar + self + ".java");
test(fm, f,
new Option[] { new Option("-d", ".")},
7);
test(fm, f,
new Option[] { new XOption("-XprintRounds"),
new Option("-processorpath", "."),
new Option("-processor", self) },
12);
}
static void test(JavacFileManager fm, JavaFileObject f, Option[] opts, int expect) throws Throwable {
PrintWriter out = new PrintWriter(System.err, true);
JavacTool tool = JavacTool.create();
List<String> flags = new ArrayList<String>();
for (Option opt: opts) {
flags.add(opt.name);
for (Object arg : opt.args)
flags.add(arg.toString());
}
JavacTaskImpl task = (JavacTaskImpl) tool.getTask(out,
fm,
null,
flags,
null,
Arrays.asList(f));
MyTaskListener tl = new MyTaskListener();
task.setTaskListener(tl);
task.call();
if (tl.started != expect)
throw new AssertionError("Unexpected number of TaskListener events; "
+ "expected " + expect + ", found " + tl.started);
}
public boolean process(Set<? extends TypeElement> tes, RoundEnvironment renv) {
return true;
}
static class MyTaskListener implements TaskListener {
public void started(TaskEvent e) {
System.err.println("Started: " + e);
started++;
}
public void finished(TaskEvent e) {
}
int started = 0;
}
static class Option {
Option(String name, String... args) {
this.name = name;
this.args = args;
}
public final String name;
public final String[] args;
}
static class XOption extends Option {
XOption(String name, String... args) {
super(name, args);
}
}
}
| 4,176 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
FinalInitializer_2.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/FinalInitializer_2.java | /*
* Copyright (c) 2004, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4974917
* @summary bogus "already initialized" error
* @author tball
*
* @compile FinalInitializer_2.java
*/
public class FinalInitializer_2 {
// customer-supplied test case
public void doKMDiscard()
{
//the problem will be gone by deleting any of the following
//5 lines. (just comment them out works too)
{
final int t=0;
final int degCnns[][]=null;
int sklTmpGrps=0;
}
final int sklGrpCnt;
//the problem will be gone by deleting the loop or
//the final line or just delete the word 'final'
for(int i=0;i<1;i++){
final int j=0;
}
sklGrpCnt=0;
}
}
| 1,737 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6873849.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T6873849.java | /*
* Copyright (c) 2006, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
import java.io.File;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.List;
/*
* @test
* @bug 6873849
* @summary suppress notes generated by javac
*/
public class T6873849 {
public static void main(String... args) throws Exception {
new T6873849().run();
}
public void run() throws Exception {
test(null, "- compiler.note.unchecked.filename: T6873849.java" + newline +
"- compiler.note.unchecked.recompile" + newline);
test("-XDsuppressNotes", "");
}
void test(String opt, String expect) throws Exception {
List<String> args = new ArrayList<String>();
if (opt != null)
args.add(opt);
args.add("-d");
args.add(testClasses.getPath());
args.add("-XDrawDiagnostics");
args.add(new File(testSrc, "T6873849.java").getPath());
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
System.err.println("compile: " + args);
int rc = com.sun.tools.javac.Main.compile(args.toArray(new String[args.size()]), pw);
pw.close();
String out = sw.toString();
System.out.println(out);
if (rc != 0)
throw new Exception("compilation failed unexpectedly");
if (!out.equals(expect))
throw new Exception("unexpected output from compiler");
}
void m(List t) {
// force a note about unchecked usage
t.add(new Object());
}
private File testSrc = new File(System.getProperty("test.src", "."));
private File testClasses = new File(System.getProperty("test.classes", "."));
private String newline = System.getProperty("line.separator");
}
| 2,805 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T7040104.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T7040104.java | /*
* Copyright (c) 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 7040104
* @summary javac NPE on Object a[]; Object o = (a=null)[0];
*/
public class T7040104 {
public static void main(String[] args) {
T7040104 t = new T7040104();
t.test1();
t.test2();
t.test3();
if (t.npeCount != 3) {
throw new AssertionError();
}
}
int npeCount = 0;
void test1() {
Object a[];
try {
Object o = (a = null)[0];
}
catch (NullPointerException npe) {
npeCount++;
}
}
void test2() {
Object a[][];
try {
Object o = (a = null)[0][0];
}
catch (NullPointerException npe) {
npeCount++;
}
}
void test3() {
Object a[][][];
try {
Object o = (a = null)[0][0][0];
}
catch (NullPointerException npe) {
npeCount++;
}
}
}
| 1,991 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
Digits.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/Digits.java | /*
* @test /nodynamiccopyright/
* @bug 6183529
* @summary javac gives warnings instead of errors on non-ASCII digits
* @compile/fail/ref=Digits.out -XDrawDiagnostics Digits.java
*/
class Digits
{
public static final double good = 1.23;
public static final double bad = 1.2\u0663;
}
| 300 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
IllegalAnnotation.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/IllegalAnnotation.java | /**
* @test /nodynamiccopyright/
* @bug 5012028 6384539
* @summary javac crash when declare an annotation type illegally
*
* @compile/fail IllegalAnnotation.java
* @compile/fail/ref=IllegalAnnotation.out -XDdev -XDrawDiagnostics IllegalAnnotation.java
*/
class IllegalAnnotation {
{
@interface SomeAnnotation { }
}
}
| 341 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
InterfaceMemberClassModifiers.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/InterfaceMemberClassModifiers.java | /*
* @test /nodynamiccopyright/
* @bug 4294065 4785453
* @summary Verify that invalid access modifiers on interface members don't cause crash.
* @author maddox
*
* @compile/fail/ref=InterfaceMemberClassModifiers.out -XDdiags=%b:%l:%_%m InterfaceMemberClassModifiers.java
*/
public interface InterfaceMemberClassModifiers {
Object nullWriter = null;
class SomeClass1 implements InterfaceMemberClassModifiers { // OK
public Object getOut() {
return nullWriter;
}
}
public class SomeClass2 implements InterfaceMemberClassModifiers { // OK
public Object getOut() {
return nullWriter;
}
}
// Compiler used to crash on these! (after reporting error)
protected class SomeClass3 implements InterfaceMemberClassModifiers { // illegal
public Object getOut() {
return nullWriter;
}
}
private class SomeClass4 implements InterfaceMemberClassModifiers { // illegal
public Object getOut() {
return nullWriter;
}
}
}
| 1,110 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
InstanceInitException_2.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/InstanceInitException_2.java | /*
* Copyright (c) 2000, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4054256
* @summary Verify that exceptions in instance initializer must be declared in all constructors.
* @author William Maddox
*
* @run compile/fail InstanceInitException_2.java
*/
public class InstanceInitException_2 {
int x = 1;
class Exn1 extends Exception {}
class Exn2 extends Exception {}
class Inner {
Inner() throws Exn1 {}
Inner(int x) throws Exn1, Exn2 {}
{
if (x > 0) throw new Exn1();
if (x > 0) throw new Exn2(); // error -- not declared in Inner()
}
}
}
| 1,633 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T4906100.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T4906100.java | /*
* @test /nodynamiccopyright/
* @bug 4906100
* @summary detect empty statement after if
* @compile/ref=T4906100.out -XDrawDiagnostics -Xlint:empty T4906100.java
*/
class T4906100 {
void f1(int a, int b) {
if (a == b);
System.out.println("a == b");
}
@SuppressWarnings("empty")
void f2(int a, int b) {
if (a == b);
System.out.println("a == b");
}
// check that { } is not treated as an empty statement
void f3(int a, int b) {
if (a == b) { }
System.out.println("a == b");
}
}
| 578 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
CaptureInSubtype.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/CaptureInSubtype.java | /*
* Copyright (c) 2004, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 5044157
* @summary type system loophole in wildcard substitution
* @author Gilad Bracha
*
* @compile/fail CaptureInSubtype.java
*/
import java.util.List;
import java.util.ArrayList;
public class CaptureInSubtype {
static class SuperOfFlaw<S>{
S s;
S get() { return s;}
void put(S a) { s = a;}
SuperOfFlaw(S a) { s = a;}
}
static class Flaw<T> extends SuperOfFlaw<List<T>> {
List<T> fetch(){return s;}
Flaw(T t){super(new ArrayList<T>()); s.add(t);}
}
static class SuperOfShowFlaw {
SuperOfFlaw<List<?>> m(){return null;}
}
public static class ShowFlaw extends SuperOfShowFlaw {
static Flaw<Number> fn = new Flaw<Number>(new Integer(3));
Flaw<?> m(){return fn;}
}
public static void main(String[] args) {
SuperOfShowFlaw sosf = new ShowFlaw();
SuperOfFlaw<List<?>> sof = sosf.m();
List<String> ls = new ArrayList<String>();
ls.add("Smalltalk rules!");
sof.put(ls);
Number n = ShowFlaw.fn.get().get(0);
}
}
| 2,156 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
ExprQualifiedType.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/ExprQualifiedType.java | /*
* Copyright (c) 2000, 2001, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4347611 4440249 4508227
* @summary Check that qualified reference to type via an expression does not crash compiler.
* @author maddox
*
* @compile/fail ExprQualifiedType.java
*/
public class ExprQualifiedType {
static class Nested {
static int i;
static void m() { i = 1; }
}
static void test() {
new ExprQualifiedType().Nested.i = 1;
new ExprQualifiedType().Nested.m();
}
}
| 1,509 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
SuperMethodResolve.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/SuperMethodResolve.java | /*
* Copyright (c) 1999, 2003, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4275601 4758654 4761586
* @summary Verify that method call via super finds correct method.
* @author maddox (cribbed from bug report)
*
* @compile SuperMethodResolve.java
*/
/*
* There are probably related cases that should be covered here.
*/
import java.util.*;
public abstract class SuperMethodResolve extends AbstractCollection {
public boolean eqData(Object x) {
return super.equals(x);
}
}
| 1,500 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
InnerMemberRegression.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/InnerMemberRegression.java | /*
* Copyright (c) 1997, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4082816
* @summary In jdk1.2beta1 this causes a NullPointerException in the compiler.
* That is bad. This text is part of the test for yet another bug
* which was hidden by the regression.
* @author turnidge
*
* @compile InnerMemberRegression.java
*/
class InnerMemberRegression {
void test() {
class Z {
class Y {
void test() {
}
}
Y y = new Y();
int m=100;
void test() {
y.test();
}
} //end of class Z
Z z = new Z();
z.test();
}
public static void main(String[] s) {
InnerMemberRegression x = new InnerMemberRegression();
x.test();
}
}
| 1,831 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6330920.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/6330920/T6330920.java | /*
* @test /nodynamiccopyright/
* @bug 6330920
* @summary Verify that javac doesn't duplicate method error on method with error
* @author Peter von der Ah\u00e9
* @compile/fail/ref=T6330920.out -XDrawDiagnostics T6330920.java
*/
public class T6330920 {
public void test(T6330920 x) {}
public void test(T6330920Missing x) {}
}
| 347 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6567415.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/6567415/T6567415.java | /*
* Copyright (c) 2010, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6567415
* @summary Test to ensure javac does not go into an infinite loop, while
* reading a classfile of a specific length.
* @compile -XDignore.symbol.file T6567415.java
* @run main T6567415
* @author ksrini
*/
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
/*
* this test compiles Bar.java into a classfile and enlarges the file to the
* magic file length, then use this mutated file on the classpath to compile
* Foo.java which references Bar.java and Ka-boom. QED.
*/
public class T6567415 {
final static String TEST_FILE_NAME = "Bar";
final static String TEST_JAVA = TEST_FILE_NAME + ".java";
final static String TEST_CLASS = TEST_FILE_NAME + ".class";
final static String TEST2_FILE_NAME = "Foo";
final static String TEST2_JAVA = TEST2_FILE_NAME + ".java";
/*
* the following is the initial buffer length set in ClassReader.java
* thus this value needs to change if ClassReader buf length changes.
*/
final static int BAD_FILE_LENGTH =
com.sun.tools.javac.jvm.ClassReader.INITIAL_BUFFER_SIZE;
static void createClassFile() throws IOException {
FileOutputStream fos = null;
try {
fos = new FileOutputStream(TEST_JAVA);
PrintStream ps = new PrintStream(fos);
ps.println("public class " + TEST_FILE_NAME + " {}");
} finally {
fos.close();
}
String cmds[] = {TEST_JAVA};
com.sun.tools.javac.Main.compile(cmds);
}
static void enlargeClassFile() throws IOException {
File f = new File(TEST_CLASS);
if (!f.exists()) {
System.out.println("file not found: " + TEST_CLASS);
System.exit(1);
}
File tfile = new File(f.getAbsolutePath() + ".tmp");
f.renameTo(tfile);
RandomAccessFile raf = null;
FileChannel wfc = null;
FileInputStream fis = null;
FileChannel rfc = null;
try {
raf = new RandomAccessFile(f, "rw");
wfc = raf.getChannel();
fis = new FileInputStream(tfile);
rfc = fis.getChannel();
ByteBuffer bb = MappedByteBuffer.allocate(BAD_FILE_LENGTH);
rfc.read(bb);
bb.rewind();
wfc.write(bb);
wfc.truncate(BAD_FILE_LENGTH);
} finally {
wfc.close();
raf.close();
rfc.close();
fis.close();
}
System.out.println("file length = " + f.length());
}
static void createJavaFile() throws IOException {
FileOutputStream fos = null;
try {
fos = new FileOutputStream(TEST2_JAVA);
PrintStream ps = new PrintStream(fos);
ps.println("public class " + TEST2_FILE_NAME +
" {" + TEST_FILE_NAME + " b = new " +
TEST_FILE_NAME + " ();}");
} finally {
fos.close();
}
}
public static void main(String... args) throws Exception {
createClassFile();
enlargeClassFile();
createJavaFile();
Thread t = new Thread () {
@Override
public void run() {
String cmds[] = {"-verbose", "-cp", ".", TEST2_JAVA};
int ret = com.sun.tools.javac.Main.compile(cmds);
System.out.println("test compilation returns: " + ret);
}
};
t.start();
t.join(1000*10);
System.out.println(t.getState());
if (t.isAlive()) {
throw new RuntimeException("Error: compilation is looping");
}
}
}
| 4,937 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
DeprecatedYES.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T4994049/DeprecatedYES.java | /*
* Copyright (c) 2005, 2006, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6229758
* @summary deprecatedNOT! is
* @author Peter von der Ah\u00e9
* @compile -Xlint:deprecation DeprecatedYES.java
* @compile/fail -Werror -Xlint:deprecation DeprecatedYES.java
*/
class A {
/**@deprecated*/
void foo() {
}
}
class B {
void bar(A a) {
a.foo();
}
}
| 1,385 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T4994049.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T4994049/T4994049.java | /*
* @test /nodynamiccopyright/
* @bug 4994049
* @summary Improved diagnostics while parsing enums
* @author Peter von der Ah\u00e9
* @compile/fail/ref=T4994049.out -XDrawDiagnostics T4994049.java
*/
public enum T4994049 {
FOO {
}
BAR;
}
| 264 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
DeprecatedNOT.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/T4994049/DeprecatedNOT.java | /*
* Copyright (c) 2005, 2006, 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6229758
* @summary deprecatedNOT! is
* @author Scott Seligman
* @compile -Werror -Xlint:deprecation DeprecatedNOT.java
*/
class A {
/**
* @deprecatedNOT!
* @deprecated*
* @deprecated-my-foot
* @deprecatedly
*/
void foo() {
}
}
class B {
void bar(A a) {
a.foo();
}
}
| 1,408 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6717241a.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/6717241/T6717241a.java | /**
* @test /nodynamiccopyright/
* @bug 6717241
* @summary some diagnostic argument is prematurely converted into a String object
* @author Maurizio Cimadamore
* @compile/fail/ref=T6717241a.out -XDrawDiagnostics T6717241a.java
*/
class T6717241a<X extends Object & java.io.Serializable> {
X x;
void test() {
//this will generate a 'cant.resolve'
Object o = x.v;
//this will generate a 'cant.resolve.args'
x.m1(1, "");
//this will generate a 'cant.resolve.args.params'
x.<Integer,Double>m2(1, "");
}
}
| 573 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
T6717241b.java | /FileExtraction/Java_unseen/openjdk-mirror_jdk7u-langtools/test/tools/javac/6717241/T6717241b.java | /**
* @test /nodynamiccopyright/
* @bug 6717241
* @summary some diagnostic argument is prematurely converted into a String object
* @author Maurizio Cimadamore
* @compile/fail/ref=T6717241b.out -XDrawDiagnostics T6717241b.java
*/
class T6717241b {
void test() {
//this will generate a 'cant.resolve.location'
Object o = v;
//this will generate a 'cant.resolve.location.args'
m1(1, "");
//this will generate a 'cant.resolve.location.args.params'
T6717241b.<Integer,Double>m2(1, "");
}
}
| 554 | Java | .java | openjdk-mirror/jdk7u-langtools | 9 | 3 | 0 | 2012-05-07T19:45:34Z | 2012-05-08T17:47:06Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.