8250640: Address reliance on default constructors in jdk.jdi

Reviewed-by: alanb
This commit is contained in:
Joe Darcy 2020-07-28 09:21:04 -07:00
parent 31368cd1f0
commit 8a9675663f
3 changed files with 24 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2020, 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
@ -38,6 +38,11 @@ import com.sun.tools.jdi.VirtualMachineManagerImpl;
*/
public class Bootstrap extends Object {
/**
* Do not call.
*/
@Deprecated(since="16", forRemoval=true)
public Bootstrap() {}
/**
* Returns the virtual machine manager.

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2020, 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
@ -55,6 +55,10 @@ import java.io.IOException;
* @since 1.5
*/
public abstract class Connection {
/**
* Constructor for subclasses to call.
*/
public Connection() {}
/**
* Reads a packet from the target VM.

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2020, 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
@ -79,6 +79,10 @@ import com.sun.jdi.connect.TransportTimeoutException;
* @since 1.5
*/
public abstract class TransportService {
/**
* Constructor for subclasses to call.
*/
public TransportService() {}
/**
* Returns a name to identify the transport service.
@ -98,6 +102,10 @@ public abstract class TransportService {
* The transport service capabilities.
*/
public static abstract class Capabilities {
/**
* Constructor for subclasses to call.
*/
public Capabilities() {}
/**
* Tells whether or not this transport service can support
@ -229,6 +237,10 @@ public abstract class TransportService {
* service from listening on an address.
*/
public static abstract class ListenKey {
/**
* Constructor for subclasses to call.
*/
public ListenKey() {}
/**
* Returns a string representation of the listen key.