Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2397

Java's provide ... with NOT working in maven projects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Not A Problem
    • 11.0
    • None
    • None
    • None
    • Windows10

    Description

      Please check the attached sample.

       

      The sample is working with VS Code and IntelliJ Idea.

      Also working when doing with "old school" netbeans (ant) projects.

       

      Please fix urgently!

       

      Some linker problem?

       

      --------

      Problem is

      • mavenproject1 uses I_Sample
      • mavenproject2 provides I_Sample with SampleImpl
      • mavenproject3 requires mavenproject1 and mavenproject2

       

      When you debug or run mavenproject3

      • it will call mavenproject1.Sample.load
      • since mavenproject2 is required, the serviceloader must return the loaded SampleImpl instance BUT IT DOES NOT

       

       

      Attachments

        1. sample.zip
          38 kB
          Martin
        2. vscode_sample.mp4
          1.28 MB
          Martin
        3. netbeans11_sample.mp4
          1.06 MB
          Martin

        Activity

          People

            Unassigned Unassigned
            Meeser Martin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: