equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2018, 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 |
722 if (lint) |
722 if (lint) |
723 log.warning(Warnings.ProcTypeRecreate(typename)); |
723 log.warning(Warnings.ProcTypeRecreate(typename)); |
724 throw new FilerException("Attempt to recreate a file for type " + typename); |
724 throw new FilerException("Attempt to recreate a file for type " + typename); |
725 } |
725 } |
726 if (lint && existing != null) { |
726 if (lint && existing != null) { |
727 log.warning("proc.type.already.exists", typename); |
727 log.warning(Warnings.ProcTypeAlreadyExists(typename)); |
728 } |
728 } |
729 if (!mod.isUnnamed() && !typename.contains(".")) { |
729 if (!mod.isUnnamed() && !typename.contains(".")) { |
730 throw new FilerException("Attempt to create a type in unnamed package of a named module: " + typename); |
730 throw new FilerException("Attempt to create a type in unnamed package of a named module: " + typename); |
731 } |
731 } |
732 } |
732 } |