You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Cezary Tkaczyk (JIRA)" <tu...@ws.apache.org> on 2007/10/17 13:52:50 UTC

[jira] Created: (TUSCANY-1853) XSD2JavaGenerator generates Java identifier with dots

XSD2JavaGenerator generates Java identifier with dots
-----------------------------------------------------

                 Key: TUSCANY-1853
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1853
             Project: Tuscany
          Issue Type: Bug
          Components: Java SDO Tools
    Affects Versions: Java-SDO-1.0
         Environment: Windows XP, jre 1.5
            Reporter: Cezary Tkaczyk


Hello,

While I'm trying to compile generated by XSD2JavaGenerator Java classes, I've got such an error:
    
    [javac] C:\projekty\eclipse-workspace-rbpl-sdo-1.0\REB-Catalog-SDO-Java\src-autogen\pl\esb\impl\EsbFactoryImpl.java:169: ';' expected
    [javac]     pl.esb.blm.adapter.AdapterFactory pl.esb.blm.adapter.AdapterFactoryInstance = pl.esb.blm.adapter.AdapterFactory.INSTANCE;
    [javac]                                                    ^
 
The problem is: variable identifier cannot contain dots.
The place, where this error appears looks like this:

public static EsbFactoryImpl init()
  {
    if (instance != null ) return instance;
    instance = new EsbFactoryImpl();

    // Initialize dependent packages
    AdapterFactory AdapterFactoryInstance = AdapterFactory.INSTANCE;
    RebFactory RebFactoryInstance = RebFactory.INSTANCE;
    pl.raiffeisen.esb.blm.adapter.AdapterFactory pl.raiffeisen.esb.blm.adapter.AdapterFactoryInstance = pl.raiffeisen.esb.blm.adapter.AdapterFactory.INSTANCE;
    
    // Create package meta-data objects
    instance.createMetaData();

    // Initialize created meta-data
    instance.initializeMetaData();
    
    // Mark meta-data to indicate it can't be changed
    //theEsbFactoryImpl.freeze(); //FB do we need to freeze / should we freeze ????

    return instance;
  }

I think the problem is that I have two namespaces of the same suffix:
http://www.esb.pl/blm/adapter
http://www.esb.pl/ods1/adapter
So, generator is trying to avoid the problem creating unique variable name: pl.esb.blm.adapter.AdapterFactoryInstance
Unfortunately, this is not valid identifier.


Kind Regards,
Czarek


-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1853) XSD2JavaGenerator generates Java identifier with dots

Posted by "Frank Budinsky (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535581 ] 

Frank Budinsky commented on TUSCANY-1853:
-----------------------------------------

Hi Czarek, This looks familiar, I think we may have fixed it already. Can you try the latest from trunk and see if you still experience problems. Thanks.

> XSD2JavaGenerator generates Java identifier with dots
> -----------------------------------------------------
>
>                 Key: TUSCANY-1853
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1853
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-1.0
>         Environment: Windows XP, jre 1.5
>            Reporter: Cezary Tkaczyk
>
> Hello,
> While I'm trying to compile generated by XSD2JavaGenerator Java classes, I've got such an error:
>     
>     [javac] C:\projekty\eclipse-workspace-rbpl-sdo-1.0\REB-Catalog-SDO-Java\src-autogen\pl\esb\impl\EsbFactoryImpl.java:169: ';' expected
>     [javac]     pl.esb.blm.adapter.AdapterFactory pl.esb.blm.adapter.AdapterFactoryInstance = pl.esb.blm.adapter.AdapterFactory.INSTANCE;
>     [javac]                                                    ^
>  
> The problem is: variable identifier cannot contain dots.
> The place, where this error appears looks like this:
> public static EsbFactoryImpl init()
>   {
>     if (instance != null ) return instance;
>     instance = new EsbFactoryImpl();
>     // Initialize dependent packages
>     AdapterFactory AdapterFactoryInstance = AdapterFactory.INSTANCE;
>     RebFactory RebFactoryInstance = RebFactory.INSTANCE;
>     pl.raiffeisen.esb.blm.adapter.AdapterFactory pl.raiffeisen.esb.blm.adapter.AdapterFactoryInstance = pl.raiffeisen.esb.blm.adapter.AdapterFactory.INSTANCE;
>     
>     // Create package meta-data objects
>     instance.createMetaData();
>     // Initialize created meta-data
>     instance.initializeMetaData();
>     
>     // Mark meta-data to indicate it can't be changed
>     //theEsbFactoryImpl.freeze(); //FB do we need to freeze / should we freeze ????
>     return instance;
>   }
> I think the problem is that I have two namespaces of the same suffix:
> http://www.esb.pl/blm/adapter
> http://www.esb.pl/ods1/adapter
> So, generator is trying to avoid the problem creating unique variable name: pl.esb.blm.adapter.AdapterFactoryInstance
> Unfortunately, this is not valid identifier.
> Kind Regards,
> Czarek

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Closed: (TUSCANY-1853) XSD2JavaGenerator generates Java identifier with dots

Posted by "Cezary Tkaczyk (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cezary Tkaczyk closed TUSCANY-1853.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: Java-SDO-Next

The snapshot version works fine. Sorry, I haven't checked it out, before creating a bug. I had trouble building a snapshot - sdo-tools tests failure. Omission of these tests leads to successful build.

> XSD2JavaGenerator generates Java identifier with dots
> -----------------------------------------------------
>
>                 Key: TUSCANY-1853
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1853
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-1.0
>         Environment: Windows XP, jre 1.5
>            Reporter: Cezary Tkaczyk
>             Fix For: Java-SDO-Next
>
>
> Hello,
> While I'm trying to compile generated by XSD2JavaGenerator Java classes, I've got such an error:
>     
>     [javac] C:\projekty\eclipse-workspace-rbpl-sdo-1.0\REB-Catalog-SDO-Java\src-autogen\pl\esb\impl\EsbFactoryImpl.java:169: ';' expected
>     [javac]     pl.esb.blm.adapter.AdapterFactory pl.esb.blm.adapter.AdapterFactoryInstance = pl.esb.blm.adapter.AdapterFactory.INSTANCE;
>     [javac]                                                    ^
>  
> The problem is: variable identifier cannot contain dots.
> The place, where this error appears looks like this:
> public static EsbFactoryImpl init()
>   {
>     if (instance != null ) return instance;
>     instance = new EsbFactoryImpl();
>     // Initialize dependent packages
>     AdapterFactory AdapterFactoryInstance = AdapterFactory.INSTANCE;
>     RebFactory RebFactoryInstance = RebFactory.INSTANCE;
>     pl.raiffeisen.esb.blm.adapter.AdapterFactory pl.raiffeisen.esb.blm.adapter.AdapterFactoryInstance = pl.raiffeisen.esb.blm.adapter.AdapterFactory.INSTANCE;
>     
>     // Create package meta-data objects
>     instance.createMetaData();
>     // Initialize created meta-data
>     instance.initializeMetaData();
>     
>     // Mark meta-data to indicate it can't be changed
>     //theEsbFactoryImpl.freeze(); //FB do we need to freeze / should we freeze ????
>     return instance;
>   }
> I think the problem is that I have two namespaces of the same suffix:
> http://www.esb.pl/blm/adapter
> http://www.esb.pl/ods1/adapter
> So, generator is trying to avoid the problem creating unique variable name: pl.esb.blm.adapter.AdapterFactoryInstance
> Unfortunately, this is not valid identifier.
> Kind Regards,
> Czarek

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1853) XSD2JavaGenerator generates Java identifier with dots

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536641 ] 

Kelvin Goodson commented on TUSCANY-1853:
-----------------------------------------

