Community
Participate
Working Groups
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
int firstParen = CharOperation.indexOf(C_PARAM_START, methodSignature);
if (firstParen == -1) {
throw new IllegalArgumentException();
} else if (firstParen != 0 && methodSignature[0] != C_GENERIC_START) {
}
StringBuffer buffer = new StringBuffer(methodSignature.length + 10);
Signature.toString("([Ljava.lang.String;)Ljava.lang.String;", "main", new String[] {"args"}, true, true));
public void testToStringMethod07() {
assertEquals(
try {
"java.lang.String main(java.lang.String[] args)",
Signature.toString("main([Ljava.lang.String;)Ljava.lang.String;", "main", new String[] {"args"}, true, true);
Signature.toString("main([Ljava.lang.String;)Ljava.lang.String;", "main", new String[] {"args"}, true, true));
assertTrue("Did not fail on invalid signature", false);
} catch(IllegalArgumentException e) {
// ignore
public void testToStringMethod08() {