langtools/src/jdk.compiler/share/classes/com/sun/tools/javah/JavahFileManager.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
50 static JavahFileManager create(final DiagnosticListener<? super JavaFileObject> dl, PrintWriter log) { |
50 static JavahFileManager create(final DiagnosticListener<? super JavaFileObject> dl, PrintWriter log) { |
51 Context javac_context = new Context(); |
51 Context javac_context = new Context(); |
52 |
52 |
53 if (dl != null) |
53 if (dl != null) |
54 javac_context.put(DiagnosticListener.class, dl); |
54 javac_context.put(DiagnosticListener.class, dl); |
55 javac_context.put(com.sun.tools.javac.util.Log.outKey, log); |
55 javac_context.put(com.sun.tools.javac.util.Log.errKey, log); |
56 |
56 |
57 return new JavahFileManager(javac_context, null); |
57 return new JavahFileManager(javac_context, null); |
58 } |
58 } |
59 } |
59 } |