[3603] in java-interest
Dynamic Object Instantiation ....
daemon@ATHENA.MIT.EDU (neudeck.arthur@ch.swissbank.com)
Fri Nov 17 07:25:07 1995
From: neudeck.arthur@ch.swissbank.com
Date: Fri, 17 Nov 1995 11:42:42 --100
To: java-interest@java.sun.com
Cc: neudeca@ch.swissbank.com
Hoi ....
I've got a problem (what else ?? ;-)):
I load a new class by a given name from a directory.
Afterwards I instantiate a new Object that way:
Object newObject = Class.forName("...")
Everything works fine until the moment I try to call a method of this new
object. I do have the problem, that the Class object does not provide the
called method, e.g.:
newObject.getOID();
How can I instantiate the object with the right cast???
Thanks ....
Arthy
.---------------------------------------------------------------------.
| Arthur Neudeck Tel: +41-61-288 94 44 |
| SYSTOR AG Fax: +41-61-288 42 24 |
| Applications - ARS Email: neudeck.arthur@ch.swissbank.com |
| Hochstrasse 16 X.400: C=CH A=400NET P=SWISSBANK S=NEUDECK |
| CH-4002 Basel G=ARTHUR DDA=ID=T019535 |
| Switzerland WWW: http://www.systor.ch/systor/ |
|---------------------------------------------------------------------|
| Current Project: Thesis about Travelling Objects |
`---------------------------------------------------------------------'
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com