We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b171c35 + 9c3310f commit 6e9978dCopy full SHA for 6e9978d
1 file changed
README.md
@@ -22,7 +22,7 @@ You needa CachedCompiler and access to you JDK's tools.jar.
22
23
// dynamically you can call
24
Class aClass = cc.loadFromJava(className, javaCode);
25
- KnownInterface o = (KnownInterface) aClass.nextInstance();
+ KnownInterface o = (KnownInterface) aClass.newInstance();
26
27
I suggest making you class implement a "KnownInterface" as this will allow you to call/manipulate instances of you generated class.
28
0 commit comments