XPages API Inspector - Feature Request: Retrieve information for classes that don't have a "new" constructorCreated on |
Sep 2, 2010 |
Created by |
Mark Leusink |
Status |
Submitted |
If I enter a class name of a class that doesn't have a "new classname()" constructor (e.g. "lotus.domino.local.Item"), the API Inspector returns an error message. Using the java.lang.Class class it is possible to retrieve the information for these classes also:
// Test expression as Class name
try {
expressionClass = eval( 'new ' + expression + '()' ).getClass();
} catch( e ){
expressionClass = java.lang.Class.forName(expression);
}
Taken Actions by OwnersNo actions have been taken yet.Documents