You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Dean Holdren (JIRA)" <ji...@apache.org> on 2010/04/21 23:36:49 UTC
[jira] Created: (AXIS2-4688) getUniqueSuffix uses unqualified (java
built-in) System class, conflicts with generated System type defined in
WSDL
getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
-------------------------------------------------------------------------------------------------------------------
Key: AXIS2-4688
URL: https://issues.apache.org/jira/browse/AXIS2-4688
Project: Axis2
Issue Type: Bug
Components: codegen
Affects Versions: 1.5.1
Environment: jdk 1.6
Reporter: Dean Holdren
Steps to Reproduce:
Run wsdl2java on a WSDL with the following XSD element, then compile:
<xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
Error Result:
Compilation warning of "no symbol found" for currentTimeMillis()
Suspected Reason:
WSDL defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference to java's built System class conflicts.
Proposed Fix:
Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
private static synchronized java.lang.String getUniqueSuffix(){
// reset the counter if it is greater than 99999
if (counter > 99999){
counter = 0;
}
counter = counter + 1;
return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
}
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Updated: (AXIS2-4688) getUniqueSuffix uses unqualified (java
built-in) System class, conflicts with generated System type defined in
WSDL
Posted by "Dean Holdren (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dean Holdren updated AXIS2-4688:
--------------------------------
Description:
Steps to Reproduce:
Run wsdl2java on a WSDL with the following XSD element, then compile:
<xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
Error Result:
Compilation warning of "no symbol found" for currentTimeMillis()
Suspected Reason:
The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
Proposed Fix:
Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
private static synchronized java.lang.String getUniqueSuffix(){
// reset the counter if it is greater than 99999
if (counter > 99999){
counter = 0;
}
counter = counter + 1;
return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
}
was:
Steps to Reproduce:
Run wsdl2java on a WSDL with the following XSD element, then compile:
<xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
Error Result:
Compilation warning of "no symbol found" for currentTimeMillis()
Suspected Reason:
WSDL defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference to java's built System class conflicts.
Proposed Fix:
Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
private static synchronized java.lang.String getUniqueSuffix(){
// reset the counter if it is greater than 99999
if (counter > 99999){
counter = 0;
}
counter = counter + 1;
return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
}
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Resolved: (AXIS2-4688) getUniqueSuffix uses unqualified
(java built-in) System class, conflicts with generated System type defined
in WSDL
Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen resolved AXIS2-4688.
------------------------------------
Resolution: Fixed
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
> Assignee: Andreas Veithen
> Fix For: 1.6, 1.5.3
>
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Commented: (AXIS2-4688) getUniqueSuffix uses unqualified
(java built-in) System class, conflicts with generated System type defined
in WSDL
Posted by "Dean Holdren (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859827#action_12859827 ]
Dean Holdren commented on AXIS2-4688:
-------------------------------------
This is the file that needs to be changed:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl?revision=935122&view=markup
line 74:
return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
Should be:
return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter;
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Resolved: (AXIS2-4688) getUniqueSuffix uses unqualified
(java built-in) System class, conflicts with generated System type defined
in WSDL
Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen resolved AXIS2-4688.
------------------------------------
Fix Version/s: 1.6
Resolution: Fixed
Applied your suggested change. Thanks for reporting this.
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
> Assignee: Andreas Veithen
> Fix For: 1.6
>
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Assigned: (AXIS2-4688) getUniqueSuffix uses unqualified
(java built-in) System class, conflicts with generated System type defined
in WSDL
Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen reassigned AXIS2-4688:
--------------------------------------
Assignee: Andreas Veithen
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
> Assignee: Andreas Veithen
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Updated: (AXIS2-4688) getUniqueSuffix uses unqualified (java
built-in) System class, conflicts with generated System type defined in
WSDL
Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen updated AXIS2-4688:
-----------------------------------
Fix Version/s: 1.5.3
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
> Assignee: Andreas Veithen
> Fix For: 1.6, 1.5.3
>
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Resolved: (AXIS2-4688) getUniqueSuffix uses unqualified
(java built-in) System class, conflicts with generated System type defined
in WSDL
Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen resolved AXIS2-4688.
------------------------------------
Fix Version/s: 1.6
Resolution: Fixed
Applied your suggested change. Thanks for reporting this.
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
> Assignee: Andreas Veithen
> Fix For: 1.6
>
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Commented: (AXIS2-4688) getUniqueSuffix uses unqualified
(java built-in) System class, conflicts with generated System type defined
in WSDL
Posted by "Dean Holdren (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859827#action_12859827 ]
Dean Holdren commented on AXIS2-4688:
-------------------------------------
This is the file that needs to be changed:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl?revision=935122&view=markup
line 74:
return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
Should be:
return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter;
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Updated: (AXIS2-4688) getUniqueSuffix uses unqualified (java
built-in) System class, conflicts with generated System type defined in
WSDL
Posted by "Dean Holdren (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dean Holdren updated AXIS2-4688:
--------------------------------
Description:
Steps to Reproduce:
Run wsdl2java on a WSDL with the following XSD element, then compile:
<xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
Error Result:
Compilation warning of "no symbol found" for currentTimeMillis()
Suspected Reason:
The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
Proposed Fix:
Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
private static synchronized java.lang.String getUniqueSuffix(){
// reset the counter if it is greater than 99999
if (counter > 99999){
counter = 0;
}
counter = counter + 1;
return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
}
was:
Steps to Reproduce:
Run wsdl2java on a WSDL with the following XSD element, then compile:
<xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
Error Result:
Compilation warning of "no symbol found" for currentTimeMillis()
Suspected Reason:
WSDL defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference to java's built System class conflicts.
Proposed Fix:
Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
private static synchronized java.lang.String getUniqueSuffix(){
// reset the counter if it is greater than 99999
if (counter > 99999){
counter = 0;
}
counter = counter + 1;
return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
}
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Commented: (AXIS2-4688) getUniqueSuffix uses unqualified
(java built-in) System class, conflicts with generated System type defined
in WSDL
Posted by "Dean Holdren (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859827#action_12859827 ]
Dean Holdren commented on AXIS2-4688:
-------------------------------------
This is the file that needs to be changed:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl?revision=935122&view=markup
line 74:
return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
Should be:
return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter;
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Assigned: (AXIS2-4688) getUniqueSuffix uses unqualified
(java built-in) System class, conflicts with generated System type defined
in WSDL
Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen reassigned AXIS2-4688:
--------------------------------------
Assignee: Andreas Veithen
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
> Assignee: Andreas Veithen
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Reopened: (AXIS2-4688) getUniqueSuffix uses unqualified
(java built-in) System class, conflicts with generated System type defined
in WSDL
Posted by "Dean Holdren (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dean Holdren reopened AXIS2-4688:
---------------------------------
This change should be applied to the 1_5 branch as well.
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
> Assignee: Andreas Veithen
> Fix For: 1.6
>
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Resolved: (AXIS2-4688) getUniqueSuffix uses unqualified
(java built-in) System class, conflicts with generated System type defined
in WSDL
Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen resolved AXIS2-4688.
------------------------------------
Fix Version/s: 1.6
Resolution: Fixed
Applied your suggested change. Thanks for reporting this.
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
> Assignee: Andreas Veithen
> Fix For: 1.6
>
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Assigned: (AXIS2-4688) getUniqueSuffix uses unqualified
(java built-in) System class, conflicts with generated System type defined
in WSDL
Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen reassigned AXIS2-4688:
--------------------------------------
Assignee: Andreas Veithen
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
> Assignee: Andreas Veithen
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Updated: (AXIS2-4688) getUniqueSuffix uses unqualified (java
built-in) System class, conflicts with generated System type defined in
WSDL
Posted by "Dean Holdren (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dean Holdren updated AXIS2-4688:
--------------------------------
Description:
Steps to Reproduce:
Run wsdl2java on a WSDL with the following XSD element, then compile:
<xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
Error Result:
Compilation warning of "no symbol found" for currentTimeMillis()
Suspected Reason:
The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
Proposed Fix:
Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
private static synchronized java.lang.String getUniqueSuffix(){
// reset the counter if it is greater than 99999
if (counter > 99999){
counter = 0;
}
counter = counter + 1;
return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
}
was:
Steps to Reproduce:
Run wsdl2java on a WSDL with the following XSD element, then compile:
<xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
Error Result:
Compilation warning of "no symbol found" for currentTimeMillis()
Suspected Reason:
WSDL defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference to java's built System class conflicts.
Proposed Fix:
Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
private static synchronized java.lang.String getUniqueSuffix(){
// reset the counter if it is greater than 99999
if (counter > 99999){
counter = 0;
}
counter = counter + 1;
return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
}
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Commented: (AXIS2-4688) getUniqueSuffix uses unqualified
(java built-in) System class, conflicts with generated System type defined
in WSDL
Posted by "Dean Holdren (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859827#action_12859827 ]
Dean Holdren commented on AXIS2-4688:
-------------------------------------
This is the file that needs to be changed:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl?revision=935122&view=markup
line 74:
return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
Should be:
return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter;
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Updated: (AXIS2-4688) getUniqueSuffix uses unqualified (java
built-in) System class, conflicts with generated System type defined in
WSDL
Posted by "Dean Holdren (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dean Holdren updated AXIS2-4688:
--------------------------------
Description:
Steps to Reproduce:
Run wsdl2java on a WSDL with the following XSD element, then compile:
<xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
Error Result:
Compilation warning of "no symbol found" for currentTimeMillis()
Suspected Reason:
The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
Proposed Fix:
Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
private static synchronized java.lang.String getUniqueSuffix(){
// reset the counter if it is greater than 99999
if (counter > 99999){
counter = 0;
}
counter = counter + 1;
return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
}
was:
Steps to Reproduce:
Run wsdl2java on a WSDL with the following XSD element, then compile:
<xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
Error Result:
Compilation warning of "no symbol found" for currentTimeMillis()
Suspected Reason:
WSDL defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference to java's built System class conflicts.
Proposed Fix:
Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
private static synchronized java.lang.String getUniqueSuffix(){
// reset the counter if it is greater than 99999
if (counter > 99999){
counter = 0;
}
counter = counter + 1;
return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
}
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Resolved: (AXIS2-4688) getUniqueSuffix uses unqualified
(java built-in) System class, conflicts with generated System type defined
in WSDL
Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen resolved AXIS2-4688.
------------------------------------
Fix Version/s: 1.6
Resolution: Fixed
Applied your suggested change. Thanks for reporting this.
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
> Assignee: Andreas Veithen
> Fix For: 1.6
>
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Commented: (AXIS2-4688) getUniqueSuffix uses unqualified
(java built-in) System class, conflicts with generated System type defined
in WSDL
Posted by "Dean Holdren (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859827#action_12859827 ]
Dean Holdren commented on AXIS2-4688:
-------------------------------------
This is the file that needs to be changed:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl?revision=935122&view=markup
line 74:
return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
Should be:
return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter;
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Resolved: (AXIS2-4688) getUniqueSuffix uses unqualified
(java built-in) System class, conflicts with generated System type defined
in WSDL
Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen resolved AXIS2-4688.
------------------------------------
Fix Version/s: 1.6
Resolution: Fixed
Applied your suggested change. Thanks for reporting this.
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
> Assignee: Andreas Veithen
> Fix For: 1.6
>
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Assigned: (AXIS2-4688) getUniqueSuffix uses unqualified
(java built-in) System class, conflicts with generated System type defined
in WSDL
Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen reassigned AXIS2-4688:
--------------------------------------
Assignee: Andreas Veithen
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
> Assignee: Andreas Veithen
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Updated: (AXIS2-4688) getUniqueSuffix uses unqualified (java
built-in) System class, conflicts with generated System type defined in
WSDL
Posted by "Dean Holdren (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dean Holdren updated AXIS2-4688:
--------------------------------
Description:
Steps to Reproduce:
Run wsdl2java on a WSDL with the following XSD element, then compile:
<xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
Error Result:
Compilation warning of "no symbol found" for currentTimeMillis()
Suspected Reason:
The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
Proposed Fix:
Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
private static synchronized java.lang.String getUniqueSuffix(){
// reset the counter if it is greater than 99999
if (counter > 99999){
counter = 0;
}
counter = counter + 1;
return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
}
was:
Steps to Reproduce:
Run wsdl2java on a WSDL with the following XSD element, then compile:
<xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
Error Result:
Compilation warning of "no symbol found" for currentTimeMillis()
Suspected Reason:
WSDL defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference to java's built System class conflicts.
Proposed Fix:
Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
private static synchronized java.lang.String getUniqueSuffix(){
// reset the counter if it is greater than 99999
if (counter > 99999){
counter = 0;
}
counter = counter + 1;
return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
}
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] Assigned: (AXIS2-4688) getUniqueSuffix uses unqualified
(java built-in) System class, conflicts with generated System type defined
in WSDL
Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen reassigned AXIS2-4688:
--------------------------------------
Assignee: Andreas Veithen
> getUniqueSuffix uses unqualified (java built-in) System class, conflicts with generated System type defined in WSDL
> -------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4688
> URL: https://issues.apache.org/jira/browse/AXIS2-4688
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.1
> Environment: jdk 1.6
> Reporter: Dean Holdren
> Assignee: Andreas Veithen
>
> Steps to Reproduce:
> Run wsdl2java on a WSDL with the following XSD element, then compile:
> <xsd:simpleType name="system"><xsd:restriction base="xsd:string"><xsd:enumeration value="A"/><xsd:enumeration value="B"/><xsd:enumeration value="C"/><xsd:enumeration value="D"/><xsd:enumeration value="E"/></xsd:restriction></xsd:simpleType>
> Error Result:
> Compilation warning of "no symbol found" for currentTimeMillis()
> Suspected Reason:
> The .wsdl file defines a Type named "System", which the generator creates a class for in the Stub. The unqualified reference (in getUniqueSuffix) to java's built System class conflicts.
> Proposed Fix:
> Change the reference to "System" in the method getUniqueSuffix in generated Stub to fully qualified "java.lang.System"
> private static synchronized java.lang.String getUniqueSuffix(){
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return java.lang.Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org