src/jdk.compiler/share/classes/com/sun/tools/javac/processing/JavacFiler.java
changeset 48721 ef3557eb4306
parent 48359 91bd550551e0
child 51177 ae39ec0b0502
equal deleted inserted replaced
48720:290b480df13e 48721:ef3557eb4306
     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     }