test/tools/javac/processing/6348499/T6348499.java

changeset 699
d2aaaec153e8
parent 554
9d9f26857129
child 1308
37008b4cd97a
     1.1 --- a/test/tools/javac/processing/6348499/T6348499.java	Wed Sep 29 14:01:37 2010 -0700
     1.2 +++ b/test/tools/javac/processing/6348499/T6348499.java	Wed Sep 29 23:27:57 2010 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -25,7 +25,8 @@
    1.11   * @test
    1.12   * @bug 6441871
    1.13   * @summary javac crashes at com.sun.tools.javac.jvm.ClassReader$BadClassFile
    1.14 - * @build A
    1.15 + * @library ../../lib
    1.16 + * @build JavacTestingAbstractProcessor A
    1.17   * @run main T6348499
    1.18   */
    1.19  
    1.20 @@ -54,7 +55,6 @@
    1.21              fm.getJavaFileObjectsFromFiles(Arrays.asList(new File(testSrc, "A.java")));
    1.22          Iterable<String> opts = Arrays.asList("-proc:only",
    1.23                                                "-processor", "A",
    1.24 -                                              "-source", "1.6",
    1.25                                                "-processorpath", testClasses);
    1.26          StringWriter out = new StringWriter();
    1.27          JavacTask task = tool.getTask(out, fm, dl, opts, null, files);

mercurial