8063039: incorrect message reference or broken message file
Reviewed-by: ksrini
This commit is contained in:
parent
0acac5a3d5
commit
b96daffd2e
@ -191,7 +191,7 @@ public class BasicJavacTask extends JavacTask {
|
||||
}
|
||||
}
|
||||
for (List<String> p: pluginsToCall) {
|
||||
Log.instance(context).error("msg.plugin.not.found", p.head);
|
||||
Log.instance(context).error("plugin.not.found", p.head);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1133,6 +1133,10 @@ compiler.err.error=\
|
||||
compiler.err.cant.read.file=\
|
||||
cannot read: {0}
|
||||
|
||||
# 0: string
|
||||
compiler.err.plugin.not.found=\
|
||||
plug-in not found: {0}
|
||||
|
||||
#####
|
||||
|
||||
# Fatal Errors
|
||||
|
@ -289,8 +289,7 @@ javac.err.file.not.directory=\
|
||||
not a directory: {0}
|
||||
javac.err.file.not.file=\
|
||||
not a file: {0}
|
||||
javac.msg.plugin.not.found=\
|
||||
plug-in not found: {0}
|
||||
|
||||
## messages
|
||||
|
||||
javac.msg.usage.header=\
|
||||
|
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright (c) 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
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
// key: compiler.err.plugin.not.found
|
||||
// options: -Xplugin:MissingPlugin
|
||||
|
||||
class PluginNotFound { }
|
||||
|
@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright (c) 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
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @bug 8063039
|
||||
* @summary incorrect message reference or broken message file
|
||||
* @compile/fail/ref=PluginNotFound.out -Xplugin:MissingPlugin PluginNotFound.java
|
||||
*/
|
||||
|
||||
class PluginNotFound { }
|
||||
|
||||
|
@ -0,0 +1,2 @@
|
||||
error: plug-in not found: MissingPlugin
|
||||
1 error
|
Loading…
Reference in New Issue
Block a user