You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "dror (JIRA)" <ji...@apache.org> on 2006/07/02 17:20:29 UTC
[jira] Created: (JXPATH-69) JXPath doesn't properly search for
XBeanInfo defined for a parent class.
JXPath doesn't properly search for XBeanInfo defined for a parent class.
------------------------------------------------------------------------
Key: JXPATH-69
URL: http://issues.apache.org/jira/browse/JXPATH-69
Project: Commons JXPath
Type: Bug
Environment: java 1.5, WinXP
Reporter: dror
class A { ... }
class B extends A { ... }
class AXBeanInfo implmements JXPathBeanInfo { ... }
Now if I try to
JXPathContext.newContext( new B() )
it will fail to read the XBeanInfo of the base class (A), and will use simplebeaninfo instead.
if instead I first do
JXPathContext.newContext( new A() )
and then do the
JXPathContext.newContext( new B() )
it will work.
(it will probably work if A implemented the JXPathBeanInfo interface by itself, but I don't want it to require that. my current workarround is to do the above dummy context initialization)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Resolved: (JXPATH-69) JXPath doesn't properly search for
XBeanInfo defined for a parent class.
Posted by "Matt Benson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JXPATH-69?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Benson resolved JXPATH-69.
-------------------------------
Resolution: Invalid
Fix Version/s: 1.2 Final
In order for B to use A's custom JXPathBeanInfo you should merely have to make the following call:
JXPathIntrospector.registerDynamicClass(A.class, AXBeanInfo.class);
> JXPath doesn't properly search for XBeanInfo defined for a parent class.
> ------------------------------------------------------------------------
>
> Key: JXPATH-69
> URL: https://issues.apache.org/jira/browse/JXPATH-69
> Project: Commons JXPath
> Issue Type: Bug
> Environment: java 1.5, WinXP
> Reporter: dror
> Fix For: 1.2 Final
>
>
> class A { ... }
> class B extends A { ... }
> class AXBeanInfo implmements JXPathBeanInfo { ... }
> Now if I try to
> JXPathContext.newContext( new B() )
> it will fail to read the XBeanInfo of the base class (A), and will use simplebeaninfo instead.
> if instead I first do
> JXPathContext.newContext( new A() )
> and then do the
> JXPathContext.newContext( new B() )
> it will work.
> (it will probably work if A implemented the JXPathBeanInfo interface by itself, but I don't want it to require that. my current workarround is to do the above dummy context initialization)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Commented: (JXPATH-69) JXPath doesn't properly search for
XBeanInfo defined for a parent class.
Posted by "Matt Benson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JXPATH-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463073 ]
Matt Benson commented on JXPATH-69:
-----------------------------------
It'd be helpful if you could attach concrete examples of what you're doing. Thanks!
> JXPath doesn't properly search for XBeanInfo defined for a parent class.
> ------------------------------------------------------------------------
>
> Key: JXPATH-69
> URL: https://issues.apache.org/jira/browse/JXPATH-69
> Project: Commons JXPath
> Issue Type: Bug
> Environment: java 1.5, WinXP
> Reporter: dror
>
> class A { ... }
> class B extends A { ... }
> class AXBeanInfo implmements JXPathBeanInfo { ... }
> Now if I try to
> JXPathContext.newContext( new B() )
> it will fail to read the XBeanInfo of the base class (A), and will use simplebeaninfo instead.
> if instead I first do
> JXPathContext.newContext( new A() )
> and then do the
> JXPathContext.newContext( new B() )
> it will work.
> (it will probably work if A implemented the JXPathBeanInfo interface by itself, but I don't want it to require that. my current workarround is to do the above dummy context initialization)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org