/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This class is used to test getTypeDeclaration on classes that are
* not already loaded.
*/
// Process any set of annotations
// No supported options
return supportedAnnotations;
}
return supportedOptions;
}
return new TestGetTypeDeclarationAp(env);
}
}
public void process() {
String classNames[] = {
"java.lang.String", // should be already available
"java.lang.Thread.State", // should be already available
"java.util.Collection",
"java.util.Map.Entry",
"foo.bar.Baz.Xxyzzy.Wombat",
"foo.bar.Baz.Xxyzzy",
"foo.bar.Baz",
"foo.bar.Quux",
"foo.bar.Quux.Xxyzzy",
"foo.bar.Quux.Xxyzzy.Wombat",
"NestedClassAnnotations",
"NestedClassAnnotations.NestedClass",
};
if (t == null)
}
// Test obscuring behavior; i.e. nested class C1 in class
// p1 where p1 is member of package p2 should be favored
// over class C1 in package p1.p2.
"p1.p2.C1",
};
throw new RuntimeException("Bad class declaration");
}
}
String notClassNames[] = {
"",
"XXYZZY",
"java",
"java.lang",
"java.lang.Bogogogous",
"1",
"1.2",
"3.14159",
"To be or not to be is a tautology",
"1+2=3",
"foo+.x",
"foo+x",
"+",
"?",
"***",
"java.*",
};
if (t != null) {
}
}
}
}
}