Visitar URL original
same property converter names conflict · Issue #1198 · objectbox/objectbox-java · GitHub
Skip to content

same property converter names conflict #1198

Description

@amoikevin

Is there an existing issue?

Build info

  • ObjectBox version: [4.0.3]
  • OS: [Android ]
  • Device/ABI/architecture: [arm64-v8a ]

Steps to reproduce

file A.kt:

class A {
     @Convert(converter = B.Converter::class, dbType = String::class)
     var b:B?=null

     @Convert(converter = C.Converter::class, dbType = String::class)
     var c:C?=null
}

class B {
     class Converter...
}

class C {
     class Converter...
}

Expected behavior

generated ACursor.java:

...
import apple.ios.watches.model.B;
import apple.ios.watches.model.C;
...
private final B.Converter bConverter = new B.Converter();
private final C.Converter cConverter = new C.Converter();
...

Actual behavior

generated ACursor.java:

...
import apple.ios.watches.model.B.Converter;
import apple.ios.watches.model.C.Converter;
...
private final Converter bConverter = new Converter();
private final Converter cConverter = new Converter();
...

Code

Code

Logs, stack traces

Logs

Activity

  1. greenrobot-team commented on Dec 2, 2024

    @greenrobot-team
    Member

    Thanks for reporting! This likely boils down to fully supporting inner classes for converter classes as well, similar to #1006.

    Internal issue objectbox-java#159

    For anyone else affected, it helps us prioritize issues if you thumbs up the first post (GitHub can sort issues by thumbs ups)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions