Yeah, I'm from Rune-Server.
Type: Posts; User: Tyluur
Yeah, I'm from Rune-Server.
public T newInstance()
throws InstantiationException, IllegalAccessException
{
if (System.getSecurityManager() != null) {
checkMemberAccess(Member.PUBLIC,...
That's what is outprinted. I returned it by out.println(classD.newInstance());
I posted what newInstance returns here: http://www.javaprogrammingforums.com/whats-wrong-my-code/16994-casting-java-lang-string-custom-class.html#post72103
I want that to be fixed and don't know how.
I don't know what variable has a string value.
Outprinting newInstances gives me:
java.lang.ClassCastException: java.lang.String cannot be cast to com.rs.game.player.dialogues.DialogueO
Matrix's dialogue system to get dialogues is as follows:
Put a dialogue like this: handledDialogues.put("Bob", (Class<Dialogue>) Bob.class.getCanonicalName());
So I said to myself, why not add...