Java compiler error when upgrading to mendix 8.1

1
Hello all, I'm working on a project that requires me to upgrade an app from 7.22 tot 8.1. First step was pretty easy, 7.22 to 7.23.8 went without much problemen. When upgrading to 8.1 however thing become a bit harder. After resolving the first error in the moddeler, updating some resources etc. the moddeler says there are no more error's. The application howerver wil not launch due to java errors (see the snippet for details). Strange thing is, when i open Eclipse to view the errors in de java IDE the application sometimes starts, and then keeps running localy until i clear the deployment folder, overlooking the error's it first stops on. Furthermore excluding error producing items does not prevent the error. anyone with an sollution to my problems? Or a place to get me started?   Buildfile: D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\deployment\build_core.xml compile: [javac] Compiling 586 source files to D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\deployment\run\bin [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\approntocommon\actions\CreateSignature.java:19: error: cannot find symbol [javac] import sun.misc.BASE64Decoder; [javac] ^ [javac] symbol: class BASE64Decoder [javac] location: package sun.misc [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\approntocommon\actions\CreateSignature.java:20: error: cannot find symbol [javac] import sun.misc.BASE64Encoder; [javac] ^ [javac] symbol: class BASE64Encoder [javac] location: package sun.misc [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\approntocommon\actions\VerifySignature.java:18: error: cannot find symbol [javac] import sun.misc.BASE64Decoder; [javac] ^ [javac] symbol: class BASE64Decoder [javac] location: package sun.misc [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\approntocommon\actions\CreateSignature.java:41: error: cannot find symbol [javac] byte[] privateKeyBytes = new BASE64Decoder().decodeBuffer(this.PPK); [javac] ^ [javac] symbol: class BASE64Decoder [javac] location: class CreateSignature [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\approntocommon\actions\CreateSignature.java:52: error: cannot find symbol [javac] return new BASE64Encoder().encode(signatureBytes); [javac] ^ [javac] symbol: class BASE64Encoder [javac] location: class CreateSignature [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\approntocommon\actions\ExecuteMicroflowSynchronized.java:73: error: cannot find symbol [javac] ArrayList<IFeedback> arrayList = new ArrayList<IFeedback>(newContext.getFeedbackList()); [javac] ^ [javac] symbol: method getFeedbackList() [javac] location: variable newContext of type IContext [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\approntocommon\actions\ExecuteMicroflowSynchronized.java:76: error: cannot find symbol [javac] context.addFeedback(feedback); [javac] ^ [javac] symbol: method addFeedback(IFeedback) [javac] location: variable context of type IContext [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\approntocommon\actions\VerifySignature.java:39: error: cannot find symbol [javac] byte[] publikKeyBuytes = new BASE64Decoder().decodeBuffer(this.PublicKey); [javac] ^ [javac] symbol: class BASE64Decoder [javac] location: class VerifySignature [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\approntocommon\actions\VerifySignature.java:48: error: cannot find symbol [javac] return sig.verify(new BASE64Decoder().decodeBuffer(Sign)); [javac] ^ [javac] symbol: class BASE64Decoder [javac] location: class VerifySignature [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\communitycommons\Misc.java:270: error: method getUser in interface ISession cannot be applied to given types; [javac] if (context.getSession().getUser() != null && username.equals(context.getSession().getUser().getName())) [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\communitycommons\Misc.java:270: error: method getUser in interface ISession cannot be applied to given types; [javac] if (context.getSession().getUser() != null && username.equals(context.getSession().getUser().getName())) [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\communitycommons\ORM.java:183: error: cannot find symbol [javac] List<IMendixObject> objs = Core.retrieveXPathQueryEscaped(ctx, "//%s[%s='%s']", [javac] ^ [javac] symbol: method retrieveXPathQueryEscaped(IContext,String,String,String,String) [javac] location: class Core [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\communitycommons\ORM.java:345: error: method getUser in interface ISession cannot be applied to given types; [javac] return session == null ? null : session.getUser().getName(); [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\deeplink\actions\StartDeeplinkJava.java:137: error: method getUser in interface ISession cannot be applied to given types; [javac] if ( session == null || (session!=null && session.getUser().isAnonymous()) ) { [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\deeplink\actions\StartDeeplinkJava.java:170: error: method getUser in interface ISession cannot be applied to given types; [javac] serve404(request, response, session == null ? null : session.getUser().getName()); [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\deeplink\actions\StartDeeplinkJava.java:186: error: method getUser in interface ISession cannot be applied to given types; [javac] else if (!deeplink.getAllowGuests().booleanValue() && session.getUser().isAnonymous()) //guest session, which is not allowed [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\deeplink\actions\StartDeeplinkJava.java:199: error: method getUser in interface ISession cannot be applied to given types; [javac] String user = session.getUser().getName(); [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\deeplink\actions\StartDeeplinkJava.java:204: error: cannot find symbol [javac] List<IMendixObject> pendinglinks = Core.retrieveXPathQueryEscaped(context, "//%s[%s='%s' and %s='%s']", [javac] ^ [javac] symbol: method retrieveXPathQueryEscaped(IContext,String,String,String,String,String,String) [javac] location: class Core [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\deeplink\actions\StartDeeplinkJava.java:237: error: method getUser in interface ISession cannot be applied to given types; [javac] link.setUser(session.getUser().getName()); [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\deeplink\actions\StartDeeplinkJava.java:389: error: cannot find symbol [javac] List<IMendixObject> result = Core.retrieveXPathQueryEscaped(context, "//%s[%s='%s']", [javac] ^ [javac] symbol: method retrieveXPathQueryEscaped(IContext,String,String,String,String) [javac] location: class Core [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\mxmodelreflection\metamodelBuilder\Builder.java:67: error: an enum switch case label must be the unqualified name of an enumeration constant [javac] case Currency: [javac] ^ [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\mxmodelreflection\metamodelBuilder\Builder.java:79: error: an enum switch case label must be the unqualified name of an enumeration constant [javac] case Float: [javac] ^ [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\mxmodelreflection\metamodelBuilder\Builder.java:111: error: an enum switch case label must be the unqualified name of an enumeration constant [javac] case Currency: [javac] ^ [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\mxmodelreflection\metamodelBuilder\Builder.java:120: error: an enum switch case label must be the unqualified name of an enumeration constant [javac] case Float: [javac] ^ [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\publish\RestServiceRequest.java:115: error: method getUser in interface ISession cannot be applied to given types; [javac] if (existingSession != null && session.getId().equals(existingSession.getId()) && existingSession.getUser().getName().equals(session.getUser().getName())) { [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\publish\RestServiceRequest.java:115: error: method getUser in interface ISession cannot be applied to given types; [javac] if (existingSession != null && session.getId().equals(existingSession.getId()) && existingSession.getUser().getName().equals(session.getUser().getName())) { [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\publish\RestServiceRequest.java:128: error: method getUser in interface ISession cannot be applied to given types; [javac] if (session != null && session.getUser() != null && session.getUser().getUserRoleNames().contains(role)) { [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\publish\RestServiceRequest.java:128: error: method getUser in interface ISession cannot be applied to given types; [javac] if (session != null && session.getUser() != null && session.getUser().getUserRoleNames().contains(role)) { [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\publish\RestServiceRequest.java:305: error: method getUser in interface ISession cannot be applied to given types; [javac] return activeSession.getUser(); [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\publish\DataService.java:61: error: method getUser in interface ISession cannot be applied to given types; [javac] constraint = constraint.replace(RestServices.CURRENTUSER_TOKEN, "'" + context.getSession().getUser().getMendixObject().getId() + "'"); [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\util\JSONSchemaBuilder.java:134: error: an enum switch case label must be the unqualified name of an enumeration constant [javac] case Currency: [javac] ^ [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\util\JSONSchemaBuilder.java:135: error: an enum switch case label must be the unqualified name of an enumeration constant [javac] case Float: [javac] ^ [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\util\JsonDeserializer.java:171: error: an enum switch case label must be the unqualified name of an enumeration constant [javac] case Currency: [javac] ^ [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\util\JsonDeserializer.java:172: error: an enum switch case label must be the unqualified name of an enumeration constant [javac] case Float: [javac] ^ [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\util\JsonSerializer.java:161: error: an enum switch case label must be the unqualified name of an enumeration constant [javac] case Currency: [javac] ^ [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\util\JsonSerializer.java:162: error: an enum switch case label must be the unqualified name of an enumeration constant [javac] case Float: [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\appcloudservices\implementation\utils\MendixUtils.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 36 errors BUILD FAILED D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\deployment\build_core.xml:29: Compile failed; see the compiler error output for details. Total time: 8 seconds  
asked
2 answers
0

