PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → Multiple syntaxes for java procedures
Multiple syntaxes for java procedures
Débuté par Rafa Rionegro, 11 juin 2025 13:53 - Aucune réponse
Posté le 11 juin 2025 - 13:53
I've tried to create two syntaxes of the same procedures just changing its parameter type like the picture (just a dummy example)






If I try to compile, I get this error:

Error creating the  Android application.


Command line: "E:\PC SOFT\WINDEV Mobile 2025\Personal\Android\OpenJDK\bin\java.exe" -Duser.dir="D:\Proyectos\WinDev 2025\My Mobile Projects.Branches\GM.v2025\GESMOBILE_MATUTANO_25\Android\gen" "-Dorg.gradle.appname=D:\Proyectos\WinDev 2025\My Mobile Projects.Branches\GM.v2025\GESMOBILE_MATUTANO_25\Android\gen" -classpath "E:\PC SOFT\WINDEV Mobile 2025\Personal\Android\Gradle\lib\gradle-launcher-7.5.1.jar" org.gradle.launcher.GradleMain assembleRelease -b "D:\Proyectos\WinDev 2025\My Mobile Projects.Branches\GM.v2025\GESMOBILE_MATUTANO_25\Android\gen\build.gradle"


Error returned:
:compileReleaseJavaWithJavac
D:\Proyectos\WinDev 2025\My Mobile Projects.Branches\GM.v2025\GESMOBILE_MATUTANO_25\Android\gen\src\com\agsoft\gesmobile\wdgen\GWDCPAndroidProcedures.java:1791: error: -> expected
();
  ^
D:\Proyectos\WinDev 2025\My Mobile Projects.Branches\GM.v2025\GESMOBILE_MATUTANO_25\Android\gen\src\com\agsoft\gesmobile\wdgen\GWDCPAndroidProcedures.java:1791: error: not a statement
();
^
D:\Proyectos\WinDev 2025\My Mobile Projects.Branches\GM.v2025\GESMOBILE_MATUTANO_25\Android\gen\src\com\agsoft\gesmobile\wdgen\GWDCPAndroidProcedures.java:1794: error: -> expected
();
  ^
D:\Proyectos\WinDev 2025\My Mobile Projects.Branches\GM.v2025\GESMOBILE_MATUTANO_25\Android\gen\src\com\agsoft\gesmobile\wdgen\GWDCPAndroidProcedures.java:1794: error: not a statement
();
^
4 errors

Task :compileReleaseJavaWithJavac FAILED

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':compileReleaseJavaWithJavac'.
Compilation failed; see the compiler error output for details.


* Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

* Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

==============================================================================

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 7s
34 actionable tasks: 9 executed, 25 up-to-date


I decided to look into java files under Project/Android/gen/Compile looking for what causes this error and I found this:





If we extract and beautify the code related to my dummy example, we can see this:




As far as I know Java, this doesn't make sense. Is this a bug when adapting WLanguage code? How can I implement multiple syntaxes and avoid this situation?