Giter Site home page Giter Site logo

Member name collision about smithy-kotlin HOT 8 CLOSED

kggilmer avatar kggilmer commented on September 16, 2024
Member name collision

from smithy-kotlin.

Comments (8)

kggilmer avatar kggilmer commented on September 16, 2024

This also occurs in efs type AccessPointAlreadyExists (Ken Gilmer - Feb 17, 2021)

from smithy-kotlin.

kggilmer avatar kggilmer commented on September 16, 2024

this is interesting. We have a high potential of collision with exception message parameter as well that we ought to consider.

Perhaps we should have a set of "runtime reserved" words that we maintain to rename members if they collide. Highest potential for collisions is going to be in exceptions since they inherit from a hierarchy. (Aaron Todd - Feb 17, 2021)

from smithy-kotlin.

kggilmer avatar kggilmer commented on September 16, 2024

This also occurs in macie, example aws.sdk.kotlin.macie.model.InternalException:

class InternalException private constructor(builder: BuilderImpl) : AwsServiceException() {
    /**
     * Error code for the exception
     */
    val errorCode: String? = builder.errorCode
    override val message: String = builder.message!!
``` (Ken Gilmer - Feb 17, 2021)

from smithy-kotlin.

kggilmer avatar kggilmer commented on September 16, 2024

This also occurs in licensemanager aws.sdk.kotlin.licensemanager.model.FailedDependencyException:

class FailedDependencyException private constructor(builder: BuilderImpl) : AwsServiceException() {
    val errorCode: String? = builder.errorCode
...
``` (Ken Gilmer - Feb 17, 2021)

from smithy-kotlin.

kggilmer avatar kggilmer commented on September 16, 2024

Occurs in identiystore aws.sdk.kotlin.identitystore.model.AccessDeniedException for the shadowed requestId property:

class AccessDeniedException private constructor(builder: BuilderImpl) : AwsServiceException() {
    override val message: String = builder.message!!
    /**
     * <p>The identifier for each request. This value is a globally unique ID that is generated by the Identity Store service for each sent request, and is then returned inside the exception if the request fails.</p>
     */
    val requestId: String? = builder.requestId
``` (Ken Gilmer - Feb 18, 2021)

from smithy-kotlin.

kggilmer avatar kggilmer commented on September 16, 2024

Also inspector: aws.sdk.kotlin.inspector.model.AccessDeniedException, shadowed type errorCode:

class AccessDeniedException private constructor(builder: BuilderImpl) : AwsServiceException() {
    /**
     * <p>You can immediately retry your request.</p>
     */
    val canRetry: Boolean? = builder.canRetry
    /**
     * <p>Code that indicates the type of error that is generated.</p>
     */
    val errorCode: AccessDeniedErrorCode? = builder.errorCode
``` (Ken Gilmer - Feb 18, 2021)

from smithy-kotlin.

kggilmer avatar kggilmer commented on September 16, 2024

datasync has the issue in aws.sdk.kotlin.datasync.model.InternalException shadowing errorCode (Ken Gilmer - Feb 18, 2021)

from smithy-kotlin.

kggilmer avatar kggilmer commented on September 16, 2024

directoryservice has this issue in aws.sdk.kotlin.directoryservice.model.AccessDeniedException with shadowed property requestId (Ken Gilmer - Feb 18, 2021)

from smithy-kotlin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.