Bug 12941 fixed: bad class path when in a package
[scilab.git] / 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) {