diff -r 9405883da95f -r b92eb80925f0 langtools/test/tools/javac/T6358168.java --- a/langtools/test/tools/javac/T6358168.java Fri Apr 04 19:13:53 2014 -0400 +++ b/langtools/test/tools/javac/T6358168.java Tue Apr 08 14:06:11 2014 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2006, 2014, 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 @@ -99,10 +99,9 @@ "-d", "."}); JavaCompiler compiler = JavaCompiler.instance(context); - compiler.initProcessAnnotations(null); - JavaCompiler compiler2 = compiler.processAnnotations(compiler.enterTrees(compiler.parseFiles(List.of(f)))); + compiler.compile(List.of(f)); try { - compiler2.compile(List.of(f)); + compiler.compile(List.of(f)); throw new Error("Error: AssertionError not thrown after second call of compile"); } catch (AssertionError e) { System.err.println("Exception from compiler (expected): " + e);