Hi Czarek,  I'm just looking at what to do with this JIRA on the basis of Frank's comment above. Could you let us know what version of SDO you are running please?  Perhaps if the issue turns out to be not already fixed you could also attach a schema demonstrating the issue.

> XSD2JavaGenerator generates Java identifier with dots
> -----------------------------------------------------
>
>                 Key: TUSCANY-1853
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1853
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-1.0
>         Environment: Windows XP, jre 1.5
>            Reporter: Cezary Tkaczyk
>
> Hello,
> While I'm trying to compile generated by XSD2JavaGenerator Java classes, I've got such an error:
>     
>     [javac] C:\projekty\eclipse-workspace-rbpl-sdo-1.0\REB-Catalog-SDO-Java\src-autogen\pl\esb\impl\EsbFactoryImpl.java:169: ';' expected
>     [javac]     pl.esb.blm.adapter.AdapterFactory pl.esb.blm.adapter.AdapterFactoryInstance = pl.esb.blm.adapter.AdapterFactory.INSTANCE;
>     [javac]                                                    ^
>  
> The problem is: variable identifier cannot contain dots.
> The place, where this error appears looks like this:
> public static EsbFactoryImpl init()
>   {
>     if (instance != null ) return instance;
>     instance = new EsbFactoryImpl();
>     // Initialize dependent packages
>     AdapterFactory AdapterFactoryInstance = AdapterFactory.INSTANCE;
>     RebFactory RebFactoryInstance = RebFactory.INSTANCE;
>     pl.raiffeisen.esb.blm.adapter.AdapterFactory pl.raiffeisen.esb.blm.adapter.AdapterFactoryInstance = pl.raiffeisen.esb.blm.adapter.AdapterFactory.INSTANCE;
>     
>     // Create package meta-data objects
>     instance.createMetaData();
>     // Initialize created meta-data
>     instance.initializeMetaData();
>     
>     // Mark meta-data to indicate it can't be changed
>     //theEsbFactoryImpl.freeze(); //FB do we need to freeze / should we freeze ????
>     return instance;
>   }
> I think the problem is that I have two namespaces of the same suffix:
> http://www.esb.pl/blm/adapter
> http://www.esb.pl/ods1/adapter
> So, generator is trying to avoid the problem creating unique variable name: pl.esb.blm.adapter.AdapterFactoryInstance
> Unfortunately, this is not valid identifier.
> Kind Regards,
> Czarek

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1853) XSD2JavaGenerator generates Java identifier with dots

Posted by "Amita Vadhavkar (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amita Vadhavkar updated TUSCANY-1853:
-------------------------------------

    Fix Version/s:     (was: Java-SDO-Next)
                   Java-SDO-1.1

> XSD2JavaGenerator generates Java identifier with dots
> -----------------------------------------------------
>
>                 Key: TUSCANY-1853
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1853
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-1.0
>         Environment: Windows XP, jre 1.5
>            Reporter: Cezary Tkaczyk
>             Fix For: Java-SDO-1.1
>
>
> Hello,
> While I'm trying to compile generated by XSD2JavaGenerator Java classes, I've got such an error:
>     
>     [javac] C:\projekty\eclipse-workspace-rbpl-sdo-1.0\REB-Catalog-SDO-Java\src-autogen\pl\esb\impl\EsbFactoryImpl.java:169: ';' expected
>     [javac]     pl.esb.blm.adapter.AdapterFactory pl.esb.blm.adapter.AdapterFactoryInstance = pl.esb.blm.adapter.AdapterFactory.INSTANCE;
>     [javac]                                                    ^
>  
> The problem is: variable identifier cannot contain dots.
> The place, where this error appears looks like this:
> public static EsbFactoryImpl init()
>   {
>     if (instance != null ) return instance;
>     instance = new EsbFactoryImpl();
>     // Initialize dependent packages
>     AdapterFactory AdapterFactoryInstance = AdapterFactory.INSTANCE;
>     RebFactory RebFactoryInstance = RebFactory.INSTANCE;
>     pl.raiffeisen.esb.blm.adapter.AdapterFactory pl.raiffeisen.esb.blm.adapter.AdapterFactoryInstance = pl.raiffeisen.esb.blm.adapter.AdapterFactory.INSTANCE;
>     
>     // Create package meta-data objects
>     instance.createMetaData();
>     // Initialize created meta-data
>     instance.initializeMetaData();
>     
>     // Mark meta-data to indicate it can't be changed
>     //theEsbFactoryImpl.freeze(); //FB do we need to freeze / should we freeze ????
>     return instance;
>   }
> I think the problem is that I have two namespaces of the same suffix:
> http://www.esb.pl/blm/adapter
> http://www.esb.pl/ods1/adapter
> So, generator is trying to avoid the problem creating unique variable name: pl.esb.blm.adapter.AdapterFactoryInstance
> Unfortunately, this is not valid identifier.
> Kind Regards,
> Czarek

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Issue Comment Edited: (TUSCANY-1853) XSD2JavaGenerator generates Java identifier with dots

Posted by "Cezary Tkaczyk (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537416 ] 

ctkaczyk edited comment on TUSCANY-1853 at 10/24/07 1:58 PM:
-------------------------------------------------------------------

The snapshot version (from https://svn.apache.org/repos/asf/incubator/tuscany/java/sdo) works fine. Sorry, I haven't checked it out, before opening an issue. I had trouble building a snapshot - sdo-tools tests failure. Fortunately, omission of these tests leads to successful build.

      was (Author: ctkaczyk):
    The snapshot version works fine. Sorry, I haven't checked it out, before creating a bug. I had trouble building a snapshot - sdo-tools tests failure. Omission of these tests leads to successful build.
  
> XSD2JavaGenerator generates Java identifier with dots
> -----------------------------------------------------
>
>                 Key: TUSCANY-1853
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1853
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-1.0
>         Environment: Windows XP, jre 1.5
>            Reporter: Cezary Tkaczyk
>             Fix For: Java-SDO-Next
>
>
> Hello,
> While I'm trying to compile generated by XSD2JavaGenerator Java classes, I've got such an error:
>     
>     [javac] C:\projekty\eclipse-workspace-rbpl-sdo-1.0\REB-Catalog-SDO-Java\src-autogen\pl\esb\impl\EsbFactoryImpl.java:169: ';' expected
>     [javac]     pl.esb.blm.adapter.AdapterFactory pl.esb.blm.adapter.AdapterFactoryInstance = pl.esb.blm.adapter.AdapterFactory.INSTANCE;
>     [javac]                                                    ^
>  
> The problem is: variable identifier cannot contain dots.
> The place, where this error appears looks like this:
> public static EsbFactoryImpl init()
>   {
>     if (instance != null ) return instance;
>     instance = new EsbFactoryImpl();
>     // Initialize dependent packages
>     AdapterFactory AdapterFactoryInstance = AdapterFactory.INSTANCE;
>     RebFactory RebFactoryInstance = RebFactory.INSTANCE;
>     pl.raiffeisen.esb.blm.adapter.AdapterFactory pl.raiffeisen.esb.blm.adapter.AdapterFactoryInstance = pl.raiffeisen.esb.blm.adapter.AdapterFactory.INSTANCE;
>     
>     // Create package meta-data objects
>     instance.createMetaData();
>     // Initialize created meta-data
>     instance.initializeMetaData();
>     
>     // Mark meta-data to indicate it can't be changed
>     //theEsbFactoryImpl.freeze(); //FB do we need to freeze / should we freeze ????
>     return instance;
>   }
> I think the problem is that I have two namespaces of the same suffix:
> http://www.esb.pl/blm/adapter
> http://www.esb.pl/ods1/adapter
> So, generator is trying to avoid the problem creating unique variable name: pl.esb.blm.adapter.AdapterFactoryInstance
> Unfortunately, this is not valid identifier.
> Kind Regards,
> Czarek

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org