Skip to content

Commit

Permalink
[bug fix] Adding support for IVMInstall2 to circumvent NPE.
Browse files Browse the repository at this point in the history
  • Loading branch information
demianlessa committed May 12, 2019
1 parent df87a30 commit 1b8ad48
Showing 1 changed file with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.eclipse.debug.core.ILaunchManager;
import org.eclipse.jdt.launching.AbstractVMInstall;
import org.eclipse.jdt.launching.IVMInstall;
import org.eclipse.jdt.launching.IVMInstall2;
import org.eclipse.jdt.launching.IVMInstallType;
import org.eclipse.jdt.launching.IVMRunner;
import org.eclipse.jdt.launching.LibraryLocation;
Expand All @@ -17,7 +18,7 @@
*
* @see VMInstallProxy#getVMRunner(String)
*/
public class VMInstallProxy implements IVMInstall
public class VMInstallProxy implements IVMInstall, IVMInstall2
{
/**
* The subject to which the proxy delegates requests.
Expand Down Expand Up @@ -131,4 +132,23 @@ public void setVMArguments(final String[] vmArgs)
{
subject.setVMArguments(vmArgs);
}

// --------------------------------------------------------------------------------
// IVMInstall2 implementation
// --------------------------------------------------------------------------------

@Override
public String getVMArgs() {
return subject.getVMArgs();
}

@Override
public void setVMArgs(String vmArgs) {
subject.setVMArgs(vmArgs);
}

@Override
public String getJavaVersion() {
return subject.getJavaVersion();
}
}

0 comments on commit 1b8ad48

Please sign in to comment.