You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Brice Vandeputte (JIRA)" <ji...@apache.org> on 2008/10/23 16:24:44 UTC

[jira] Created: (CXF-1883) inherited classes and attributes not generated

inherited classes and attributes not generated
----------------------------------------------

                 Key: CXF-1883
                 URL: https://issues.apache.org/jira/browse/CXF-1883
             Project: CXF
          Issue Type: Bug
          Components: JavaScript Client
    Affects Versions: 2.2
         Environment: i686 GNU/Linux - apache-cxf-2.2-SNAPSHOT 15/10/17:04
            Reporter: Brice Vandeputte


 I'm using the CXF JavaScript Client and i got a problem with extended classes and inherited attributes.
 It's like the Javascript code generated by CXF bugs with extended classes.

 Here is an example , i've got 2 classes :
		--- File Person.java :
		@XmlRootElement(name = "Person")
		public class Person {
			Long id;
			String name;
			(...getters/setters..)
		}
		--- File Expert.java :
		@XmlRootElement(name = "Expert")
		public class Expert extends Person {
			String speciality;
			(...getters/setters..)
		}
		
 An Expert(id,name,speciality) extends a Person(id,name).

 In my CXF Javascript client, i can invoke (perso JS object).getName(), but (expert JS object).getName() or (expert JS object).getSpeciality() are undefined.
 

 Here is an extract of the generated Javascript
(http://myserver:8080/CXF/HW?js):
		(...)
		//
		// Constructor for XML Schema item
{http://demo.com/}expert
		//
		function demo_com__expert () {
		    this.typeMarker = 'demo_com__expert';
		}
		(...)
		//
		// Constructor for XML Schema item
{http://demo.com/}person
		//
		function demo_com__person () {
		    this.typeMarker = 'demo_com__person';
		    this._id = null;
		    this._name = null;
		}
		(...)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CXF-1883) inherited classes and attributes not generated

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies reassigned CXF-1883:
-------------------------------------

    Assignee: Benson Margulies

> inherited classes and attributes not generated
> ----------------------------------------------
>
>                 Key: CXF-1883
>                 URL: https://issues.apache.org/jira/browse/CXF-1883
>             Project: CXF
>          Issue Type: Bug
>          Components: JavaScript Client
>    Affects Versions: 2.2
>         Environment: i686 GNU/Linux - apache-cxf-2.2-SNAPSHOT 15/10/17:04
>            Reporter: Brice Vandeputte
>            Assignee: Benson Margulies
>
>  I'm using the CXF JavaScript Client and i got a problem with extended classes and inherited attributes.
>  It's like the Javascript code generated by CXF bugs with extended classes.
>  Here is an example , i've got 2 classes :
> 		--- File Person.java :
> 		@XmlRootElement(name = "Person")
> 		public class Person {
> 			Long id;
> 			String name;
> 			(...getters/setters..)
> 		}
> 		--- File Expert.java :
> 		@XmlRootElement(name = "Expert")
> 		public class Expert extends Person {
> 			String speciality;
> 			(...getters/setters..)
> 		}
> 		
>  An Expert(id,name,speciality) extends a Person(id,name).
>  In my CXF Javascript client, i can invoke (perso JS object).getName(), but (expert JS object).getName() or (expert JS object).getSpeciality() are undefined.
>  
>  Here is an extract of the generated Javascript
> (http://myserver:8080/CXF/HW?js):
> 		(...)
> 		//
> 		// Constructor for XML Schema item
> {http://demo.com/}expert
> 		//
> 		function demo_com__expert () {
> 		    this.typeMarker = 'demo_com__expert';
> 		}
> 		(...)
> 		//
> 		// Constructor for XML Schema item
> {http://demo.com/}person
> 		//
> 		function demo_com__person () {
> 		    this.typeMarker = 'demo_com__person';
> 		    this._id = null;
> 		    this._name = null;
> 		}
> 		(...)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1883) inherited classes and attributes not generated

Posted by "Brice Vandeputte (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643198#action_12643198 ] 

Brice Vandeputte commented on CXF-1883:
---------------------------------------

Hi Benson Margulies,
here is my test : i just success today a build from SVN (cxf-2.2-SNAPSHOT  : 28/10/08 svn trunk revision number 708517) and i see no difference in the JS dynamic client generated code (ie. for expert class). So (perso JS object).setName("toto")  success, but (expert JS object).setName("toto")  dont work.
regards.
Brice

> inherited classes and attributes not generated
> ----------------------------------------------
>
>                 Key: CXF-1883
>                 URL: https://issues.apache.org/jira/browse/CXF-1883
>             Project: CXF
>          Issue Type: Bug
>          Components: JavaScript Client
>    Affects Versions: 2.2
>         Environment: i686 GNU/Linux - apache-cxf-2.2-SNAPSHOT 15/10/17:04
>            Reporter: Brice Vandeputte
>            Assignee: Benson Margulies
>             Fix For: 2.2
>
>
>  I'm using the CXF JavaScript Client and i got a problem with extended classes and inherited attributes.
>  It's like the Javascript code generated by CXF bugs with extended classes.
>  Here is an example , i've got 2 classes :
> 		--- File Person.java :
> 		@XmlRootElement(name = "Person")
> 		public class Person {
> 			Long id;
> 			String name;
> 			(...getters/setters..)
> 		}
> 		--- File Expert.java :
> 		@XmlRootElement(name = "Expert")
> 		public class Expert extends Person {
> 			String speciality;
> 			(...getters/setters..)
> 		}
> 		
>  An Expert(id,name,speciality) extends a Person(id,name).
>  In my CXF Javascript client, i can invoke (perso JS object).getName(), but (expert JS object).getName() or (expert JS object).getSpeciality() are undefined.
>  
>  Here is an extract of the generated Javascript
> (http://myserver:8080/CXF/HW?js):
> 		(...)
> 		//
> 		// Constructor for XML Schema item
> {http://demo.com/}expert
> 		//
> 		function demo_com__expert () {
> 		    this.typeMarker = 'demo_com__expert';
> 		}
> 		(...)
> 		//
> 		// Constructor for XML Schema item
> {http://demo.com/}person
> 		//
> 		function demo_com__person () {
> 		    this.typeMarker = 'demo_com__person';
> 		    this._id = null;
> 		    this._name = null;
> 		}
> 		(...)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1883) inherited classes and attributes not generated

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642654#action_12642654 ] 

Benson Margulies commented on CXF-1883:
---------------------------------------

By the way, you mentioned attributes. Those don't work \at all/ yet.

> inherited classes and attributes not generated
> ----------------------------------------------
>
>                 Key: CXF-1883
>                 URL: https://issues.apache.org/jira/browse/CXF-1883
>             Project: CXF
>          Issue Type: Bug
>          Components: JavaScript Client
>    Affects Versions: 2.2
>         Environment: i686 GNU/Linux - apache-cxf-2.2-SNAPSHOT 15/10/17:04
>            Reporter: Brice Vandeputte
>            Assignee: Benson Margulies
>
>  I'm using the CXF JavaScript Client and i got a problem with extended classes and inherited attributes.
>  It's like the Javascript code generated by CXF bugs with extended classes.
>  Here is an example , i've got 2 classes :
> 		--- File Person.java :
> 		@XmlRootElement(name = "Person")
> 		public class Person {
> 			Long id;
> 			String name;
> 			(...getters/setters..)
> 		}
> 		--- File Expert.java :
> 		@XmlRootElement(name = "Expert")
> 		public class Expert extends Person {
> 			String speciality;
> 			(...getters/setters..)
> 		}
> 		
>  An Expert(id,name,speciality) extends a Person(id,name).
>  In my CXF Javascript client, i can invoke (perso JS object).getName(), but (expert JS object).getName() or (expert JS object).getSpeciality() are undefined.
>  
>  Here is an extract of the generated Javascript
> (http://myserver:8080/CXF/HW?js):
> 		(...)
> 		//
> 		// Constructor for XML Schema item
> {http://demo.com/}expert
> 		//
> 		function demo_com__expert () {
> 		    this.typeMarker = 'demo_com__expert';
> 		}
> 		(...)
> 		//
> 		// Constructor for XML Schema item
> {http://demo.com/}person
> 		//
> 		function demo_com__person () {
> 		    this.typeMarker = 'demo_com__person';
> 		    this._id = null;
> 		    this._name = null;
> 		}
> 		(...)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1883) inherited classes and attributes not generated

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642627#action_12642627 ] 

Benson Margulies commented on CXF-1883:
---------------------------------------

I created a test case, and the immediate results is invalid Javascript! 

> inherited classes and attributes not generated
> ----------------------------------------------
>
>                 Key: CXF-1883
>                 URL: https://issues.apache.org/jira/browse/CXF-1883
>             Project: CXF
>          Issue Type: Bug
>          Components: JavaScript Client
>    Affects Versions: 2.2
>         Environment: i686 GNU/Linux - apache-cxf-2.2-SNAPSHOT 15/10/17:04
>            Reporter: Brice Vandeputte
>            Assignee: Benson Margulies
>
>  I'm using the CXF JavaScript Client and i got a problem with extended classes and inherited attributes.
>  It's like the Javascript code generated by CXF bugs with extended classes.
>  Here is an example , i've got 2 classes :
> 		--- File Person.java :
> 		@XmlRootElement(name = "Person")
> 		public class Person {
> 			Long id;
> 			String name;
> 			(...getters/setters..)
> 		}
> 		--- File Expert.java :
> 		@XmlRootElement(name = "Expert")
> 		public class Expert extends Person {
> 			String speciality;
> 			(...getters/setters..)
> 		}
> 		
>  An Expert(id,name,speciality) extends a Person(id,name).
>  In my CXF Javascript client, i can invoke (perso JS object).getName(), but (expert JS object).getName() or (expert JS object).getSpeciality() are undefined.
>  
>  Here is an extract of the generated Javascript
> (http://myserver:8080/CXF/HW?js):
> 		(...)
> 		//
> 		// Constructor for XML Schema item
> {http://demo.com/}expert
> 		//
> 		function demo_com__expert () {
> 		    this.typeMarker = 'demo_com__expert';
> 		}
> 		(...)
> 		//
> 		// Constructor for XML Schema item
> {http://demo.com/}person
> 		//
> 		function demo_com__person () {
> 		    this.typeMarker = 'demo_com__person';
> 		    this._id = null;
> 		    this._name = null;
> 		}
> 		(...)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-1883) inherited classes and attributes not generated

Posted by "Brice Vandeputte (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brice Vandeputte updated CXF-1883:
----------------------------------

    Comment: was deleted

> inherited classes and attributes not generated
> ----------------------------------------------
>
>                 Key: CXF-1883
>                 URL: https://issues.apache.org/jira/browse/CXF-1883
>             Project: CXF
>          Issue Type: Bug
>          Components: JavaScript Client
>    Affects Versions: 2.2
>         Environment: i686 GNU/Linux - apache-cxf-2.2-SNAPSHOT 15/10/17:04
>            Reporter: Brice Vandeputte
>            Assignee: Benson Margulies
>             Fix For: 2.2
>
>
>  I'm using the CXF JavaScript Client and i got a problem with extended classes and inherited attributes.
>  It's like the Javascript code generated by CXF bugs with extended classes.
>  Here is an example , i've got 2 classes :
> 		--- File Person.java :
> 		@XmlRootElement(name = "Person")
> 		public class Person {
> 			Long id;
> 			String name;
> 			(...getters/setters..)
> 		}
> 		--- File Expert.java :
> 		@XmlRootElement(name = "Expert")
> 		public class Expert extends Person {
> 			String speciality;
> 			(...getters/setters..)
> 		}
> 		
>  An Expert(id,name,speciality) extends a Person(id,name).
>  In my CXF Javascript client, i can invoke (perso JS object).getName(), but (expert JS object).getName() or (expert JS object).getSpeciality() are undefined.
>  
>  Here is an extract of the generated Javascript
> (http://myserver:8080/CXF/HW?js):
> 		(...)
> 		//
> 		// Constructor for XML Schema item
> {http://demo.com/}expert
> 		//
> 		function demo_com__expert () {
> 		    this.typeMarker = 'demo_com__expert';
> 		}
> 		(...)
> 		//
> 		// Constructor for XML Schema item
> {http://demo.com/}person
> 		//
> 		function demo_com__person () {
> 		    this.typeMarker = 'demo_com__person';
> 		    this._id = null;
> 		    this._name = null;
> 		}
> 		(...)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-1883) inherited classes and attributes not generated

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies resolved CXF-1883.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2

Fix to inherited properties is in place on the trunk.


> inherited classes and attributes not generated
> ----------------------------------------------
>
>                 Key: CXF-1883
>                 URL: https://issues.apache.org/jira/browse/CXF-1883
>             Project: CXF
>          Issue Type: Bug
>          Components: JavaScript Client
>    Affects Versions: 2.2
>         Environment: i686 GNU/Linux - apache-cxf-2.2-SNAPSHOT 15/10/17:04
>            Reporter: Brice Vandeputte
>            Assignee: Benson Margulies
>             Fix For: 2.2
>
>
>  I'm using the CXF JavaScript Client and i got a problem with extended classes and inherited attributes.
>  It's like the Javascript code generated by CXF bugs with extended classes.
>  Here is an example , i've got 2 classes :
> 		--- File Person.java :
> 		@XmlRootElement(name = "Person")
> 		public class Person {
> 			Long id;
> 			String name;
> 			(...getters/setters..)
> 		}
> 		--- File Expert.java :
> 		@XmlRootElement(name = "Expert")
> 		public class Expert extends Person {
> 			String speciality;
> 			(...getters/setters..)
> 		}
> 		
>  An Expert(id,name,speciality) extends a Person(id,name).
>  In my CXF Javascript client, i can invoke (perso JS object).getName(), but (expert JS object).getName() or (expert JS object).getSpeciality() are undefined.
>  
>  Here is an extract of the generated Javascript
> (http://myserver:8080/CXF/HW?js):
> 		(...)
> 		//
> 		// Constructor for XML Schema item
> {http://demo.com/}expert
> 		//
> 		function demo_com__expert () {
> 		    this.typeMarker = 'demo_com__expert';
> 		}
> 		(...)
> 		//
> 		// Constructor for XML Schema item
> {http://demo.com/}person
> 		//
> 		function demo_com__person () {
> 		    this.typeMarker = 'demo_com__person';
> 		    this._id = null;
> 		    this._name = null;
> 		}
> 		(...)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1883) inherited classes and attributes not generated

Posted by "Brice Vandeputte (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643201#action_12643201 ] 

Brice Vandeputte commented on CXF-1883:
---------------------------------------

Hi Benson Margulies, 
i just success a build from svn (cxf-2.2-SNAPSHOT svn trunk revision number 708 517); so after some test, i see a correct extended class definition and attributes. 

here is the new sample :
(...)
  //
  // Constructor for XML Schema item {http://demo.com/}expert
  //
  function demo_com__expert () {
      this.typeMarker = 'demo_com__expert';
      this._id = null;
      this._name = null;
      this._speciality = null;
  }
(...)

thanks a lot :o)
regards
Brice Vandeputte

> inherited classes and attributes not generated
> ----------------------------------------------
>
>                 Key: CXF-1883
>                 URL: https://issues.apache.org/jira/browse/CXF-1883
>             Project: CXF
>          Issue Type: Bug
>          Components: JavaScript Client
>    Affects Versions: 2.2
>         Environment: i686 GNU/Linux - apache-cxf-2.2-SNAPSHOT 15/10/17:04
>            Reporter: Brice Vandeputte
>            Assignee: Benson Margulies
>             Fix For: 2.2
>
>
>  I'm using the CXF JavaScript Client and i got a problem with extended classes and inherited attributes.
>  It's like the Javascript code generated by CXF bugs with extended classes.
>  Here is an example , i've got 2 classes :
> 		--- File Person.java :
> 		@XmlRootElement(name = "Person")
> 		public class Person {
> 			Long id;
> 			String name;
> 			(...getters/setters..)
> 		}
> 		--- File Expert.java :
> 		@XmlRootElement(name = "Expert")
> 		public class Expert extends Person {
> 			String speciality;
> 			(...getters/setters..)
> 		}
> 		
>  An Expert(id,name,speciality) extends a Person(id,name).
>  In my CXF Javascript client, i can invoke (perso JS object).getName(), but (expert JS object).getName() or (expert JS object).getSpeciality() are undefined.
>  
>  Here is an extract of the generated Javascript
> (http://myserver:8080/CXF/HW?js):
> 		(...)
> 		//
> 		// Constructor for XML Schema item
> {http://demo.com/}expert
> 		//
> 		function demo_com__expert () {
> 		    this.typeMarker = 'demo_com__expert';
> 		}
> 		(...)
> 		//
> 		// Constructor for XML Schema item
> {http://demo.com/}person
> 		//
> 		function demo_com__person () {
> 		    this.typeMarker = 'demo_com__person';
> 		    this._id = null;
> 		    this._name = null;
> 		}
> 		(...)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1883) inherited classes and attributes not generated

Posted by "Brice Vandeputte (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642905#action_12642905 ] 

Brice Vandeputte commented on CXF-1883:
---------------------------------------

I'm currently trying to build cxf from svn (1st time for me)...

> inherited classes and attributes not generated
> ----------------------------------------------
>
>                 Key: CXF-1883
>                 URL: https://issues.apache.org/jira/browse/CXF-1883
>             Project: CXF
>          Issue Type: Bug
>          Components: JavaScript Client
>    Affects Versions: 2.2
>         Environment: i686 GNU/Linux - apache-cxf-2.2-SNAPSHOT 15/10/17:04
>            Reporter: Brice Vandeputte
>            Assignee: Benson Margulies
>             Fix For: 2.2
>
>
>  I'm using the CXF JavaScript Client and i got a problem with extended classes and inherited attributes.
>  It's like the Javascript code generated by CXF bugs with extended classes.
>  Here is an example , i've got 2 classes :
> 		--- File Person.java :
> 		@XmlRootElement(name = "Person")
> 		public class Person {
> 			Long id;
> 			String name;
> 			(...getters/setters..)
> 		}
> 		--- File Expert.java :
> 		@XmlRootElement(name = "Expert")
> 		public class Expert extends Person {
> 			String speciality;
> 			(...getters/setters..)
> 		}
> 		
>  An Expert(id,name,speciality) extends a Person(id,name).
>  In my CXF Javascript client, i can invoke (perso JS object).getName(), but (expert JS object).getName() or (expert JS object).getSpeciality() are undefined.
>  
>  Here is an extract of the generated Javascript
> (http://myserver:8080/CXF/HW?js):
> 		(...)
> 		//
> 		// Constructor for XML Schema item
> {http://demo.com/}expert
> 		//
> 		function demo_com__expert () {
> 		    this.typeMarker = 'demo_com__expert';
> 		}
> 		(...)
> 		//
> 		// Constructor for XML Schema item
> {http://demo.com/}person
> 		//
> 		function demo_com__person () {
> 		    this.typeMarker = 'demo_com__person';
> 		    this._id = null;
> 		    this._name = null;
> 		}
> 		(...)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1883) inherited classes and attributes not generated

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642653#action_12642653 ] 

Benson Margulies commented on CXF-1883:
---------------------------------------

I just checked in something for this that I don't really entirely believe. It does NOT set up inheritance in Javascript, but it does arrange for the derived class to have all the inherited attributes.

Can you build from svn and try it? If not, I'll make a snapshot after I code some tests that improve my belief level.


> inherited classes and attributes not generated
> ----------------------------------------------
>
>                 Key: CXF-1883
>                 URL: https://issues.apache.org/jira/browse/CXF-1883
>             Project: CXF
>          Issue Type: Bug
>          Components: JavaScript Client
>    Affects Versions: 2.2
>         Environment: i686 GNU/Linux - apache-cxf-2.2-SNAPSHOT 15/10/17:04
>            Reporter: Brice Vandeputte
>            Assignee: Benson Margulies
>
>  I'm using the CXF JavaScript Client and i got a problem with extended classes and inherited attributes.
>  It's like the Javascript code generated by CXF bugs with extended classes.
>  Here is an example , i've got 2 classes :
> 		--- File Person.java :
> 		@XmlRootElement(name = "Person")
> 		public class Person {
> 			Long id;
> 			String name;
> 			(...getters/setters..)
> 		}
> 		--- File Expert.java :
> 		@XmlRootElement(name = "Expert")
> 		public class Expert extends Person {
> 			String speciality;
> 			(...getters/setters..)
> 		}
> 		
>  An Expert(id,name,speciality) extends a Person(id,name).
>  In my CXF Javascript client, i can invoke (perso JS object).getName(), but (expert JS object).getName() or (expert JS object).getSpeciality() are undefined.
>  
>  Here is an extract of the generated Javascript
> (http://myserver:8080/CXF/HW?js):
> 		(...)
> 		//
> 		// Constructor for XML Schema item
> {http://demo.com/}expert
> 		//
> 		function demo_com__expert () {
> 		    this.typeMarker = 'demo_com__expert';
> 		}
> 		(...)
> 		//
> 		// Constructor for XML Schema item
> {http://demo.com/}person
> 		//
> 		function demo_com__person () {
> 		    this.typeMarker = 'demo_com__person';
> 		    this._id = null;
> 		    this._name = null;
> 		}
> 		(...)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.