Hide "bootstrap class path not set in conjunction with -source" messages
javac warns whenever -source is used with a version that does not match javac, because it wants an rt.jar provided for the given source level. We are not using -source to prevent usage of APIs that don't exist in the newer rt.jar, so hide the messages. Test: javac_wrapper_test.go Change-Id: Ic94b61767436848fc164e377dc3cc5a63726f1cf
This commit is contained in:
parent
21dc570e5f
commit
ae96e5376a
2 changed files with 4 additions and 2 deletions
|
@ -170,4 +170,5 @@ var filters = []*regexp.Regexp{
|
|||
regexp.MustCompile(`Note: Recompile with -Xlint:deprecation for details.`),
|
||||
regexp.MustCompile(`Note: (Some input files|.*\.java) uses? unchecked or unsafe operations.`),
|
||||
regexp.MustCompile(`Note: Recompile with -Xlint:unchecked for details.`),
|
||||
regexp.MustCompile(`bootstrap class path not set in conjunction with -source`),
|
||||
}
|
||||
|
|
|
@ -41,8 +41,8 @@ var testCases = []struct {
|
|||
out: "\x1b[1mFile.java:398: \x1b[35mwarning:\x1b[0m\x1b[1m [RectIntersectReturnValueIgnored] Return value of com.blah.function() must be checked\x1b[0m\n",
|
||||
},
|
||||
{
|
||||
in: "warning: [options] bootstrap class path not set in conjunction with -source 1.7\n",
|
||||
out: "\x1b[1m\x1b[35mwarning:\x1b[0m\x1b[1m [options] bootstrap class path not set in conjunction with -source 1.7\x1b[0m\n",
|
||||
in: "warning: [options] blah\n",
|
||||
out: "\x1b[1m\x1b[35mwarning:\x1b[0m\x1b[1m [options] blah\x1b[0m\n",
|
||||
},
|
||||
{
|
||||
in: " (see http://go/errorprone/bugpattern/RectIntersectReturnValueIgnored.md)\n",
|
||||
|
@ -56,6 +56,7 @@ Note: Some input files use unchecked or unsafe operations.
|
|||
Note: Recompile with -Xlint:unchecked for details.
|
||||
Note: dir/file.java uses or overrides a deprecated API.
|
||||
Note: dir/file.java uses unchecked or unsafe operations.
|
||||
warning: [options] bootstrap class path not set in conjunction with -source 1.7
|
||||
`,
|
||||
out: "\n",
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue