Bug 12941 fixed: bad class path when in a package 65/12765/1
Calixte DENIZET [Mon, 30 Sep 2013 17:29:43 +0000 (19:29 +0200)]
Change-Id: I3bd3ccc4c9bb87331dfaf4526c7d0a4e75809135

scilab/modules/external_objects_java/src/java/org/scilab/modules/external_objects_java/ScilabJavaCompiler.java

index ad75007..0c210d6 100644 (file)
@@ -231,7 +231,7 @@ public class ScilabJavaCompiler {
         @Override
         public JavaFileObject getJavaFileForOutput(Location location, String className, Kind kind, FileObject sibling) throws IOException {
             if (sibling instanceof SourceString) {
-                this.className = className;
+                this.className = className.replace('/', '.');
             }
 
             if (ScilabJavaObject.debug) {