1.1 --- a/src/share/classes/com/sun/tools/javac/api/JavacTool.java Thu Feb 24 08:40:49 2011 -0800 1.2 +++ b/src/share/classes/com/sun/tools/javac/api/JavacTool.java Fri Feb 25 12:09:33 2011 -0800 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2005, 2011, 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 @@ -157,19 +157,19 @@ 1.11 /** 1.12 * Register that a compilation is about to start. 1.13 */ 1.14 - void beginContext(final Context context) { 1.15 + void beginContext(Context context) { 1.16 if (compilationInProgress) 1.17 throw new IllegalStateException("Compilation in progress"); 1.18 compilationInProgress = true; 1.19 final JavaFileManager givenFileManager = context.get(JavaFileManager.class); 1.20 context.put(JavaFileManager.class, (JavaFileManager)null); 1.21 context.put(JavaFileManager.class, new Context.Factory<JavaFileManager>() { 1.22 - public JavaFileManager make() { 1.23 + public JavaFileManager make(Context c) { 1.24 if (givenFileManager != null) { 1.25 - context.put(JavaFileManager.class, givenFileManager); 1.26 + c.put(JavaFileManager.class, givenFileManager); 1.27 return givenFileManager; 1.28 } else { 1.29 - return new JavacFileManager(context, true, null); 1.30 + return new JavacFileManager(c, true, null); 1.31 } 1.32 } 1.33 });