< prev index next >
src/jdk.jartool/share/classes/sun/tools/jar/Main.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2018, 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. Oracle designates this
@@ -691,11 +691,11 @@
}
} else if (cflag && (mname == null)) {
usageError(getMsg("error.bad.cflag"));
return false;
} else if (uflag) {
- if ((mname != null) || (ename != null)) {
+ if ((mname != null) || (ename != null) || moduleVersion != null) {
/* just want to update the manifest */
return true;
} else {
usageError(getMsg("error.bad.uflag"));
return false;
< prev index next >