Skip to content

kotlin typealias not work in property converter #1197

@amoikevin

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 = BConverter::class, dbType = String::class)
     var b:B?=null
}

class B {
     class Converter...
}

typealias BConverter = B.Converter

Expected behavior

generated ACursor.java:

...
import apple.ios.watches.model.BConverter;
...
private final BConverter bConverter = new BConverter();
...

Actual behavior

generated ACursor.java:

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

Code

Code

Logs, stack traces

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions