test/tools/javac/processing/6430209/T6430209.java

changeset 699
d2aaaec153e8
parent 554
9d9f26857129
child 1466
b52a38d4536c
     1.1 --- a/test/tools/javac/processing/6430209/T6430209.java	Wed Sep 29 14:01:37 2010 -0700
     1.2 +++ b/test/tools/javac/processing/6430209/T6430209.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 spurious compiler error elicited by packageElement.getEnclosedElements()
    1.14 - * @build b6341534
    1.15 + * @library ../../lib
    1.16 + * @build JavacTestingAbstractProcessor b6341534
    1.17   * @run main T6430209
    1.18   */
    1.19  
    1.20 @@ -54,7 +55,7 @@
    1.21          // run annotation processor b6341534 so we can check diagnostics
    1.22          // -proc:only -processor b6341534 -cp . ./src/*.java
    1.23          String testSrc = System.getProperty("test.src", ".");
    1.24 -        String testClasses = System.getProperty("test.classes");
    1.25 +        String testClasses = System.getProperty("test.classes") + System.getProperty("path.separator") + "../../lib";
    1.26          JavacTool tool = JavacTool.create();
    1.27          MyDiagListener dl = new MyDiagListener();
    1.28          StandardJavaFileManager fm = tool.getStandardFileManager(dl, null, null);

mercurial