Resize image conversion to Mx5 gives compiler error

0
Hi all, I am converting my app from Mx 4.7.2 to MX 5.4.1. I am using the ResizeImage JAVA action. When i come to the step Migrate JAVA Libraries, I get the following following compilation error: compile-legacy: [javac] Compiling 207 source files to C:\Users\erik\Documents\Speelplaatsbeheer-main2\deployment\run\bin [javac] C:\Users\erik\Documents\Speelplaatsbeheer-main2\javasource\imageresizer\actions\ResizeImage.java:45: error: constructor UserAction in class UserAction<r> cannot be applied to given types; [javac] super(); [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] where R is a type-variable: [javac] R extends Object declared in class UserAction [javac] Note: C:\Users\erik\Documents\Speelplaatsbeheer-main2\javasource\mxmodelreflection\actions\SyncObjects.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: C:\Users\erik\Documents\Speelplaatsbeheer-main2\javasource\com\mendix\core\Core.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 1 error Can anyone help? Thanks Erik
asked
3 answers
1

This is described in the Moving from 4 to 5 guide at "The parameterless constructor for UserAction has been removed"

answered
1

I have converted the ResizeImage project itself to Mx 5. After that I copied the JAVA function to my project.

answered
0

Open your project in eclipse to review and fix the errors. My guess is that you are using a method that has been changed and needs more input parameters than before.

answered