• Retrieve information for classes that don't have a "new" constructor

    By Mark Leusink 1 decade ago

    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();<br/>
    

    } catch( e ){

    expressionClass = java.lang.Class.forName(expression);<br/>
    

    }

    • Fixed

      By Tommy Valand 1 decade ago

      Thanks for the input :)