Hi Rick,

  Looking at some of these errors, my first guess is that you need to update your app store modules to be Mendix 8 compatible. I see a reference to ‘Currency’ and ‘Float’ in the REST module, which are data types that are deprecated in Mendix 8. Can you try re-downloading the REST, Deeplink, and Model Reflection app modules and re-run this? You will need to clean your deployment directory as well.

 

answered
0

Thank you Rob for the help, some error's where fixed but the REST module for example is not updated for Mendix 8, it's supported natively so we will have to change that in the project. Same goes for some of the other actions.

The error list after the updates:
 

Buildfile: D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\deployment\build_core.xml

compile:
    [javac] Compiling 587 source files to D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\deployment\run\bin
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\approntocommon\actions\CreateSignature.java:19: error: cannot find symbol
    [javac] import sun.misc.BASE64Decoder;
    [javac]                ^
    [javac]   symbol:   class BASE64Decoder
    [javac]   location: package sun.misc
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\approntocommon\actions\CreateSignature.java:20: error: cannot find symbol
    [javac] import sun.misc.BASE64Encoder;
    [javac]                ^
    [javac]   symbol:   class BASE64Encoder
    [javac]   location: package sun.misc
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\approntocommon\actions\VerifySignature.java:18: error: cannot find symbol
    [javac] import sun.misc.BASE64Decoder;
    [javac]                ^
    [javac]   symbol:   class BASE64Decoder
    [javac]   location: package sun.misc
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\approntocommon\actions\CreateSignature.java:41: error: cannot find symbol
    [javac] 		byte[] privateKeyBytes = new BASE64Decoder().decodeBuffer(this.PPK);
    [javac] 		                             ^
    [javac]   symbol:   class BASE64Decoder
    [javac]   location: class CreateSignature
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\approntocommon\actions\CreateSignature.java:52: error: cannot find symbol
    [javac] 	        return new BASE64Encoder().encode(signatureBytes);
    [javac] 	                   ^
    [javac]   symbol:   class BASE64Encoder
    [javac]   location: class CreateSignature
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\approntocommon\actions\ExecuteMicroflowSynchronized.java:73: error: cannot find symbol
    [javac] 		ArrayList<IFeedback> arrayList = new ArrayList<IFeedback>(newContext.getFeedbackList());
    [javac] 		                                                                    ^
    [javac]   symbol:   method getFeedbackList()
    [javac]   location: variable newContext of type IContext
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\approntocommon\actions\ExecuteMicroflowSynchronized.java:76: error: cannot find symbol
    [javac] 			context.addFeedback(feedback);
    [javac] 			       ^
    [javac]   symbol:   method addFeedback(IFeedback)
    [javac]   location: variable context of type IContext
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\approntocommon\actions\VerifySignature.java:39: error: cannot find symbol
    [javac] 		byte[] publikKeyBuytes = new BASE64Decoder().decodeBuffer(this.PublicKey);
    [javac] 		                             ^
    [javac]   symbol:   class BASE64Decoder
    [javac]   location: class VerifySignature
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\approntocommon\actions\VerifySignature.java:48: error: cannot find symbol
    [javac]         return sig.verify(new BASE64Decoder().decodeBuffer(Sign));
    [javac]                               ^
    [javac]   symbol:   class BASE64Decoder
    [javac]   location: class VerifySignature
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\communitycommons\Misc.java:270: error: method getUser in interface ISession cannot be applied to given types;
    [javac] 		if (context.getSession().getUser() != null && username.equals(context.getSession().getUser().getName()))
    [javac] 		                        ^
    [javac]   required: IContext
    [javac]   found: no arguments
    [javac]   reason: actual and formal argument lists differ in length
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\communitycommons\Misc.java:270: error: method getUser in interface ISession cannot be applied to given types;
    [javac] 		if (context.getSession().getUser() != null && username.equals(context.getSession().getUser().getName()))
    [javac] 		                                                                                  ^
    [javac]   required: IContext
    [javac]   found: no arguments
    [javac]   reason: actual and formal argument lists differ in length
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\communitycommons\ORM.java:183: error: cannot find symbol
    [javac] 				List<IMendixObject> objs = Core.retrieveXPathQueryEscaped(ctx, "//%s[%s='%s']", 
    [javac] 				                               ^
    [javac]   symbol:   method retrieveXPathQueryEscaped(IContext,String,String,String,String)
    [javac]   location: class Core
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\communitycommons\ORM.java:345: error: method getUser in interface ISession cannot be applied to given types;
    [javac] 		return session == null ? null : session.getUser().getName();
    [javac] 		                                       ^
    [javac]   required: IContext
    [javac]   found: no arguments
    [javac]   reason: actual and formal argument lists differ in length
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\publish\RestServiceRequest.java:115: error: method getUser in interface ISession cannot be applied to given types;
    [javac] 				if (existingSession != null && session.getId().equals(existingSession.getId()) && existingSession.getUser().getName().equals(session.getUser().getName())) {
    [javac] 				                                                                                                 ^
    [javac]   required: IContext
    [javac]   found: no arguments
    [javac]   reason: actual and formal argument lists differ in length
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\publish\RestServiceRequest.java:115: error: method getUser in interface ISession cannot be applied to given types;
    [javac] 				if (existingSession != null && session.getId().equals(existingSession.getId()) && existingSession.getUser().getName().equals(session.getUser().getName())) {
    [javac] 				                                                                                                                                    ^
    [javac]   required: IContext
    [javac]   found: no arguments
    [javac]   reason: actual and formal argument lists differ in length
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\publish\RestServiceRequest.java:128: error: method getUser in interface ISession cannot be applied to given types;
    [javac] 			if (session != null && session.getUser() != null && session.getUser().getUserRoleNames().contains(role)) {
    [javac] 			                              ^
    [javac]   required: IContext
    [javac]   found: no arguments
    [javac]   reason: actual and formal argument lists differ in length
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\publish\RestServiceRequest.java:128: error: method getUser in interface ISession cannot be applied to given types;
    [javac] 			if (session != null && session.getUser() != null && session.getUser().getUserRoleNames().contains(role)) {
    [javac] 			                                                           ^
    [javac]   required: IContext
    [javac]   found: no arguments
    [javac]   reason: actual and formal argument lists differ in length
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\publish\RestServiceRequest.java:305: error: method getUser in interface ISession cannot be applied to given types;
    [javac] 		return activeSession.getUser();
    [javac] 		                    ^
    [javac]   required: IContext
    [javac]   found: no arguments
    [javac]   reason: actual and formal argument lists differ in length
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\publish\DataService.java:61: error: method getUser in interface ISession cannot be applied to given types;
    [javac] 			constraint = constraint.replace(RestServices.CURRENTUSER_TOKEN, "'" + context.getSession().getUser().getMendixObject().getId() + "'");
    [javac] 			                                                                                          ^
    [javac]   required: IContext
    [javac]   found: no arguments
    [javac]   reason: actual and formal argument lists differ in length
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\util\JSONSchemaBuilder.java:134: error: an enum switch case label must be the unqualified name of an enumeration constant
    [javac] 		case Currency:
    [javac] 		     ^
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\util\JSONSchemaBuilder.java:135: error: an enum switch case label must be the unqualified name of an enumeration constant
    [javac] 		case Float:
    [javac] 		     ^
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\util\JsonDeserializer.java:171: error: an enum switch case label must be the unqualified name of an enumeration constant
    [javac] 		case Currency:
    [javac] 		     ^
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\util\JsonDeserializer.java:172: error: an enum switch case label must be the unqualified name of an enumeration constant
    [javac] 		case Float:
    [javac] 		     ^
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\util\JsonSerializer.java:161: error: an enum switch case label must be the unqualified name of an enumeration constant
    [javac] 			case Currency:
    [javac] 			     ^
    [javac] D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\restservices\util\JsonSerializer.java:162: error: an enum switch case label must be the unqualified name of an enumeration constant
    [javac] 			case Float:
    [javac] 			     ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\javasource\appcloudservices\implementation\utils\MendixUtils.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 25 errors

BUILD FAILED
D:\Documents\Mendix\Appronto Application Monitor-Upgrade_8.1.1_Test_Rick\deployment\build_core.xml:29: Compile failed; see the compiler error output for details.

Total time: 10 seconds

 

answered