Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9884

JarSystemImpl should implement method hasChildren()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.M4
    • 3.3.0.M3
    • common
    • None

      When a jar is included in classpath of many projects, XModel only creates one new handle for the jar in each project, but content is shared and loaded only once. That was provided by overloaded method getChildren(). However, method hasChildren() remained inherited and cannot work correctly for handle objects that obtain shared children instead of loading them.
      Use-case that demonstrates this issue, can be taken in CDI Seam International extension.
      EXECUTE: Create two or more CDI projects with CDI Seam International extension (seam-international.jar).
      EXECUTE: In each project, create a Java class declaring a String field assigned to a string "#

      {bundles.}

      ". Invoke content assist after the dot.
      ASSERT: A lot of suggestions appear including 'bundles.com.sun.corba.se.impl.logging.LogStrings' - they come from 'resources.jar' in JRE. (Note: If we decide to hide these bundles, then any custom jar with bundles should be referenced by classpath of each project.)

      FAILURE: Suggestions appear only in one of projects, and are missing in all others.

            scabanovich Viacheslav Kabanovich (Inactive)
            scabanovich Viacheslav Kabanovich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: