Use constructor for TokenStream (adding additional null argument).

This commit is contained in:
hns 2003-06-24 08:31:14 +00:00
parent ec1aed6650
commit b40e39c98c

View file

@ -160,10 +160,10 @@ public class DocFunction extends DocFileElement {
int line = 0; int line = 0;
// FIXME for some reason this doesn't compile with winxp/j2sdk141_03 // FIXME for some reason this doesn't compile with winxp/j2sdk141_03
// return new TokenStream (reader, null, name, line); return new TokenStream (reader, null, null, name, line);
// so we have to use reflection: // so we have to use reflection:
try { /* try {
Class c = Class.forName ("org.mozilla.javascript.TokenStream"); Class c = Class.forName ("org.mozilla.javascript.TokenStream");
Constructor[] constr = c.getDeclaredConstructors(); Constructor[] constr = c.getDeclaredConstructors();
Object[] params = new Object[4]; Object[] params = new Object[4];
@ -175,7 +175,7 @@ public class DocFunction extends DocFileElement {
} catch (Exception anything) { } catch (Exception anything) {
anything.printStackTrace(); anything.printStackTrace();
throw new DocException (anything.toString()); throw new DocException (anything.toString());
} } */
} }