You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Rodolfo Dias (JIRA)" <de...@tuscany.apache.org> on 2008/11/19 23:29:44 UTC
[jira] Created: (TUSCANY-2681) When a Component class implements an
interfaces that extends other interface and use generics occur the error
When a Component class implements an interfaces that extends other interface and use generics occur the error
-------------------------------------------------------------------------------------------------------------
Key: TUSCANY-2681
URL: https://issues.apache.org/jira/browse/TUSCANY-2681
Project: Tuscany
Issue Type: Bug
Components: Java SCA Java Implementation Extension
Affects Versions: Java-SCA-1.3.2
Environment: SO: Ubuntu 8.04
Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
Reporter: Rodolfo Dias
Priority: Critical
Hi,
When a Component class implements an interfaces that extends other interface and use generics occur the error:
Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
And not inject de class implementation
java.lang.NullPointerException
at com.test.service.GenericService.print(GenericService.java:18)
Java Interfaces:
public interface IGenericBO<T, ID> {
T persist(T any, List<ID> id);
}
public interface IFiscalYearBO extends IGenericBO<String, Long> {
}
Implementation class:
public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
private T x;
public T persist(T any, List<ID> id) {
x = any;
System.out.println(id);
System.out.println("Brazil " + x);
return x;
}
}
public class FiscalYearBO extends
GenericBOImpl<String, Long> implements
IFiscalYearBO {
}
I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
I put the patch and testcase.
Sorry my english :(.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Commented: (TUSCANY-2681) When a Component class implements an interfaces that extends other interface and use generics occur the error
Posted by Rodolfo Dias <di...@gmail.com>.
Hi
Yes, i can extend this fix to cover array types. I think in revised all
generics access in SCA API and posting my observation about this.
Rodolfo Dias.
dias.rodolfo@gmail.com
dias.sca@gmail.com (Tuscany Project only)
2008/12/1 ant elder (JIRA) <de...@tuscany.apache.org>
>
> [
> https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12651958#action_12651958]
>
> ant elder commented on TUSCANY-2681:
> ------------------------------------
>
> Thanks for the updated fix Rodolfo, its its looking good but I've come
> across one more situation that needs to also be dealt with which is array
> types. Would you be interested in extending this fix to cover that
> situation?
>
> There are some tests for these in the Tuscany
> itest\databindings\jaxb-bottom-up which with this fix applied are now
> failing in the JavaInterfaceUtil.getGenericType with an
> UnsupportedOperationException.
>
> The testcase is at:
> https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/itest/databindings/jaxb-bottom-up/
>
> The stack trace for one of the failures is:
>
> <testcase time="0" name="testSCATypeExplicit">
> <error
> type="java.lang.UnsupportedOperationException">java.lang.UnsupportedOperationException
> at
> org.apache.tuscany.sca.interfacedef.java.impl.JavaInterfaceUtil.getGenericType(JavaInterfaceUtil.java:126)
> at
> org.apache.tuscany.sca.interfacedef.java.impl.JavaInterfaceUtil.getPhysicalTypes(JavaInterfaceUtil.java:107)
> at
> org.apache.tuscany.sca.interfacedef.java.impl.JavaInterfaceUtil.findMethod(JavaInterfaceUtil.java:86)
> at
> org.apache.tuscany.sca.implementation.java.invocation.JavaComponentContextProvider.createInvoker(JavaComponentContextProvider.java:319)
> at
> org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationProvider.createInvoker(JavaImplementationProvider.java:149)
> at
> org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.addImplementationInterceptor(RuntimeWireImpl.java:400)
> at
> org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.initInvocationChains(RuntimeWireImpl.java:214)
> at
> org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.getInvocationChains(RuntimeWireImpl.java:115)
> at
> org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.getInvocationChain(RuntimeWireImpl.java:135)
> at
> org.apache.tuscany.sca.core.assembly.RuntimeComponentServiceImpl.getInvocationChain(RuntimeComponentServiceImpl.java:125)
> at
> org.apache.tuscany.sca.binding.sca.impl.RuntimeSCAReferenceBindingProvider.getInvoker(RuntimeSCAReferenceBindingProvider.java:184)
> at
> org.apache.tuscany.sca.binding.sca.impl.RuntimeSCAReferenceBindingProvider.createInvoker(RuntimeSCAReferenceBindingProvider.java:197)
> at
> org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.addReferenceBindingInterceptor(RuntimeWireImpl.java:313)
> at
> org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.initInvocationChains(RuntimeWireImpl.java:191)
> at
> org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.getInvocationChains(RuntimeWireImpl.java:115)
> at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.getInvocationChain(JDKInvocationHandler.java:243)
> at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:148)
> at $Proxy36.getTypeExplicitForward(Unknown Source)
> at
> org.apache.tuscany.sca.itest.databindings.jaxb.GenericsDatabindingTestCase.performTestTypeExplicit(GenericsDatabindingTestCase.java:305)
> at
> org.apache.tuscany.sca.itest.databindings.jaxb.GenericsDatabindingTestCase.testSCATypeExplicit(GenericsDatabindingTestCase.java:65)
>
>
>
> > When a Component class implements an interfaces that extends other
> interface and use generics occur the error
> >
> -------------------------------------------------------------------------------------------------------------
> >
> > Key: TUSCANY-2681
> > URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> > Project: Tuscany
> > Issue Type: Bug
> > Components: Java SCA Java Implementation Extension
> > Affects Versions: Java-SCA-1.3.2
> > Environment: SO: Ubuntu 8.04
> > Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> > Reporter: Rodolfo Dias
> > Priority: Critical
> > Fix For: Java-SCA-Next
> >
> > Attachments: JavaInterfaceUtil.java, testcase.jar,
> tuscany-interface-java-1.3.2-JIRA-2681-src.zip,
> tuscany-interface-java-1.3.2-JIRA-2681.jar
> >
> > Original Estimate: 4h
> > Remaining Estimate: 4h
> >
> > Hi,
> > When a Component class implements an interfaces that extends other
> interface and use generics occur the error:
> > Nov 19, 2008 11:12:09 PM
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> > WARNING: Incompatible interfaces on wire source and target : source =
> GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> > Nov 19, 2008 11:12:10 PM
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> > WARNING: No targets for reference: Composite = {http://utrafe}GenericService
> Reference = fiscalYearBO
> > And not inject de class implementation
> > java.lang.NullPointerException
> > at com.test.service.GenericService.print(GenericService.java:18)
> > Java Interfaces:
> > public interface IGenericBO<T, ID> {
> > T persist(T any, List<ID> id);
> > }
> > public interface IFiscalYearBO extends IGenericBO<String, Long> {
> > }
> > Implementation class:
> > public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> > private T x;
> >
> >
> > public T persist(T any, List<ID> id) {
> > x = any;
> > System.out.println(id);
> > System.out.println("Brazil " + x);
> > return x;
> > }
> > }
> > public class FiscalYearBO extends
> > GenericBOImpl<String, Long> implements
> > IFiscalYearBO {
> > }
> > I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have
> other error and alter the JavaInterfaceUtil code too.
> > I put the patch and testcase.
> > Sorry my english :(.
> >
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
Re: [jira] Commented: (TUSCANY-2681) When a Component class implements an interfaces that extends other interface and use generics occur the error
Posted by Rodolfo Dias <di...@gmail.com>.
hi elder!
I have assigned the bux to me without problem :D.
thanks.
2008/12/1 ant elder (JIRA) <de...@tuscany.apache.org>
>
> [
> https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652033#action_12652033]
>
> ant elder commented on TUSCANY-2681:
> ------------------------------------
>
> I've just added your JIRA ID as a contributor to the Tuscany project so you
> should be able to manage Tuscany JIRAs now, can you have a try and let me
> know if it doesn't work?
>
> > When a Component class implements an interfaces that extends other
> interface and use generics occur the error
> >
> -------------------------------------------------------------------------------------------------------------
> >
> > Key: TUSCANY-2681
> > URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> > Project: Tuscany
> > Issue Type: Bug
> > Components: Java SCA Java Implementation Extension
> > Affects Versions: Java-SCA-1.3.2
> > Environment: SO: Ubuntu 8.04
> > Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> > Reporter: Rodolfo Dias
> > Priority: Critical
> > Fix For: Java-SCA-Next
> >
> > Attachments: JavaInterfaceUtil.java, testcase.jar,
> tuscany-interface-java-1.3.2-JIRA-2681-src.zip,
> tuscany-interface-java-1.3.2-JIRA-2681.jar
> >
> > Original Estimate: 4h
> > Remaining Estimate: 4h
> >
> > Hi,
> > When a Component class implements an interfaces that extends other
> interface and use generics occur the error:
> > Nov 19, 2008 11:12:09 PM
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> > WARNING: Incompatible interfaces on wire source and target : source =
> GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> > Nov 19, 2008 11:12:10 PM
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> > WARNING: No targets for reference: Composite = {http://utrafe}GenericService
> Reference = fiscalYearBO
> > And not inject de class implementation
> > java.lang.NullPointerException
> > at com.test.service.GenericService.print(GenericService.java:18)
> > Java Interfaces:
> > public interface IGenericBO<T, ID> {
> > T persist(T any, List<ID> id);
> > }
> > public interface IFiscalYearBO extends IGenericBO<String, Long> {
> > }
> > Implementation class:
> > public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> > private T x;
> >
> >
> > public T persist(T any, List<ID> id) {
> > x = any;
> > System.out.println(id);
> > System.out.println("Brazil " + x);
> > return x;
> > }
> > }
> > public class FiscalYearBO extends
> > GenericBOImpl<String, Long> implements
> > IFiscalYearBO {
> > }
> > I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have
> other error and alter the JavaInterfaceUtil code too.
> > I put the patch and testcase.
> > Sorry my english :(.
> >
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
[jira] Assigned: (TUSCANY-2681) When a Component class implements
an interfaces that extends other interface and use generics occur the error
Posted by "Rodolfo Dias (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rodolfo Dias reassigned TUSCANY-2681:
-------------------------------------
Assignee: Rodolfo Dias
> When a Component class implements an interfaces that extends other interface and use generics occur the error
> -------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2681
> URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-1.3.2
> Environment: SO: Ubuntu 8.04
> Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> Reporter: Rodolfo Dias
> Assignee: Rodolfo Dias
> Priority: Critical
> Fix For: Java-SCA-Next
>
> Attachments: JavaInterfaceUtil.java, testcase.jar, tuscany-interface-java-1.3.2-JIRA-2681-src.zip, tuscany-interface-java-1.3.2-JIRA-2681.jar
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Hi,
> When a Component class implements an interfaces that extends other interface and use generics occur the error:
> Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
> And not inject de class implementation
> java.lang.NullPointerException
> at com.test.service.GenericService.print(GenericService.java:18)
> Java Interfaces:
> public interface IGenericBO<T, ID> {
> T persist(T any, List<ID> id);
> }
> public interface IFiscalYearBO extends IGenericBO<String, Long> {
> }
> Implementation class:
> public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> private T x;
>
>
> public T persist(T any, List<ID> id) {
> x = any;
> System.out.println(id);
> System.out.println("Brazil " + x);
> return x;
> }
> }
> public class FiscalYearBO extends
> GenericBOImpl<String, Long> implements
> IFiscalYearBO {
> }
> I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
> I put the patch and testcase.
> Sorry my english :(.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TUSCANY-2681) When a Component class implements
an interfaces that extends other interface and use generics occur the error
Posted by "Rodolfo Dias (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12649261#action_12649261 ]
Rodolfo Dias commented on TUSCANY-2681:
---------------------------------------
Hi Luciano, my connection lost when i try upload file, I got just now.
> When a Component class implements an interfaces that extends other interface and use generics occur the error
> -------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2681
> URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-1.3.2
> Environment: SO: Ubuntu 8.04
> Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> Reporter: Rodolfo Dias
> Priority: Critical
> Attachments: testcase.jar, tuscany-interface-java-1.3.2-JIRA-2681.jar
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Hi,
> When a Component class implements an interfaces that extends other interface and use generics occur the error:
> Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
> And not inject de class implementation
> java.lang.NullPointerException
> at com.test.service.GenericService.print(GenericService.java:18)
> Java Interfaces:
> public interface IGenericBO<T, ID> {
> T persist(T any, List<ID> id);
> }
> public interface IFiscalYearBO extends IGenericBO<String, Long> {
> }
> Implementation class:
> public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> private T x;
>
>
> public T persist(T any, List<ID> id) {
> x = any;
> System.out.println(id);
> System.out.println("Brazil " + x);
> return x;
> }
> }
> public class FiscalYearBO extends
> GenericBOImpl<String, Long> implements
> IFiscalYearBO {
> }
> I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
> I put the patch and testcase.
> Sorry my english :(.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (TUSCANY-2681) When a Component class
implements an interfaces that extends other interface and use generics
occur the error
Posted by "Rodolfo Dias (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12653687#action_12653687 ]
dias.rodolfo edited comment on TUSCANY-2681 at 12/7/08 11:27 PM:
-----------------------------------------------------------------
Hi, I fixed class JavaInterfaceUtil to fix the problem reported by Elder. I run the all test within itest directory, inclusive itest\databindings\jaxb-bottom-up, and all is ok. The JIRA-2681-SRC-DIFF.zip contains the modified source. Elder, can you see if it's ok and tell me please?. I am wait your ok before close issue in jira.
Thanks in advance
was (Author: dias.rodolfo):
Hi, I fixed class JavaInterfaceUtil to fix the problem reported by Elder. I run the all test within itest directory, inclusive itest\databindings\jaxb-bottom-up, and all is ok. The JIRA-2681-SRC-DIFF.zip contains the modified source.
> When a Component class implements an interfaces that extends other interface and use generics occur the error
> -------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2681
> URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-1.3.2
> Environment: SO: Ubuntu 8.04
> Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> Reporter: Rodolfo Dias
> Assignee: Rodolfo Dias
> Priority: Critical
> Fix For: Java-SCA-Next
>
> Attachments: JavaInterfaceUtil.java, JIRA-2681-SRC-DIFF.zip, testcase.jar, tuscany-interface-java-1.3.2-JIRA-2681-src.zip, tuscany-interface-java-1.3.2-JIRA-2681.jar
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Hi,
> When a Component class implements an interfaces that extends other interface and use generics occur the error:
> Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
> And not inject de class implementation
> java.lang.NullPointerException
> at com.test.service.GenericService.print(GenericService.java:18)
> Java Interfaces:
> public interface IGenericBO<T, ID> {
> T persist(T any, List<ID> id);
> }
> public interface IFiscalYearBO extends IGenericBO<String, Long> {
> }
> Implementation class:
> public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> private T x;
>
>
> public T persist(T any, List<ID> id) {
> x = any;
> System.out.println(id);
> System.out.println("Brazil " + x);
> return x;
> }
> }
> public class FiscalYearBO extends
> GenericBOImpl<String, Long> implements
> IFiscalYearBO {
> }
> I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
> I put the patch and testcase.
> Sorry my english :(.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TUSCANY-2681) When a Component class implements
an interfaces that extends other interface and use generics occur the error
Posted by "ant elder (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12651958#action_12651958 ]
ant elder commented on TUSCANY-2681:
------------------------------------
Thanks for the updated fix Rodolfo, its its looking good but I've come across one more situation that needs to also be dealt with which is array types. Would you be interested in extending this fix to cover that situation?
There are some tests for these in the Tuscany itest\databindings\jaxb-bottom-up which with this fix applied are now failing in the JavaInterfaceUtil.getGenericType with an UnsupportedOperationException.
The testcase is at: https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/itest/databindings/jaxb-bottom-up/
The stack trace for one of the failures is:
<testcase time="0" name="testSCATypeExplicit">
<error type="java.lang.UnsupportedOperationException">java.lang.UnsupportedOperationException
at org.apache.tuscany.sca.interfacedef.java.impl.JavaInterfaceUtil.getGenericType(JavaInterfaceUtil.java:126)
at org.apache.tuscany.sca.interfacedef.java.impl.JavaInterfaceUtil.getPhysicalTypes(JavaInterfaceUtil.java:107)
at org.apache.tuscany.sca.interfacedef.java.impl.JavaInterfaceUtil.findMethod(JavaInterfaceUtil.java:86)
at org.apache.tuscany.sca.implementation.java.invocation.JavaComponentContextProvider.createInvoker(JavaComponentContextProvider.java:319)
at org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationProvider.createInvoker(JavaImplementationProvider.java:149)
at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.addImplementationInterceptor(RuntimeWireImpl.java:400)
at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.initInvocationChains(RuntimeWireImpl.java:214)
at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.getInvocationChains(RuntimeWireImpl.java:115)
at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.getInvocationChain(RuntimeWireImpl.java:135)
at org.apache.tuscany.sca.core.assembly.RuntimeComponentServiceImpl.getInvocationChain(RuntimeComponentServiceImpl.java:125)
at org.apache.tuscany.sca.binding.sca.impl.RuntimeSCAReferenceBindingProvider.getInvoker(RuntimeSCAReferenceBindingProvider.java:184)
at org.apache.tuscany.sca.binding.sca.impl.RuntimeSCAReferenceBindingProvider.createInvoker(RuntimeSCAReferenceBindingProvider.java:197)
at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.addReferenceBindingInterceptor(RuntimeWireImpl.java:313)
at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.initInvocationChains(RuntimeWireImpl.java:191)
at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.getInvocationChains(RuntimeWireImpl.java:115)
at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.getInvocationChain(JDKInvocationHandler.java:243)
at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:148)
at $Proxy36.getTypeExplicitForward(Unknown Source)
at org.apache.tuscany.sca.itest.databindings.jaxb.GenericsDatabindingTestCase.performTestTypeExplicit(GenericsDatabindingTestCase.java:305)
at org.apache.tuscany.sca.itest.databindings.jaxb.GenericsDatabindingTestCase.testSCATypeExplicit(GenericsDatabindingTestCase.java:65)
> When a Component class implements an interfaces that extends other interface and use generics occur the error
> -------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2681
> URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-1.3.2
> Environment: SO: Ubuntu 8.04
> Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> Reporter: Rodolfo Dias
> Priority: Critical
> Fix For: Java-SCA-Next
>
> Attachments: JavaInterfaceUtil.java, testcase.jar, tuscany-interface-java-1.3.2-JIRA-2681-src.zip, tuscany-interface-java-1.3.2-JIRA-2681.jar
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Hi,
> When a Component class implements an interfaces that extends other interface and use generics occur the error:
> Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
> And not inject de class implementation
> java.lang.NullPointerException
> at com.test.service.GenericService.print(GenericService.java:18)
> Java Interfaces:
> public interface IGenericBO<T, ID> {
> T persist(T any, List<ID> id);
> }
> public interface IFiscalYearBO extends IGenericBO<String, Long> {
> }
> Implementation class:
> public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> private T x;
>
>
> public T persist(T any, List<ID> id) {
> x = any;
> System.out.println(id);
> System.out.println("Brazil " + x);
> return x;
> }
> }
> public class FiscalYearBO extends
> GenericBOImpl<String, Long> implements
> IFiscalYearBO {
> }
> I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
> I put the patch and testcase.
> Sorry my english :(.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TUSCANY-2681) When a Component class implements an
interfaces that extends other interface and use generics occur the error
Posted by "Rodolfo Dias (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rodolfo Dias updated TUSCANY-2681:
----------------------------------
Attachment: tuscany-interface-java-1.3.2-JIRA-2681-src.zip
Follow the source code and diff files
> When a Component class implements an interfaces that extends other interface and use generics occur the error
> -------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2681
> URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-1.3.2
> Environment: SO: Ubuntu 8.04
> Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> Reporter: Rodolfo Dias
> Priority: Critical
> Fix For: Java-SCA-Next
>
> Attachments: testcase.jar, tuscany-interface-java-1.3.2-JIRA-2681-src.zip, tuscany-interface-java-1.3.2-JIRA-2681.jar
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Hi,
> When a Component class implements an interfaces that extends other interface and use generics occur the error:
> Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
> And not inject de class implementation
> java.lang.NullPointerException
> at com.test.service.GenericService.print(GenericService.java:18)
> Java Interfaces:
> public interface IGenericBO<T, ID> {
> T persist(T any, List<ID> id);
> }
> public interface IFiscalYearBO extends IGenericBO<String, Long> {
> }
> Implementation class:
> public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> private T x;
>
>
> public T persist(T any, List<ID> id) {
> x = any;
> System.out.println(id);
> System.out.println("Brazil " + x);
> return x;
> }
> }
> public class FiscalYearBO extends
> GenericBOImpl<String, Long> implements
> IFiscalYearBO {
> }
> I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
> I put the patch and testcase.
> Sorry my english :(.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TUSCANY-2681) When a Component class implements
an interfaces that extends other interface and use generics occur the error
Posted by "ant elder (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12651334#action_12651334 ]
ant elder commented on TUSCANY-2681:
------------------------------------
The tuscany-interface-java-1.3.2-JIRA-2681.jar only includes the compiled code not the source files so its hard to see what the fix is, could you submit the source too? Ideally in diff format using svn diff but otherwise its ok and we will try to work out the changes just from the source.
> When a Component class implements an interfaces that extends other interface and use generics occur the error
> -------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2681
> URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-1.3.2
> Environment: SO: Ubuntu 8.04
> Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> Reporter: Rodolfo Dias
> Priority: Critical
> Attachments: testcase.jar, tuscany-interface-java-1.3.2-JIRA-2681.jar
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Hi,
> When a Component class implements an interfaces that extends other interface and use generics occur the error:
> Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
> And not inject de class implementation
> java.lang.NullPointerException
> at com.test.service.GenericService.print(GenericService.java:18)
> Java Interfaces:
> public interface IGenericBO<T, ID> {
> T persist(T any, List<ID> id);
> }
> public interface IFiscalYearBO extends IGenericBO<String, Long> {
> }
> Implementation class:
> public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> private T x;
>
>
> public T persist(T any, List<ID> id) {
> x = any;
> System.out.println(id);
> System.out.println("Brazil " + x);
> return x;
> }
> }
> public class FiscalYearBO extends
> GenericBOImpl<String, Long> implements
> IFiscalYearBO {
> }
> I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
> I put the patch and testcase.
> Sorry my english :(.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TUSCANY-2681) When a Component class implements an
interfaces that extends other interface and use generics occur the error
Posted by "Rodolfo Dias (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rodolfo Dias updated TUSCANY-2681:
----------------------------------
Attachment: JIRA-2681-SRC-DIFF.zip
Hi, I fixed class JavaInterfaceUtil to fix the problem reported by Elder. I run the all test within itest directory, inclusive itest\databindings\jaxb-bottom-up, and all is ok.
> When a Component class implements an interfaces that extends other interface and use generics occur the error
> -------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2681
> URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-1.3.2
> Environment: SO: Ubuntu 8.04
> Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> Reporter: Rodolfo Dias
> Assignee: Rodolfo Dias
> Priority: Critical
> Fix For: Java-SCA-Next
>
> Attachments: JavaInterfaceUtil.java, JIRA-2681-SRC-DIFF.zip, testcase.jar, tuscany-interface-java-1.3.2-JIRA-2681-src.zip, tuscany-interface-java-1.3.2-JIRA-2681.jar
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Hi,
> When a Component class implements an interfaces that extends other interface and use generics occur the error:
> Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
> And not inject de class implementation
> java.lang.NullPointerException
> at com.test.service.GenericService.print(GenericService.java:18)
> Java Interfaces:
> public interface IGenericBO<T, ID> {
> T persist(T any, List<ID> id);
> }
> public interface IFiscalYearBO extends IGenericBO<String, Long> {
> }
> Implementation class:
> public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> private T x;
>
>
> public T persist(T any, List<ID> id) {
> x = any;
> System.out.println(id);
> System.out.println("Brazil " + x);
> return x;
> }
> }
> public class FiscalYearBO extends
> GenericBOImpl<String, Long> implements
> IFiscalYearBO {
> }
> I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
> I put the patch and testcase.
> Sorry my english :(.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TUSCANY-2681) When a Component class implements
an interfaces that extends other interface and use generics occur the error
Posted by "ant elder (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652033#action_12652033 ]
ant elder commented on TUSCANY-2681:
------------------------------------
I've just added your JIRA ID as a contributor to the Tuscany project so you should be able to manage Tuscany JIRAs now, can you have a try and let me know if it doesn't work?
> When a Component class implements an interfaces that extends other interface and use generics occur the error
> -------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2681
> URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-1.3.2
> Environment: SO: Ubuntu 8.04
> Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> Reporter: Rodolfo Dias
> Priority: Critical
> Fix For: Java-SCA-Next
>
> Attachments: JavaInterfaceUtil.java, testcase.jar, tuscany-interface-java-1.3.2-JIRA-2681-src.zip, tuscany-interface-java-1.3.2-JIRA-2681.jar
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Hi,
> When a Component class implements an interfaces that extends other interface and use generics occur the error:
> Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
> And not inject de class implementation
> java.lang.NullPointerException
> at com.test.service.GenericService.print(GenericService.java:18)
> Java Interfaces:
> public interface IGenericBO<T, ID> {
> T persist(T any, List<ID> id);
> }
> public interface IFiscalYearBO extends IGenericBO<String, Long> {
> }
> Implementation class:
> public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> private T x;
>
>
> public T persist(T any, List<ID> id) {
> x = any;
> System.out.println(id);
> System.out.println("Brazil " + x);
> return x;
> }
> }
> public class FiscalYearBO extends
> GenericBOImpl<String, Long> implements
> IFiscalYearBO {
> }
> I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
> I put the patch and testcase.
> Sorry my english :(.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TUSCANY-2681) When a Component class implements
an interfaces that extends other interface and use generics occur the error
Posted by "Rodolfo Dias (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652023#action_12652023 ]
Rodolfo Dias commented on TUSCANY-2681:
---------------------------------------
Yes, I can fix to cover array types. I subscribe in dev list with dias.sca@gmail.com.
> When a Component class implements an interfaces that extends other interface and use generics occur the error
> -------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2681
> URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-1.3.2
> Environment: SO: Ubuntu 8.04
> Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> Reporter: Rodolfo Dias
> Priority: Critical
> Fix For: Java-SCA-Next
>
> Attachments: JavaInterfaceUtil.java, testcase.jar, tuscany-interface-java-1.3.2-JIRA-2681-src.zip, tuscany-interface-java-1.3.2-JIRA-2681.jar
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Hi,
> When a Component class implements an interfaces that extends other interface and use generics occur the error:
> Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
> And not inject de class implementation
> java.lang.NullPointerException
> at com.test.service.GenericService.print(GenericService.java:18)
> Java Interfaces:
> public interface IGenericBO<T, ID> {
> T persist(T any, List<ID> id);
> }
> public interface IFiscalYearBO extends IGenericBO<String, Long> {
> }
> Implementation class:
> public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> private T x;
>
>
> public T persist(T any, List<ID> id) {
> x = any;
> System.out.println(id);
> System.out.println("Brazil " + x);
> return x;
> }
> }
> public class FiscalYearBO extends
> GenericBOImpl<String, Long> implements
> IFiscalYearBO {
> }
> I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
> I put the patch and testcase.
> Sorry my english :(.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TUSCANY-2681) When a Component class implements
an interfaces that extends other interface and use generics occur the error
Posted by "Luciano Resende (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654487#action_12654487 ]
Luciano Resende commented on TUSCANY-2681:
------------------------------------------
+1 to merge into 1.4 release.
> When a Component class implements an interfaces that extends other interface and use generics occur the error
> -------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2681
> URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-1.3.2
> Environment: SO: Ubuntu 8.04
> Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> Reporter: Rodolfo Dias
> Assignee: Rodolfo Dias
> Priority: Critical
> Fix For: Java-SCA-Next
>
> Attachments: JavaInterfaceUtil.java, JIRA-2681-SRC-DIFF.zip, testcase.jar, tuscany-interface-java-1.3.2-JIRA-2681-src.zip, tuscany-interface-java-1.3.2-JIRA-2681.jar
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Hi,
> When a Component class implements an interfaces that extends other interface and use generics occur the error:
> Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
> And not inject de class implementation
> java.lang.NullPointerException
> at com.test.service.GenericService.print(GenericService.java:18)
> Java Interfaces:
> public interface IGenericBO<T, ID> {
> T persist(T any, List<ID> id);
> }
> public interface IFiscalYearBO extends IGenericBO<String, Long> {
> }
> Implementation class:
> public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> private T x;
>
>
> public T persist(T any, List<ID> id) {
> x = any;
> System.out.println(id);
> System.out.println("Brazil " + x);
> return x;
> }
> }
> public class FiscalYearBO extends
> GenericBOImpl<String, Long> implements
> IFiscalYearBO {
> }
> I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
> I put the patch and testcase.
> Sorry my english :(.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TUSCANY-2681) When a Component class implements an
interfaces that extends other interface and use generics occur the error
Posted by "ant elder (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ant elder updated TUSCANY-2681:
-------------------------------
Fix Version/s: (was: Java-SCA-Next)
Java-SCA-1.4
> When a Component class implements an interfaces that extends other interface and use generics occur the error
> -------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2681
> URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-1.3.2
> Environment: SO: Ubuntu 8.04
> Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> Reporter: Rodolfo Dias
> Assignee: Rodolfo Dias
> Priority: Critical
> Fix For: Java-SCA-1.4
>
> Attachments: JavaInterfaceUtil.java, JIRA-2681-SRC-DIFF.zip, testcase.jar, tuscany-interface-java-1.3.2-JIRA-2681-src.zip, tuscany-interface-java-1.3.2-JIRA-2681.jar
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Hi,
> When a Component class implements an interfaces that extends other interface and use generics occur the error:
> Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
> And not inject de class implementation
> java.lang.NullPointerException
> at com.test.service.GenericService.print(GenericService.java:18)
> Java Interfaces:
> public interface IGenericBO<T, ID> {
> T persist(T any, List<ID> id);
> }
> public interface IFiscalYearBO extends IGenericBO<String, Long> {
> }
> Implementation class:
> public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> private T x;
>
>
> public T persist(T any, List<ID> id) {
> x = any;
> System.out.println(id);
> System.out.println("Brazil " + x);
> return x;
> }
> }
> public class FiscalYearBO extends
> GenericBOImpl<String, Long> implements
> IFiscalYearBO {
> }
> I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
> I put the patch and testcase.
> Sorry my english :(.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TUSCANY-2681) When a Component class implements an
interfaces that extends other interface and use generics occur the error
Posted by "Rodolfo Dias (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rodolfo Dias updated TUSCANY-2681:
----------------------------------
Attachment: testcase.jar
tuscany-interface-java-1.3.2-JIRA-2681.jar
1 - JavaInterfaceIntrospectorImpl - When return parameter is generic e.g T persist(T any) occur incompatiblity between implementation and interface
2 - JavaInterfaceUtil - When input type parameter is generic occur error in <class>.getMethod(String, Class<?>[]) because the the getPhysicalTypes utiliza the operation.getPhysical() and this is String, but getMethod with generic parameter only accept Object.
> When a Component class implements an interfaces that extends other interface and use generics occur the error
> -------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2681
> URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-1.3.2
> Environment: SO: Ubuntu 8.04
> Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> Reporter: Rodolfo Dias
> Priority: Critical
> Attachments: testcase.jar, tuscany-interface-java-1.3.2-JIRA-2681.jar
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Hi,
> When a Component class implements an interfaces that extends other interface and use generics occur the error:
> Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
> And not inject de class implementation
> java.lang.NullPointerException
> at com.test.service.GenericService.print(GenericService.java:18)
> Java Interfaces:
> public interface IGenericBO<T, ID> {
> T persist(T any, List<ID> id);
> }
> public interface IFiscalYearBO extends IGenericBO<String, Long> {
> }
> Implementation class:
> public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> private T x;
>
>
> public T persist(T any, List<ID> id) {
> x = any;
> System.out.println(id);
> System.out.println("Brazil " + x);
> return x;
> }
> }
> public class FiscalYearBO extends
> GenericBOImpl<String, Long> implements
> IFiscalYearBO {
> }
> I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
> I put the patch and testcase.
> Sorry my english :(.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TUSCANY-2681) When a Component class implements an
interfaces that extends other interface and use generics occur the error
Posted by "Rodolfo Dias (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rodolfo Dias updated TUSCANY-2681:
----------------------------------
Attachment: JavaInterfaceUtil.java
Ops, sorry! I can use interface TypeVariable and ParameterizedType instead of implementation class.I attached the file correct. :D
> When a Component class implements an interfaces that extends other interface and use generics occur the error
> -------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2681
> URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-1.3.2
> Environment: SO: Ubuntu 8.04
> Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> Reporter: Rodolfo Dias
> Priority: Critical
> Fix For: Java-SCA-Next
>
> Attachments: JavaInterfaceUtil.java, testcase.jar, tuscany-interface-java-1.3.2-JIRA-2681-src.zip, tuscany-interface-java-1.3.2-JIRA-2681.jar
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Hi,
> When a Component class implements an interfaces that extends other interface and use generics occur the error:
> Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
> And not inject de class implementation
> java.lang.NullPointerException
> at com.test.service.GenericService.print(GenericService.java:18)
> Java Interfaces:
> public interface IGenericBO<T, ID> {
> T persist(T any, List<ID> id);
> }
> public interface IFiscalYearBO extends IGenericBO<String, Long> {
> }
> Implementation class:
> public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> private T x;
>
>
> public T persist(T any, List<ID> id) {
> x = any;
> System.out.println(id);
> System.out.println("Brazil " + x);
> return x;
> }
> }
> public class FiscalYearBO extends
> GenericBOImpl<String, Long> implements
> IFiscalYearBO {
> }
> I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
> I put the patch and testcase.
> Sorry my english :(.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TUSCANY-2681) When a Component class implements
an interfaces that extends other interface and use generics occur the error
Posted by "Rodolfo Dias (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652030#action_12652030 ]
Rodolfo Dias commented on TUSCANY-2681:
---------------------------------------
How I Assign this bug for me?
> When a Component class implements an interfaces that extends other interface and use generics occur the error
> -------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2681
> URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-1.3.2
> Environment: SO: Ubuntu 8.04
> Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> Reporter: Rodolfo Dias
> Priority: Critical
> Fix For: Java-SCA-Next
>
> Attachments: JavaInterfaceUtil.java, testcase.jar, tuscany-interface-java-1.3.2-JIRA-2681-src.zip, tuscany-interface-java-1.3.2-JIRA-2681.jar
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Hi,
> When a Component class implements an interfaces that extends other interface and use generics occur the error:
> Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
> And not inject de class implementation
> java.lang.NullPointerException
> at com.test.service.GenericService.print(GenericService.java:18)
> Java Interfaces:
> public interface IGenericBO<T, ID> {
> T persist(T any, List<ID> id);
> }
> public interface IFiscalYearBO extends IGenericBO<String, Long> {
> }
> Implementation class:
> public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> private T x;
>
>
> public T persist(T any, List<ID> id) {
> x = any;
> System.out.println(id);
> System.out.println("Brazil " + x);
> return x;
> }
> }
> public class FiscalYearBO extends
> GenericBOImpl<String, Long> implements
> IFiscalYearBO {
> }
> I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
> I put the patch and testcase.
> Sorry my english :(.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (TUSCANY-2681) When a Component class implements an
interfaces that extends other interface and use generics occur the error
Posted by "ant elder (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ant elder closed TUSCANY-2681.
------------------------------
Resolution: Fixed
Fix merged to 1.4 in r724648
> When a Component class implements an interfaces that extends other interface and use generics occur the error
> -------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2681
> URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-1.3.2
> Environment: SO: Ubuntu 8.04
> Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> Reporter: Rodolfo Dias
> Assignee: Rodolfo Dias
> Priority: Critical
> Fix For: Java-SCA-1.4
>
> Attachments: JavaInterfaceUtil.java, JIRA-2681-SRC-DIFF.zip, testcase.jar, tuscany-interface-java-1.3.2-JIRA-2681-src.zip, tuscany-interface-java-1.3.2-JIRA-2681.jar
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Hi,
> When a Component class implements an interfaces that extends other interface and use generics occur the error:
> Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
> And not inject de class implementation
> java.lang.NullPointerException
> at com.test.service.GenericService.print(GenericService.java:18)
> Java Interfaces:
> public interface IGenericBO<T, ID> {
> T persist(T any, List<ID> id);
> }
> public interface IFiscalYearBO extends IGenericBO<String, Long> {
> }
> Implementation class:
> public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> private T x;
>
>
> public T persist(T any, List<ID> id) {
> x = any;
> System.out.println(id);
> System.out.println("Brazil " + x);
> return x;
> }
> }
> public class FiscalYearBO extends
> GenericBOImpl<String, Long> implements
> IFiscalYearBO {
> }
> I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
> I put the patch and testcase.
> Sorry my english :(.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TUSCANY-2681) When a Component class implements
an interfaces that extends other interface and use generics occur the error
Posted by "ant elder (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654365#action_12654365 ]
ant elder commented on TUSCANY-2681:
------------------------------------
Looks good, applied to 1.x in r724302, many thanks for the fix Rodolfo.
Should we merge this into the 1.4 release?
> When a Component class implements an interfaces that extends other interface and use generics occur the error
> -------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2681
> URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-1.3.2
> Environment: SO: Ubuntu 8.04
> Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> Reporter: Rodolfo Dias
> Assignee: Rodolfo Dias
> Priority: Critical
> Fix For: Java-SCA-Next
>
> Attachments: JavaInterfaceUtil.java, JIRA-2681-SRC-DIFF.zip, testcase.jar, tuscany-interface-java-1.3.2-JIRA-2681-src.zip, tuscany-interface-java-1.3.2-JIRA-2681.jar
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Hi,
> When a Component class implements an interfaces that extends other interface and use generics occur the error:
> Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
> And not inject de class implementation
> java.lang.NullPointerException
> at com.test.service.GenericService.print(GenericService.java:18)
> Java Interfaces:
> public interface IGenericBO<T, ID> {
> T persist(T any, List<ID> id);
> }
> public interface IFiscalYearBO extends IGenericBO<String, Long> {
> }
> Implementation class:
> public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> private T x;
>
>
> public T persist(T any, List<ID> id) {
> x = any;
> System.out.println(id);
> System.out.println("Brazil " + x);
> return x;
> }
> }
> public class FiscalYearBO extends
> GenericBOImpl<String, Long> implements
> IFiscalYearBO {
> }
> I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
> I put the patch and testcase.
> Sorry my english :(.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TUSCANY-2681) When a Component class implements
an interfaces that extends other interface and use generics occur the error
Posted by "ant elder (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12651571#action_12651571 ]
ant elder commented on TUSCANY-2681:
------------------------------------
thanks for adding the source and diffs so quickly. It looks good, I've one query - its currently using ParameterizedType and TypeVariableImpl from the sun.reflect.generics.reflectiveObjects package, is there a real need to do that or any way it could be done using java.lang classes? We try to avoid using the sun.* packages so we can work with non-Sun JDKs
> When a Component class implements an interfaces that extends other interface and use generics occur the error
> -------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2681
> URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-1.3.2
> Environment: SO: Ubuntu 8.04
> Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> Reporter: Rodolfo Dias
> Priority: Critical
> Fix For: Java-SCA-Next
>
> Attachments: testcase.jar, tuscany-interface-java-1.3.2-JIRA-2681-src.zip, tuscany-interface-java-1.3.2-JIRA-2681.jar
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Hi,
> When a Component class implements an interfaces that extends other interface and use generics occur the error:
> Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
> And not inject de class implementation
> java.lang.NullPointerException
> at com.test.service.GenericService.print(GenericService.java:18)
> Java Interfaces:
> public interface IGenericBO<T, ID> {
> T persist(T any, List<ID> id);
> }
> public interface IFiscalYearBO extends IGenericBO<String, Long> {
> }
> Implementation class:
> public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> private T x;
>
>
> public T persist(T any, List<ID> id) {
> x = any;
> System.out.println(id);
> System.out.println("Brazil " + x);
> return x;
> }
> }
> public class FiscalYearBO extends
> GenericBOImpl<String, Long> implements
> IFiscalYearBO {
> }
> I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
> I put the patch and testcase.
> Sorry my english :(.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (TUSCANY-2681) When a Component class
implements an interfaces that extends other interface and use generics
occur the error
Posted by "Rodolfo Dias (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12653687#action_12653687 ]
dias.rodolfo edited comment on TUSCANY-2681 at 12/7/08 11:21 PM:
-----------------------------------------------------------------
Hi, I fixed class JavaInterfaceUtil to fix the problem reported by Elder. I run the all test within itest directory, inclusive itest\databindings\jaxb-bottom-up, and all is ok. The JIRA-2681-SRC-DIFF.zip contains the modified source.
was (Author: dias.rodolfo):
Hi, I fixed class JavaInterfaceUtil to fix the problem reported by Elder. I run the all test within itest directory, inclusive itest\databindings\jaxb-bottom-up, and all is ok.
> When a Component class implements an interfaces that extends other interface and use generics occur the error
> -------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2681
> URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-1.3.2
> Environment: SO: Ubuntu 8.04
> Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> Reporter: Rodolfo Dias
> Assignee: Rodolfo Dias
> Priority: Critical
> Fix For: Java-SCA-Next
>
> Attachments: JavaInterfaceUtil.java, JIRA-2681-SRC-DIFF.zip, testcase.jar, tuscany-interface-java-1.3.2-JIRA-2681-src.zip, tuscany-interface-java-1.3.2-JIRA-2681.jar
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Hi,
> When a Component class implements an interfaces that extends other interface and use generics occur the error:
> Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
> And not inject de class implementation
> java.lang.NullPointerException
> at com.test.service.GenericService.print(GenericService.java:18)
> Java Interfaces:
> public interface IGenericBO<T, ID> {
> T persist(T any, List<ID> id);
> }
> public interface IFiscalYearBO extends IGenericBO<String, Long> {
> }
> Implementation class:
> public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> private T x;
>
>
> public T persist(T any, List<ID> id) {
> x = any;
> System.out.println(id);
> System.out.println("Brazil " + x);
> return x;
> }
> }
> public class FiscalYearBO extends
> GenericBOImpl<String, Long> implements
> IFiscalYearBO {
> }
> I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
> I put the patch and testcase.
> Sorry my english :(.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TUSCANY-2681) When a Component class implements
an interfaces that extends other interface and use generics occur the error
Posted by "Luciano Resende (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-2681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12649251#action_12649251 ]
Luciano Resende commented on TUSCANY-2681:
------------------------------------------
You mentioned that you added a patch and testcase, but i can't find it.... did you attached a patch to the jira that fixes the problem ?
> When a Component class implements an interfaces that extends other interface and use generics occur the error
> -------------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2681
> URL: https://issues.apache.org/jira/browse/TUSCANY-2681
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Java Implementation Extension
> Affects Versions: Java-SCA-1.3.2
> Environment: SO: Ubuntu 8.04
> Java: BEA JRockit(R) JRE 5.0 Update 11 R27.3.1
> Reporter: Rodolfo Dias
> Priority: Critical
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> Hi,
> When a Component class implements an interfaces that extends other interface and use generics occur the error:
> Nov 19, 2008 11:12:09 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: Incompatible interfaces on wire source and target : source = GenericServiceComponent/fiscalYearBO target = FiscalYearBO
> Nov 19, 2008 11:12:10 PM org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceWireBuilderImpl
> WARNING: No targets for reference: Composite = {http://utrafe}GenericService Reference = fiscalYearBO
> And not inject de class implementation
> java.lang.NullPointerException
> at com.test.service.GenericService.print(GenericService.java:18)
> Java Interfaces:
> public interface IGenericBO<T, ID> {
> T persist(T any, List<ID> id);
> }
> public interface IFiscalYearBO extends IGenericBO<String, Long> {
> }
> Implementation class:
> public abstract class GenericBOImpl<T, ID> implements IGenericBO<T, ID> {
> private T x;
>
>
> public T persist(T any, List<ID> id) {
> x = any;
> System.out.println(id);
> System.out.println("Brazil " + x);
> return x;
> }
> }
> public class FiscalYearBO extends
> GenericBOImpl<String, Long> implements
> IFiscalYearBO {
> }
> I fixed the problem alter the JavaInterfaceIntrospectorImpl, but i have other error and alter the JavaInterfaceUtil code too.
> I put the patch and testcase.
> Sorry my english :(.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.