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

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

Rank to TopRank to BottomVotersWatch issueWatchersConvert to sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Not A Problem
    • Affects Version/s: 11.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      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. netbeans11_sample.mp4
          1.06 MB
          Martin
        2. vscode_sample.mp4
          1.28 MB
          Martin
        3. sample.zip
          38 kB
          Martin

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              Unassigned
              Reporter:
              Meeser Martin

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment