Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 304887

Summary: Signature.toCharArray(..) doesn't fail when the signature is invalid
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Stephan Herrmann <stephan.herrmann>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: stephan.herrmann
Version: 3.6   
Target Milestone: 4.15 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix none

Description Olivier Thomann CLA 2010-03-05 16:27:48 EST
A signature for a method must either start with '(' or '<'.
The signature in test:
org.eclipse.jdt.core.tests.model.SignatureTests#testToStringMethod07
is invalid.
main([Ljava.lang.String;)Ljava.lang.String;

This should be rejected with an IllegalArgumentException.
Comment 1 Olivier Thomann CLA 2010-03-05 16:30:51 EST
Created attachment 161195 [details]
Proposed fix
Comment 2 Eclipse Genie CLA 2020-02-15 20:29:32 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 Stephan Herrmann CLA 2020-02-16 08:25:29 EST
I guess it's too late to make this method stricter. Clients may already depend on this resilience. => WONTFIX looks good to me.