You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Sean Qiu (JIRA)" <ji...@apache.org> on 2007/08/06 12:05:59 UTC
[jira] Created: (HARMONY-4602) [classlib][beans]
Introspector.getBeanInfo(Class) will get wrong BeanInfo when there are same
classes in different package.
[classlib][beans] Introspector.getBeanInfo(Class) will get wrong BeanInfo when there are same classes in different package.
---------------------------------------------------------------------------------------------------------------------------
Key: HARMONY-4602
URL: https://issues.apache.org/jira/browse/HARMONY-4602
Project: Harmony
Issue Type: Bug
Components: Classlib
Reporter: Sean Qiu
After set more than one path in Introspector.setBeanInfoSearchPath(String[]),
if there are some classes with the same class name but in different package,
Introspector.getBeanInfo(Class) will get wrong BeanInfo.
The getBeanInfo will return the BeanInfo of the first found class regardless with its package.
===== Test ======
public class IntrospectorTest extends TestCase {
public void testsetBeanInfoSearchPath() throws IntrospectionException {
Introspector.setBeanInfoSearchPath(new String[] {
"mockbeans2.info",
"mockbeans1.info", });
BeanInfo beanInfo = Introspector.getBeanInfo(MockSubject.class);
BeanDescriptor beanDesc = beanInfo.getBeanDescriptor();
assertEquals(beanDesc.getName(), "mockbeans1");
assertEquals(beanDesc.getBeanClass(), MockSubject.class);
}
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-4602) [classlib][beans]
Introspector.getBeanInfo(Class) will get wrong BeanInfo when there are same
classes in different package.
Posted by "Kevin Zhou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Zhou updated HARMONY-4602:
--------------------------------
Attachment: Harmony-4602.diff
I have a patch for this defect.
Would you please try it?
> [classlib][beans] Introspector.getBeanInfo(Class) will get wrong BeanInfo when there are same classes in different package.
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-4602
> URL: https://issues.apache.org/jira/browse/HARMONY-4602
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Sean Qiu
> Assignee: Leo Li
> Attachments: beanstest.zip, Harmony-4602.diff
>
>
> After set more than one path in Introspector.setBeanInfoSearchPath(String[]),
> if there are some classes with the same class name but in different package,
> Introspector.getBeanInfo(Class) will get wrong BeanInfo.
> The getBeanInfo will return the BeanInfo of the first found class regardless with its package.
> ===== Test ======
> public class IntrospectorTest extends TestCase {
> public void testsetBeanInfoSearchPath() throws IntrospectionException {
> Introspector.setBeanInfoSearchPath(new String[] {
> "mockbeans2.info",
> "mockbeans1.info", });
> BeanInfo beanInfo = Introspector.getBeanInfo(MockSubject.class);
> BeanDescriptor beanDesc = beanInfo.getBeanDescriptor();
> assertEquals(beanDesc.getName(), "mockbeans1");
> assertEquals(beanDesc.getBeanClass(), MockSubject.class);
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HARMONY-4602) [classlib][beans]
Introspector.getBeanInfo(Class) will get wrong BeanInfo when there are same
classes in different package.
Posted by "Sean Qiu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Qiu reassigned HARMONY-4602:
---------------------------------
Assignee: Sean Qiu (was: Leo Li)
> [classlib][beans] Introspector.getBeanInfo(Class) will get wrong BeanInfo when there are same classes in different package.
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-4602
> URL: https://issues.apache.org/jira/browse/HARMONY-4602
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Sean Qiu
> Assignee: Sean Qiu
> Attachments: beanstest.zip, Harmony-4602.diff
>
>
> After set more than one path in Introspector.setBeanInfoSearchPath(String[]),
> if there are some classes with the same class name but in different package,
> Introspector.getBeanInfo(Class) will get wrong BeanInfo.
> The getBeanInfo will return the BeanInfo of the first found class regardless with its package.
> ===== Test ======
> public class IntrospectorTest extends TestCase {
> public void testsetBeanInfoSearchPath() throws IntrospectionException {
> Introspector.setBeanInfoSearchPath(new String[] {
> "mockbeans2.info",
> "mockbeans1.info", });
> BeanInfo beanInfo = Introspector.getBeanInfo(MockSubject.class);
> BeanDescriptor beanDesc = beanInfo.getBeanDescriptor();
> assertEquals(beanDesc.getName(), "mockbeans1");
> assertEquals(beanDesc.getBeanClass(), MockSubject.class);
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HARMONY-4602) [classlib][beans]
Introspector.getBeanInfo(Class) will get wrong BeanInfo when there are same
classes in different package.
Posted by "Leo Li (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leo Li reassigned HARMONY-4602:
-------------------------------
Assignee: Leo Li
> [classlib][beans] Introspector.getBeanInfo(Class) will get wrong BeanInfo when there are same classes in different package.
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-4602
> URL: https://issues.apache.org/jira/browse/HARMONY-4602
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Sean Qiu
> Assignee: Leo Li
> Attachments: beanstest.zip
>
>
> After set more than one path in Introspector.setBeanInfoSearchPath(String[]),
> if there are some classes with the same class name but in different package,
> Introspector.getBeanInfo(Class) will get wrong BeanInfo.
> The getBeanInfo will return the BeanInfo of the first found class regardless with its package.
> ===== Test ======
> public class IntrospectorTest extends TestCase {
> public void testsetBeanInfoSearchPath() throws IntrospectionException {
> Introspector.setBeanInfoSearchPath(new String[] {
> "mockbeans2.info",
> "mockbeans1.info", });
> BeanInfo beanInfo = Introspector.getBeanInfo(MockSubject.class);
> BeanDescriptor beanDesc = beanInfo.getBeanDescriptor();
> assertEquals(beanDesc.getName(), "mockbeans1");
> assertEquals(beanDesc.getBeanClass(), MockSubject.class);
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HARMONY-4602) [classlib][beans]
Introspector.getBeanInfo(Class) will get wrong BeanInfo when there are same
classes in different package.
Posted by "Sean Qiu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Qiu resolved HARMONY-4602.
-------------------------------
Resolution: Fixed
Fix Version/s: 5.0M9
Thank you for the patch.
Applied in r728612, please verify if it works as you expected.
> [classlib][beans] Introspector.getBeanInfo(Class) will get wrong BeanInfo when there are same classes in different package.
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-4602
> URL: https://issues.apache.org/jira/browse/HARMONY-4602
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Sean Qiu
> Assignee: Sean Qiu
> Fix For: 5.0M9
>
> Attachments: beanstest.zip, Harmony-4602.diff
>
>
> After set more than one path in Introspector.setBeanInfoSearchPath(String[]),
> if there are some classes with the same class name but in different package,
> Introspector.getBeanInfo(Class) will get wrong BeanInfo.
> The getBeanInfo will return the BeanInfo of the first found class regardless with its package.
> ===== Test ======
> public class IntrospectorTest extends TestCase {
> public void testsetBeanInfoSearchPath() throws IntrospectionException {
> Introspector.setBeanInfoSearchPath(new String[] {
> "mockbeans2.info",
> "mockbeans1.info", });
> BeanInfo beanInfo = Introspector.getBeanInfo(MockSubject.class);
> BeanDescriptor beanDesc = beanInfo.getBeanDescriptor();
> assertEquals(beanDesc.getName(), "mockbeans1");
> assertEquals(beanDesc.getBeanClass(), MockSubject.class);
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-4602) [classlib][beans]
Introspector.getBeanInfo(Class) will get wrong BeanInfo when there are same
classes in different package.
Posted by "Sean Qiu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Qiu updated HARMONY-4602:
------------------------------
Attachment: beanstest.zip
This is the test code
> [classlib][beans] Introspector.getBeanInfo(Class) will get wrong BeanInfo when there are same classes in different package.
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-4602
> URL: https://issues.apache.org/jira/browse/HARMONY-4602
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Sean Qiu
> Attachments: beanstest.zip
>
>
> After set more than one path in Introspector.setBeanInfoSearchPath(String[]),
> if there are some classes with the same class name but in different package,
> Introspector.getBeanInfo(Class) will get wrong BeanInfo.
> The getBeanInfo will return the BeanInfo of the first found class regardless with its package.
> ===== Test ======
> public class IntrospectorTest extends TestCase {
> public void testsetBeanInfoSearchPath() throws IntrospectionException {
> Introspector.setBeanInfoSearchPath(new String[] {
> "mockbeans2.info",
> "mockbeans1.info", });
> BeanInfo beanInfo = Introspector.getBeanInfo(MockSubject.class);
> BeanDescriptor beanDesc = beanInfo.getBeanDescriptor();
> assertEquals(beanDesc.getName(), "mockbeans1");
> assertEquals(beanDesc.getBeanClass(), MockSubject.class);
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (HARMONY-4602) [classlib][beans]
Introspector.getBeanInfo(Class) will get wrong BeanInfo when there are same
classes in different package.
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Ellison closed HARMONY-4602.
--------------------------------
No response, assuming ok.
> [classlib][beans] Introspector.getBeanInfo(Class) will get wrong BeanInfo when there are same classes in different package.
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-4602
> URL: https://issues.apache.org/jira/browse/HARMONY-4602
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Sean Qiu
> Assignee: Sean Qiu
> Fix For: 5.0M9
>
> Attachments: beanstest.zip, Harmony-4602.diff
>
>
> After set more than one path in Introspector.setBeanInfoSearchPath(String[]),
> if there are some classes with the same class name but in different package,
> Introspector.getBeanInfo(Class) will get wrong BeanInfo.
> The getBeanInfo will return the BeanInfo of the first found class regardless with its package.
> ===== Test ======
> public class IntrospectorTest extends TestCase {
> public void testsetBeanInfoSearchPath() throws IntrospectionException {
> Introspector.setBeanInfoSearchPath(new String[] {
> "mockbeans2.info",
> "mockbeans1.info", });
> BeanInfo beanInfo = Introspector.getBeanInfo(MockSubject.class);
> BeanDescriptor beanDesc = beanInfo.getBeanDescriptor();
> assertEquals(beanDesc.getName(), "mockbeans1");
> assertEquals(beanDesc.getBeanClass(), MockSubject.class);
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.