[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Updated: (XMLBEANS-48) Bug with Root.fetch ( Splay parent, QName name, QNameSet set, int n )
From:       xmlbeans-dev () xml ! apache ! org
Date:       2004-08-12 17:57:41
Message-ID: 122068914.1092333461548.JavaMail.apache () nagoya
[Download RAW message or body]

The following issue has been updated:

    Updater: Sal Campana (mailto:sal.campana@hp.com)
       Date: Thu, 12 Aug 2004 10:57 AM
    Changes:
             Attachment changed to MUWS.wsdl
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/XMLBEANS-48?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XMLBEANS-48

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XMLBEANS-48
    Summary: Bug with Root.fetch ( Splay parent, QName name, QNameSet set, int n )
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: XMLBeans

   Assignee: 
   Reporter: Sal Campana

    Created: Thu, 12 Aug 2004 10:55 AM
    Updated: Thu, 12 Aug 2004 10:57 AM

Description:
I've attached a simple example of an issue I am seeing.  This is in the v1 \
codebase...Have not check v2 (assuming the same)  
Basically I cannot get the value of a child element via the generated getter:
 
 
        StateInformation resourceState = resState.getResourceState();
        //should return a string...
        String state = resourceState.getState();
        System.out.println("State: " + state);//null!
 
What I see in the debugger is:
 
Root.fetch ( ...)
...
 (line 3314)case BEGIN :
               if (nameHit( name, set, s.getName() ))
               {
                       _child = s;
                       _n = 0;
                       break loop;
                }
                //This is the issue in this context...In this case it should continue \
in the loop, not set to "finish"  s = s.getFinishSplay();
                 break;
...
 
So when we get the BEGIN case, the s.getName() is ResourceState and "name" is \
"State".  The name I am looking for is State (child of ResourceState).  Since the \
names do not match the call to "s = s.getFinishSplay()" sets the Splay to the end of \
the element.  Then the loop moves on past that element....Maybe it thinks it's the \
child element and not the root??  
Had "s = s.getFinishSplay()" not been called, then the next time through the loop \
(Splay s = parent.nextSplay()) would get the Splay named "State" and the names would \
match and everything would be happy.....  
The example code and generated types can be used to produce the problem....



---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic