JDK-7055295 : (reflect) add conventional constructor to GenericSignatureFormatError
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-06-15
  • Updated: 2017-05-16
  • Resolved: 2012-05-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b01Fixed
Related Reports
Relates :  
Relates :  
Description
GenericSignatureFormatError only has a single constructor which takes no arguments.  Per the conventions discussed in java.lang.Throwable, GenericSignatureFormatError should also include a constructor which takes a string as a message.

Comments
SUGGESTED FIX # HG changeset patch # User darcy # Date 1308615635 25200 # Node ID 3c8f939ced1cfd6fb7d660936a561bd5be90c7ac # Parent a015dda3bdc6a8bb09eb3875aafbf308e6190c5e 7055295: (reflect) add conventional constructor to GenericSignatureFormatError Reviewed-by: lancea, mduigou --- a/src/share/classes/java/lang/reflect/GenericSignatureFormatError.java Mon Jun 20 19:17:47 2011 +0800 +++ b/src/share/classes/java/lang/reflect/GenericSignatureFormatError.java Mon Jun 20 17:20:35 2011 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2011, 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 @@ -35,4 +35,22 @@ package java.lang.reflect; */ public class GenericSignatureFormatError extends ClassFormatError { private static final long serialVersionUID = 6709919147137911034L; + + /** + * Constructs a new {@code GenericSignatureFormatError}. + * + */ + public GenericSignatureFormatError() { + super(); + } + + /** + * Constructs a new {@code GenericSignatureFormatError} with the + * specified message. + * + * @param message the detail message, may be {@code null} + */ + public GenericSignatureFormatError(String message) { + super(message); + } }
21-06-2011

PUBLIC COMMENTS See http://hg.openjdk.java.net/jdk8/tl/jdk/rev/3c8f939ced1c
21-06-2011

EVALUATION A fine idea.
15-06-2011