explanation:
Method superMethod = ClassUtil.getClassMethodWithTypes(pb.getBeanClass(),
method.getName(), Arrays.asList(method.getParameterTypes()));
if (superMethod != null)
{
producerBeanListHelper.add(pb);
This is
a) missing the return type check
superMethod.getReturnType().isAssignableFrom(method.getReturnType())
(or kind of)
b) adds pb, and will do this for ALL producermethods in the parent class.
Regardless if they are @Specialized or not.
LieGrue,
strub
--- Mark Struberg <[email protected]> schrieb am Mo, 1.3.2010:
> Von: Mark Struberg <[email protected]>
> Betreff: AW: svn commit: r917636 - in /openwebbeans/trunk: ./ atinject-tck/
> samples/ samples/conversation-sample/ samples/ejb-sample/
> samples/ejb-telephone/ samples/guess/ samples/jms-sample/ samples/jsf2sample/
> samples/reservation/ samples/standalone-sample/ webbe...
> An: [email protected]
> Datum: Montag, 1. März, 2010 19:33 Uhr
> gurkan, please wait!
>
> I've found the problem
>
> The getClassMethodWithTypes, but do not check for the
> return Type!
>
>
>
> --- [email protected]
> <[email protected]>
> schrieb am Mo, 1.3.2010:
>
> > Von: [email protected]
> <[email protected]>
> > Betreff: svn commit: r917636 - in /openwebbeans/trunk:
> ./ atinject-tck/ samples/ samples/conversation-sample/
> samples/ejb-sample/ samples/ejb-telephone/ samples/guess/
> samples/jms-sample/ samples/jsf2sample/ samples/reservation/
> samples/standalone-sample/ webbe...
> > An: [email protected]
> > Datum: Montag, 1. März, 2010 19:30 Uhr
> > Author: gerdogdu
> > Date: Mon Mar 1 18:30:23 2010
> > New Revision: 917636
> >
> > URL: http://svn.apache.org/viewvc?rev=917636&view=rev
> > Log:
> > [maven-release-plugin] prepare release 1.0.0-M4
> >
> > Modified:
> > openwebbeans/trunk/atinject-tck/pom.xml
> > openwebbeans/trunk/pom.xml
> >
> >
> openwebbeans/trunk/samples/conversation-sample/pom.xml
> >
> > openwebbeans/trunk/samples/ejb-sample/pom.xml
> >
> > openwebbeans/trunk/samples/ejb-telephone/pom.xml
> > openwebbeans/trunk/samples/guess/pom.xml
> >
> > openwebbeans/trunk/samples/jms-sample/pom.xml
> >
> > openwebbeans/trunk/samples/jsf2sample/pom.xml
> > openwebbeans/trunk/samples/pom.xml
> >
> > openwebbeans/trunk/samples/reservation/pom.xml
> >
> > openwebbeans/trunk/samples/standalone-sample/pom.xml
> > openwebbeans/trunk/webbeans-impl/pom.xml
> > openwebbeans/trunk/webbeans-jms/pom.xml
> > openwebbeans/trunk/webbeans-jsf/pom.xml
> > openwebbeans/trunk/webbeans-openejb/pom.xml
> > openwebbeans/trunk/webbeans-porting/pom.xml
> > openwebbeans/trunk/webbeans-resource/pom.xml
> > openwebbeans/trunk/webbeans-spi/pom.xml
> >
> > Modified: openwebbeans/trunk/atinject-tck/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/openwebbeans/trunk/atinject-tck/pom.xml?rev=917636&r1=917635&r2=917636&view=diff
> >
> ==============================================================================
> > --- openwebbeans/trunk/atinject-tck/pom.xml
> (original)
> > +++ openwebbeans/trunk/atinject-tck/pom.xml Mon Mar
> 1
> > 18:30:23 2010
> > @@ -21,7 +21,7 @@
> > <parent>
> >
> >
> <groupId>org.apache.openwebbeans</groupId>
> >
> >
> <artifactId>openwebbeans</artifactId>
> > -
> > <version>1.0.0-SNAPSHOT</version>
> > +
> > <version>1.0.0-M4</version>
> > </parent>
> >
> >
> <artifactId>atinject-tck</artifactId>
> > <name>Apache OpenWebBeans ::
> > OpenWebBeans JSR-330 TCK</name>
> >
> > Modified: openwebbeans/trunk/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/openwebbeans/trunk/pom.xml?rev=917636&r1=917635&r2=917636&view=diff
> >
> ==============================================================================
> > --- openwebbeans/trunk/pom.xml (original)
> > +++ openwebbeans/trunk/pom.xml Mon Mar 1 18:30:23
> > 2010
> > @@ -24,7 +24,7 @@
> >
> > <artifactId>openwebbeans</artifactId>
> > <name>Apache
> > OpenWebBeans</name>
> > <packaging>pom</packaging>
> > -
> > <version>1.0.0-SNAPSHOT</version>
> > +
> > <version>1.0.0-M4</version>
> >
> >
> > <url>openwebbeans.apache.org</url>
> >
> > @@ -41,9 +41,9 @@
> >
> > <inceptionYear>2008</inceptionYear>
> >
> > <scm>
> > -
> > <connection>scm:svn:http://svn.apache.org/repos/asf/openwebbeans/trunk</connection>
> > -
> > <developerConnection>scm:svn:https://svn.apache.org/repos/asf/openwebbeans/trunk</developerConnection>
> > - <url>https://svn.apache.org/repos/asf/openwebbeans/trunk</url>
> > +
> > <connection>scm:svn:http://svn.apache.org/repos/asf/openwebbeans/tags/1.0.0-M4</connection>
> > +
> > <developerConnection>scm:svn:https://svn.apache.org/repos/asf/openwebbeans/tags/1.0.0-M4</developerConnection>
> > +
> > <url>https://svn.apache.org/repos/asf/openwebbeans/tags/1.0.0-M4</url>
> > </scm>
> >
> > <issueManagement>
> > @@ -557,7 +557,7 @@
> > </distributionManagement>
> >
> > <properties>
> > -
> >
> <openwebbeans.version>1.0.0-SNAPSHOT</openwebbeans.version>
> > +
> >
> <openwebbeans.version>1.0.0-M4</openwebbeans.version>
> >
> >
> <log4j.version>1.2.14</log4j.version>
> >
> >
> <geronimo_jaxws.version>1.0</geronimo_jaxws.version>
> >
> >
> <geronimo_servlet.version>1.2</geronimo_servlet.version>
> >
> > Modified:
> >
> openwebbeans/trunk/samples/conversation-sample/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/openwebbeans/trunk/samples/conversation-sample/pom.xml?rev=917636&r1=917635&r2=917636&view=diff
> >
> ==============================================================================
> > ---
> openwebbeans/trunk/samples/conversation-sample/pom.xml
> > (original)
> > +++
> openwebbeans/trunk/samples/conversation-sample/pom.xml
> > Mon Mar 1 18:30:23 2010
> > @@ -14,14 +14,13 @@
> > the specific
> > language governing permissions and limitations under
> the
> > License.
> > -->
> > -<project xmlns="http://maven.apache.org/POM/4.0.0"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd">
> > +<project xmlns="http://maven.apache.org/POM/4.0.0"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd">
> >
> > <modelVersion>4.0.0</modelVersion>
> > <description>Sample JSF2
> > Application</description>
> > <parent>
> >
> > <artifactId>samples</artifactId>
> >
> >
> <groupId>org.apache.openwebbeans</groupId>
> > -
> > <version>1.0.0-SNAPSHOT</version>
> > +
> > <version>1.0.0-M4</version>
> > </parent>
> >
> >
> >
> <groupId>org.apache.openwebbeans.samples</groupId>
> >
> > Modified:
> openwebbeans/trunk/samples/ejb-sample/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/openwebbeans/trunk/samples/ejb-sample/pom.xml?rev=917636&r1=917635&r2=917636&view=diff
> >
> ==============================================================================
> > --- openwebbeans/trunk/samples/ejb-sample/pom.xml
> > (original)
> > +++ openwebbeans/trunk/samples/ejb-sample/pom.xml Mon
> > Mar 1 18:30:23 2010
> > @@ -19,7 +19,7 @@
> > <parent>
> >
> > <artifactId>samples</artifactId>
> >
> >
> <groupId>org.apache.openwebbeans</groupId>
> > -
> > <version>1.0.0-SNAPSHOT</version>
> > +
> > <version>1.0.0-M4</version>
> > </parent>
> >
> > <modelVersion>4.0.0</modelVersion>
> >
> >
> <groupId>org.apache.openwebbeans.samples</groupId>
> >
> > Modified:
> openwebbeans/trunk/samples/ejb-telephone/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/openwebbeans/trunk/samples/ejb-telephone/pom.xml?rev=917636&r1=917635&r2=917636&view=diff
> >
> ==============================================================================
> > --- openwebbeans/trunk/samples/ejb-telephone/pom.xml
> > (original)
> > +++ openwebbeans/trunk/samples/ejb-telephone/pom.xml
> Mon
> > Mar 1 18:30:23 2010
> > @@ -19,7 +19,7 @@
> > <parent>
> >
> > <artifactId>samples</artifactId>
> >
> >
> <groupId>org.apache.openwebbeans</groupId>
> > -
> > <version>1.0.0-SNAPSHOT</version>
> > +
> > <version>1.0.0-M4</version>
> > </parent>
> >
> > <modelVersion>4.0.0</modelVersion>
> >
> >
> <groupId>org.apache.openwebbeans.samples</groupId>
> >
> > Modified: openwebbeans/trunk/samples/guess/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/openwebbeans/trunk/samples/guess/pom.xml?rev=917636&r1=917635&r2=917636&view=diff
> >
> ==============================================================================
> > --- openwebbeans/trunk/samples/guess/pom.xml
> (original)
> > +++ openwebbeans/trunk/samples/guess/pom.xml Mon
> Mar
> > 1 18:30:23 2010
> > @@ -19,7 +19,7 @@
> > <parent>
> >
> > <artifactId>samples</artifactId>
> >
> >
> <groupId>org.apache.openwebbeans</groupId>
> > -
> > <version>1.0.0-SNAPSHOT</version>
> > +
> > <version>1.0.0-M4</version>
> > </parent>
> >
> > <modelVersion>4.0.0</modelVersion>
> >
> >
> <groupId>org.apache.openwebbeans.samples</groupId>
> >
> > Modified:
> openwebbeans/trunk/samples/jms-sample/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/openwebbeans/trunk/samples/jms-sample/pom.xml?rev=917636&r1=917635&r2=917636&view=diff
> >
> ==============================================================================
> > --- openwebbeans/trunk/samples/jms-sample/pom.xml
> > (original)
> > +++ openwebbeans/trunk/samples/jms-sample/pom.xml Mon
> > Mar 1 18:30:23 2010
> > @@ -19,7 +19,7 @@
> > <parent>
> >
> > <artifactId>samples</artifactId>
> >
> >
> <groupId>org.apache.openwebbeans</groupId>
> > -
> > <version>1.0.0-SNAPSHOT</version>
> > +
> > <version>1.0.0-M4</version>
> > </parent>
> >
> > <modelVersion>4.0.0</modelVersion>
> >
> >
> <groupId>org.apache.openwebbeans.samples</groupId>
> >
> > Modified:
> openwebbeans/trunk/samples/jsf2sample/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/openwebbeans/trunk/samples/jsf2sample/pom.xml?rev=917636&r1=917635&r2=917636&view=diff
> >
> ==============================================================================
> > --- openwebbeans/trunk/samples/jsf2sample/pom.xml
> > (original)
> > +++ openwebbeans/trunk/samples/jsf2sample/pom.xml Mon
> > Mar 1 18:30:23 2010
> > @@ -14,14 +14,13 @@
> > the specific
> > language governing permissions and limitations under
> the
> > License.
> > -->
> > -<project xmlns="http://maven.apache.org/POM/4.0.0"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd">
> > +<project xmlns="http://maven.apache.org/POM/4.0.0"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd">
> >
> > <modelVersion>4.0.0</modelVersion>
> > <description>Sample JSF2
> > Application</description>
> > <parent>
> >
> > <artifactId>samples</artifactId>
> >
> >
> <groupId>org.apache.openwebbeans</groupId>
> > -
> > <version>1.0.0-SNAPSHOT</version>
> > +
> > <version>1.0.0-M4</version>
> > </parent>
> >
> >
> >
> <groupId>org.apache.openwebbeans.samples</groupId>
> >
> > Modified: openwebbeans/trunk/samples/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/openwebbeans/trunk/samples/pom.xml?rev=917636&r1=917635&r2=917636&view=diff
> >
> ==============================================================================
> > --- openwebbeans/trunk/samples/pom.xml (original)
> > +++ openwebbeans/trunk/samples/pom.xml Mon Mar 1
> > 18:30:23 2010
> > @@ -21,7 +21,7 @@
> > <parent>
> >
> >
> <groupId>org.apache.openwebbeans</groupId>
> >
> > <artifactId>openwebbeans</artifactId>
> > -
> > <version>1.0.0-SNAPSHOT</version>
> > +
> > <version>1.0.0-M4</version>
> > </parent>
> >
> > <artifactId>samples</artifactId>
> > <packaging>pom</packaging>
> >
> > Modified:
> openwebbeans/trunk/samples/reservation/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/openwebbeans/trunk/samples/reservation/pom.xml?rev=917636&r1=917635&r2=917636&view=diff
> >
> ==============================================================================
> > --- openwebbeans/trunk/samples/reservation/pom.xml
> > (original)
> > +++ openwebbeans/trunk/samples/reservation/pom.xml
> Mon
> > Mar 1 18:30:23 2010
> > @@ -19,7 +19,7 @@
> > <parent>
> >
> > <artifactId>samples</artifactId>
> >
> >
> <groupId>org.apache.openwebbeans</groupId>
> > -
> > <version>1.0.0-SNAPSHOT</version>
> > +
> > <version>1.0.0-M4</version>
> > </parent>
> >
> > <modelVersion>4.0.0</modelVersion>
> >
> >
> <groupId>org.apache.openwebbeans.samples</groupId>
> >
> > Modified:
> > openwebbeans/trunk/samples/standalone-sample/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/openwebbeans/trunk/samples/standalone-sample/pom.xml?rev=917636&r1=917635&r2=917636&view=diff
> >
> ==============================================================================
> > ---
> openwebbeans/trunk/samples/standalone-sample/pom.xml
> > (original)
> > +++
> openwebbeans/trunk/samples/standalone-sample/pom.xml
> > Mon Mar 1 18:30:23 2010
> > @@ -16,13 +16,12 @@
> > License.
> > -->
> >
> > -<project xmlns="http://maven.apache.org/POM/4.0.0"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd">
> > +<project xmlns="http://maven.apache.org/POM/4.0.0"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd">
> >
> > <modelVersion>4.0.0</modelVersion>
> > <parent>
> >
> >
> <groupId>org.apache.openwebbeans</groupId>
> >
> > <artifactId>openwebbeans</artifactId>
> > -
> > <version>1.0.0-SNAPSHOT</version>
> > +
> > <version>1.0.0-M4</version>
> > </parent>
> >
> >
> <artifactId>standalone-sample</artifactId>
> > <name>Apache OpenWebBeans ::
> > OpenWebBeans Java SE Sample</name>
> >
> > Modified: openwebbeans/trunk/webbeans-impl/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/pom.xml?rev=917636&r1=917635&r2=917636&view=diff
> >
> ==============================================================================
> > --- openwebbeans/trunk/webbeans-impl/pom.xml
> (original)
> > +++ openwebbeans/trunk/webbeans-impl/pom.xml Mon
> Mar
> > 1 18:30:23 2010
> > @@ -21,7 +21,7 @@
> > <parent>
> >
> >
> <groupId>org.apache.openwebbeans</groupId>
> >
> > <artifactId>openwebbeans</artifactId>
> > -
> > <version>1.0.0-SNAPSHOT</version>
> > +
> > <version>1.0.0-M4</version>
> > </parent>
> >
> >
> <artifactId>openwebbeans-impl</artifactId>
> > <name>Apache OpenWebBeans ::
> > JSR-299 Implementation</name>
> >
> > Modified: openwebbeans/trunk/webbeans-jms/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-jms/pom.xml?rev=917636&r1=917635&r2=917636&view=diff
> >
> ==============================================================================
> > --- openwebbeans/trunk/webbeans-jms/pom.xml
> (original)
> > +++ openwebbeans/trunk/webbeans-jms/pom.xml Mon Mar
> 1
> > 18:30:23 2010
> > @@ -21,7 +21,7 @@
> > <parent>
> >
> >
> <groupId>org.apache.openwebbeans</groupId>
> >
> > <artifactId>openwebbeans</artifactId>
> > -
> > <version>1.0.0-SNAPSHOT</version>
> > +
> > <version>1.0.0-M4</version>
> > </parent>
> >
> > <artifactId>openwebbeans-jms</artifactId>
> > <name>Apache OpenWebBeans :: JMS
> > integration</name>
> >
> > Modified: openwebbeans/trunk/webbeans-jsf/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-jsf/pom.xml?rev=917636&r1=917635&r2=917636&view=diff
> >
> ==============================================================================
> > --- openwebbeans/trunk/webbeans-jsf/pom.xml
> (original)
> > +++ openwebbeans/trunk/webbeans-jsf/pom.xml Mon Mar
> 1
> > 18:30:23 2010
> > @@ -20,7 +20,7 @@
> > <parent>
> >
> >
> <groupId>org.apache.openwebbeans</groupId>
> >
> >
> <artifactId>openwebbeans</artifactId>
> > -
> > <version>1.0.0-SNAPSHOT</version>
> > +
> > <version>1.0.0-M4</version>
> > </parent>
> >
> >
> >
> <artifactId>openwebbeans-jsf</artifactId>
> >
> > Modified: openwebbeans/trunk/webbeans-openejb/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-openejb/pom.xml?rev=917636&r1=917635&r2=917636&view=diff
> >
> ==============================================================================
> > --- openwebbeans/trunk/webbeans-openejb/pom.xml
> (original)
> > +++ openwebbeans/trunk/webbeans-openejb/pom.xml Mon
> > Mar 1 18:30:23 2010
> > @@ -21,7 +21,7 @@
> > <parent>
> >
> >
> <groupId>org.apache.openwebbeans</groupId>
> >
> > <artifactId>openwebbeans</artifactId>
> > -
> > <version>1.0.0-SNAPSHOT</version>
> > +
> > <version>1.0.0-M4</version>
> > </parent>
> >
> > <artifactId>openwebbeans-ejb</artifactId>
> > <name>Apache OpenWebBeans ::
> > OpenEJB integration</name>
> >
> > Modified: openwebbeans/trunk/webbeans-porting/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-porting/pom.xml?rev=917636&r1=917635&r2=917636&view=diff
> >
> ==============================================================================
> > --- openwebbeans/trunk/webbeans-porting/pom.xml
> (original)
> > +++ openwebbeans/trunk/webbeans-porting/pom.xml Mon
> > Mar 1 18:30:23 2010
> > @@ -16,14 +16,12 @@
> > License.
> > -->
> >
> > -<project xmlns="http://maven.apache.org/POM/4.0.0"
> > - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd">
> > +<project xmlns="http://maven.apache.org/POM/4.0.0"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd">
> >
> > <modelVersion>4.0.0</modelVersion>
> > <parent>
> >
> >
> <groupId>org.apache.openwebbeans</groupId>
> >
> > <artifactId>openwebbeans</artifactId>
> > -
> > <version>1.0.0-SNAPSHOT</version>
> > +
> > <version>1.0.0-M4</version>
> > </parent>
> >
> >
> >
> <artifactId>openwebbeans-porting</artifactId>
> >
> > Modified:
> openwebbeans/trunk/webbeans-resource/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-resource/pom.xml?rev=917636&r1=917635&r2=917636&view=diff
> >
> ==============================================================================
> > --- openwebbeans/trunk/webbeans-resource/pom.xml
> > (original)
> > +++ openwebbeans/trunk/webbeans-resource/pom.xml Mon
> > Mar 1 18:30:23 2010
> > @@ -23,7 +23,7 @@
> > <parent>
> >
> >
> <groupId>org.apache.openwebbeans</groupId>
> >
> >
> <artifactId>openwebbeans</artifactId>
> > -
> > <version>1.0.0-SNAPSHOT</version>
> > +
> > <version>1.0.0-M4</version>
> > </parent>
> >
> >
> <artifactId>openwebbeans-resource</artifactId>
> > <name>Apache OpenWebBeans ::
> > Resource Integration</name>
> >
> > Modified: openwebbeans/trunk/webbeans-spi/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-spi/pom.xml?rev=917636&r1=917635&r2=917636&view=diff
> >
> ==============================================================================
> > --- openwebbeans/trunk/webbeans-spi/pom.xml
> (original)
> > +++ openwebbeans/trunk/webbeans-spi/pom.xml Mon Mar
> 1
> > 18:30:23 2010
> > @@ -20,7 +20,7 @@
> > <parent>
> >
> >
> <groupId>org.apache.openwebbeans</groupId>
> >
> >
> <artifactId>openwebbeans</artifactId>
> > -
> > <version>1.0.0-SNAPSHOT</version>
> > +
> > <version>1.0.0-M4</version>
> > </parent>
> >
> >
> >
> <artifactId>openwebbeans-spi</artifactId>
> >
> >
> >
>
> __________________________________________________
> Do You Yahoo!?
> Sie sind Spam leid? Yahoo! Mail verfügt über einen
> herausragenden Schutz gegen Massenmails.
> http://mail.yahoo.com
>
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen
Massenmails.
http://mail.yahoo.com