JarSystemImpl should implement method hasChildren()
---------------------------------------------------
Key: JBIDE-9884
URL:
https://issues.jboss.org/browse/JBIDE-9884
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: common/jst/core
Affects Versions: 3.3.0.M3
Reporter: Viacheslav Kabanovich
Assignee: Viacheslav Kabanovich
Fix For: 3.3.0.M4
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira