File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
src/org/eclipse/m2e/jdt/internal Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Manifest-Version: 1.0
22Bundle-ManifestVersion : 2
33Bundle-Name : %Bundle-Name
44Bundle-SymbolicName : org.eclipse.m2e.jdt;singleton:=true
5- Bundle-Version : 2.3.2 .qualifier
5+ Bundle-Version : 2.3.3 .qualifier
66Bundle-Localization : plugin
77Export-Package : org.eclipse.m2e.jdt,
88 org.eclipse.m2e.jdt.internal;x-friends:="org.eclipse.m2e.jdt.ui",
Original file line number Diff line number Diff line change @@ -523,9 +523,13 @@ protected static Optional<JpmsArgs> computeFromArgs(List<String> args) {
523523 }
524524
525525 String value = null ;
526+ boolean isNextArg = false ;
526527 if (argType .getArgumentName ().equalsIgnoreCase (argumentName )) {
527528 // full argument match
528- value = it .next ();
529+ if (it .hasNext ()) {
530+ value = it .next ();
531+ isNextArg = true ;
532+ }
529533 } else {
530534 // argument with delimiter match
531535 String argumentWithDelimiter = argType .getArgumentName ().toLowerCase () + JpmsArgType .argumentDelimiter ;
@@ -536,7 +540,9 @@ protected static Optional<JpmsArgs> computeFromArgs(List<String> args) {
536540 JpmsArgValue argValue = argType .parse (value );
537541
538542 if (argValue == null ) {
539- it .previous ();
543+ if (isNextArg ) {
544+ it .previous ();
545+ }
540546 continue ;
541547 }
542548
You can’t perform that action at this time.
0 commit comments