Uploaded image for project: 'Modular Service Container'
  1. Modular Service Container
  2. MSC-30

ServiceName to String roundtrip issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • None
    • None
    • None

    Description

      While working on JBAS-8542 I noticed that String may be a poor representation of a ServiceName.

      Consider

      ServiceName.JBOSS.append("osgi", "framework");

      which is a pattern that we find everywhere in the AS codebase.

      ServiceName.parse("jboss.osgi.framework") would construct a ServiceName that is equivalent to
      ServiceName.JBOSS.append("osgi").append("framework"), which is not equal what I used above.

      Hence

      ServiceContainer.getService(ServiceName.parse("jboss.osgi.framework"))

      fails if the framework service was not constructed with ServiceName.JBOSS.append("osgi").append("framework")

      Attachments

        Issue Links

          Activity

            People

              tdiesler@redhat.com Thomas Diesler
              tdiesler@redhat.com Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: