« Return to Thread: VMBridge_jdk15 is used for JDK 1.4?

VMBridge_jdk15 is used for JDK 1.4?

by Juerg Lehni-3 :: Rate this Message:

Reply to Author | View in Thread

I run into this problem today when runing Rhino on JDK 1.4 on Mac:

java.lang.NoSuchMethodError: java.lang.reflect.Method.isVarArgs()Z
at org.mozilla.javascript.jdk15.VMBridge_jdk15.isVarArgs
(VMBridge_jdk15.java:48)

It seems that VMBridge_jdk15 is used although I am on 1.4.

Looking at VMBridge's code for deciding which one to use, I saw that  
it loops through these and tries to instantiate them:

org.mozilla.javascript.VMBridge_custom
org.mozilla.javascript.jdk15.VMBridge_jdk15
org.mozilla.javascript.jdk13.VMBridge_jdk13
org.mozilla.javascript.jdk11.VMBridge_jdk11

And for some reason it seems to be able to instantiate VMBridge_jdk15  
on 1.4 and is happy.

I then looked at VMBridge_jdk15 and did not see any condition that  
should prevent it from being able to do so. Or should the missing  
isVarArgs() be enough a reason for it to not load?

Is it just me, or is this currently broken for 1.4?

Jürg



_______________________________________________
dev-tech-js-engine mailing list
dev-tech-js-engine@...
https://lists.mozilla.org/listinfo/dev-tech-js-engine

 « Return to Thread: VMBridge_jdk15 is used for JDK 1.4?