[JBoss JIRA] (JBIDE-9884) JarSystemImpl should implement method hasChildren()
by Viacheslav Kabanovich (Created) (JIRA)
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
12 years, 3 months
[JBoss JIRA] Created: (JBIDE-8435) JPA: validation of generic generator strategy class uses Arrays.binarySearch for non-sorted string array
by Dmitry Geraskov (JIRA)
JPA: validation of generic generator strategy class uses Arrays.binarySearch for non-sorted string array
--------------------------------------------------------------------------------------------------------
Key: JBIDE-8435
URL: https://issues.jboss.org/browse/JBIDE-8435
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Hibernate
Affects Versions: 3.2.0.CR1
Reporter: Dmitry Geraskov
Assignee: Dmitry Geraskov
Fix For: 3.3.x
The validator could add wrong error messages
Test case:
1. Create <generator_class> class which implements several interfaces and "org.hibernate.id.IdentifierGenerator"
1. create @GenericGenerator(strategy="<generator_class>")
2. where generator class
3. change places of the interfaces and the error will occur
FAILURE: wrong error appeared
Also it check only direct(or superclasses) interfaces
Test case2:
1. create interface MyInterface implements "org.hibernate.id.IdentifierGenerator"
2. create @GenericGenerator(strategy="<generator_class>")
3. where <generator_class> is a class which implements interface MyInterface
FAILURE: wrong error appeared
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months