Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-5202

Automatic module name was broken for Kotlin modules

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.11.1
    • Affects Version/s: 4.11.0
    • Component/s: Build
    • None
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Summary

      Automatic module name was broken by name "org.mongodb.mongodb-driver-kotlin-coroutine", this violates the convention of [package naming|https://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html]

      Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).

      MongoDb driver kotlin coroutine 4.11.0

      How to Reproduce

      Use in any projects with modules or project Gradle Minecraft 1.19.2 with Forge 43.2.21.

      Additional Background

      I create a Pull Request in official Github with fix this problem.

       

      Stacktrace:

       

      
      

      Exception in thread "main" java.lang.IllegalArgumentException: org.mongodb.mongodb-driver-kotlin-coroutine: Invalid module name: 'mongodb-driver-kotlin-coroutine' is not a Java identifier     at java.base/jdk.internal.module.Checks.requireModuleName(Checks.java:59)     at java.base/java.lang.module.ModuleDescriptor$Builder.<init>(ModuleDescriptor.java:1515)     at java.base/java.lang.module.ModuleDescriptor.newAutomaticModule(ModuleDescriptor.java:2395)

       

       

      Screenshot:

            Assignee:
            slav.babanin@mongodb.com Slav Babanin
            Reporter:
            iura.andrianov@Yandex.ru Yuri N/A
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: