Use constructor for TokenStream (adding additional null argument).
This commit is contained in:
parent
ec1aed6650
commit
b40e39c98c
1 changed files with 3 additions and 3 deletions
|
@ -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());
|
||||||
}
|
} */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue