# HG changeset patch # User darcy # Date 1571330312 25200 # Node ID 06cc25fe0ca35fa7a64a7fe56f6a874f02aeb601 # Parent 931ec3339786ed046b48a43ab57f19c256a65d63 8232448: Suppress warnings on non-serializable non-transient instance fields in jdk.jdi Reviewed-by: sspitsyn diff -r 931ec3339786 -r 06cc25fe0ca3 src/jdk.jdi/share/classes/com/sun/jdi/InvocationException.java --- a/src/jdk.jdi/share/classes/com/sun/jdi/InvocationException.java Thu Oct 17 14:20:26 2019 +0200 +++ b/src/jdk.jdi/share/classes/com/sun/jdi/InvocationException.java Thu Oct 17 09:38:32 2019 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2019, 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 @@ -36,6 +36,7 @@ private static final long serialVersionUID = 6066780907971918568L; + @SuppressWarnings("serial") // Not statically typed as Serializable ObjectReference exception; public InvocationException(ObjectReference exception) { diff -r 931ec3339786 -r 06cc25fe0ca3 src/jdk.jdi/share/classes/com/sun/jdi/connect/IllegalConnectorArgumentsException.java --- a/src/jdk.jdi/share/classes/com/sun/jdi/connect/IllegalConnectorArgumentsException.java Thu Oct 17 14:20:26 2019 +0200 +++ b/src/jdk.jdi/share/classes/com/sun/jdi/connect/IllegalConnectorArgumentsException.java Thu Oct 17 09:38:32 2019 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2019, 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 @@ -40,6 +40,7 @@ private static final long serialVersionUID = -3042212603611350941L; + @SuppressWarnings("serial") // Conditionally serializable List names; /** diff -r 931ec3339786 -r 06cc25fe0ca3 src/jdk.jdi/share/classes/com/sun/jdi/connect/VMStartException.java --- a/src/jdk.jdi/share/classes/com/sun/jdi/connect/VMStartException.java Thu Oct 17 14:20:26 2019 +0200 +++ b/src/jdk.jdi/share/classes/com/sun/jdi/connect/VMStartException.java Thu Oct 17 09:38:32 2019 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2019, 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,7 @@ private static final long serialVersionUID = 6408644824640801020L; + @SuppressWarnings("serial") // Not statically typed as Serializable Process process; public VMStartException(Process process) {