Jruby 1.7.x backtrace not masked when calling java

Hi,

It seems like jruby 1.7.x does not mask java calls in backtrace if call
fails in java.

Is there a way to get nice backtraces in 1.7.x for java calls?

Here is an example:

$ jruby -v
jruby 1.7.4 (ruby-1.8.7p370) 2013-05-16 2390d3b on Java HotSpot™
64-Bit
Server VM 1.7.0_09-b05 [linux-amd64]

$ jruby -rjava -Xbacktrace.style=mri -Xbacktrace.mask=true
-Xcompat.version=1.9 -e ‘puts “a”.to_java.startsWith(nil)’
String.java:1385:in startsWith': java.lang.NullPointerException from String.java:1414:instartsWith’
from NativeMethodAccessorImpl.java:-2:in invoke0' from NativeMethodAccessorImpl.java:57:ininvoke’
from DelegatingMethodAccessorImpl.java:43:in invoke' from Method.java:601:ininvoke’
from JavaMethod.java:455:in invokeDirectWithExceptionHandling' from JavaMethod.java:316:ininvokeDirect’
from InstanceMethodInvoker.java:61:in call' from CachingCallSite.java:326:incacheAndCall’
from CachingCallSite.java:170:in call' from -e:1:infile
from -e:-1:in load' from Ruby.java:807:inrunScript’
from Ruby.java:800:in runScript' from Ruby.java:669:inrunNormally’
from Ruby.java:518:in runFromMain' from Main.java:390:indoRunFromMain’
from Main.java:279:in internalRun' from Main.java:221:inrun’
from Main.java:201:in `main’

Behavior for jruby-1.6.8:

$ jruby -v
jruby 1.6.8 (ruby-1.8.7-p357) (2012-09-18 1772b40) (Java HotSpot™
64-Bit
Server VM 1.7.0_09) [linux-amd64-java]

$ jruby -rjava -Xbacktrace.style=mri -Xbacktrace.mask=true
-Xcompat.version=1.9 -e ‘puts “a”.to_java.startsWith(nil)’
java/lang/String.java:1385:in startsWith': java.lang.NullPointerException: null (NativeException) from java/lang/String.java:1414:instartsWith’
from -e:1:in `(root)’

Thanks,
kbranko