Skip to content

Code gen package name contains invalid keyword #38

@macroadster

Description

@macroadster

When compiling with maven 3.3.9 and Java 1.8.0_111, the compilation fails with:

[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ softlayer-api-client ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1084 source files to /Users/eric/s/softlayer-java/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /Users/eric/s/softlayer-java/src/main/java/com/softlayer/api/service/container/authentication/response/2FactorAuthenticationNeeded.java:[13,13] <identifier> expected
[ERROR] /Users/eric/s/softlayer-java/src/main/java/com/softlayer/api/service/container/authentication/response/2FactorAuthenticationNeeded.java:[13,41] <identifier> expected
[ERROR] /Users/eric/s/softlayer-java/src/main/java/com/softlayer/api/service/container/authentication/response/2FactorAuthenticationNeeded.java:[13,56] <identifier> expected
[ERROR] /Users/eric/s/softlayer-java/src/main/java/com/softlayer/api/service/container/authentication/request/native/external/Totp.java:[1,68] <identifier> expected

The package name generated from code gen process is using:

package com.softlayer.api.service.container.authentication.request.**native**.external;

Native is a keyword in Java. Java package name convention prevents usage of Java keyword. This is causing compilation to fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions