This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | ClassDefinition.getMethod not always working | ||
---|---|---|---|
Product: | java | Reporter: | Ondrej Rypacek <rypacek> |
Component: | Unsupported | Assignee: | Jan Becicka <jbecicka> |
Status: | RESOLVED INVALID | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | attaching the same piece of code indented properly |
Description
Ondrej Rypacek
2004-08-10 16:28:11 UTC
Created attachment 16726 [details]
attaching the same piece of code indented properly
I don't know, what TestUtil.getStringType(pkg) exactly does, but it worksforme. Method me = clazz.getMethod("main", Collections.singletonList(pkg.getArray().resolveArray(pkg.getType().resolve("java.lang.String"))), false); successfuly returned main method. Sorry, I forgot. getStringType does exactly what you have there... ...with a subtle difference though: pkg.getType().resolve("String") It remained there from my previous attempts to get it working. Previously neither with "String" nor with "java.lang.String" was working. Now, with the latest version, "java.lang.String" works fine. Thanks anyway for the evaluation. It always helps to get somebody else have a look at a problem :-) Reorganization of java component |