It should return class name in dot form. Class.getPackagePortion() relies on that. This bug caused that resources could not be located. This fixes the following exception for JPC:
Exception in thread "main" java/lang/ExceptionInInitializerError: java/util/Currency at java.text.DecimalFormatSymbols.<init>(DecimalFormatSymbols.java:173) at java.text.DecimalFormat.<clinit>(DecimalFormat.java:97) at org.jpc.j2se.PCMonitorFrame.<clinit>(PCMonitorFrame.java:24) Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- vm/jato.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/vm/jato.c b/vm/jato.c index 09a1dd1..b4bfeef 100644 --- a/vm/jato.c +++ b/vm/jato.c @@ -582,7 +582,14 @@ native_vmclass_getname(struct vm_object *object) if (!class) return NULL; - return vm_object_alloc_string_from_c(class->name); + struct vm_object *obj; + char *dot_name; + + dot_name = slash2dots(class->name); + obj = vm_object_alloc_string_from_c(dot_name); + free(dot_name); + + return obj; } static int32_t -- 1.6.0.6 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel