In some cases, SLC does not generate the type of method parameters properly, resulting in an invalid xml file and an error during compilation.
Type on line 14 of the generated xml file should be
This issue seems specific to OpenJDK 11. Changing the javac.exe path to Oracle Java 8 fixes the xml generation.
Sample project attached.
Type on line 14 of the generated xml file should be
android.view.View
instead of View
.This issue seems specific to OpenJDK 11. Changing the javac.exe path to Oracle Java 8 fixes the xml generation.
Sample project attached.
Sample code:
package test.test;
import android.view.View;
import anywheresoftware.b4a.BA.*;
@Version(1.0f)
@Author("spavlyuk")
@ActivityObject
@ShortName("Test")
public class Test {
public void Initialize(View view) {
}
}
Generated xml:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<doclet-version-NOT-library-version>1.07</doclet-version-NOT-library-version>
<class>
<name>test.test.Test</name>
<shortname>Test</shortname>
<owner>activity</owner>
<method>
<name>Initialize</name>
<comment></comment>
<returntype>void</returntype>
<parameter>
<name>view</name>
<type>View</type>
</parameter>
</method>
</class>
<version>1.0</version>
<author>spavlyuk</author>
</root>