So I wanted to do this:

If (var instanceof Hudson.security.LDAPSecurityRealm)

I couldn't get it to compile, even though I had "import Hudson.security.*".

Eventually I figured out that this particular class isn't in the jenkin*.jar 
file . . . it is a plugin class.

So I thought "no problem, I'll just import the plugin jar too", but there is no 
jar.

There is a *.class file, there is the "jpi" file . . . but nothing Netbeans 
will recognize as a jar . . .

Even more interesting is that I then tried this:

If (var instanceof Class.forName("LDAPSecurityRealm"))

This failed, even though "var" contained a pointer to one of that very same 
class . . . so I know the JVM knows about it, but Class threw a not found 
exception.

I eventually just closed by eyes and made calls on "var" assuming it is a LDAP 
class . . . but I really wanted to check first.

Any ideas how to make that work?

Frank

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to