Re: [webbeans-dev] ri build failure
by Ales Justin
Yup, looks like some old xsd stuff was still lying around.
Deleting impl's target I can now move fwd, but I get this:
[INFO] Surefire report directory:
C:\projects\web-beans\ri\impl\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
08:43:58,671 WARN [bean.AbstractProducerBean] Executing producer field
or method Annotated method on class
org.jboss.webbeans.test.unit.lookup.circular.NormalSelfConsumingDependentProducer
Method Violation @Produces @SelfConsumingDependent1 public
produceViolation();
on incomplete declaring bean Application scoped unnamed simple bean
org.jboss.webbeans.test.unit.lookup.circular.NormalSelfConsumingDependentProducer,
API types = [NormalSelfConsumingDependentProducer, Object], binding
types = [@Current] due to cir
cular injection
08:43:58,687 WARN [bean.AbstractProducerBean] Executing producer field
or method Annotated method on class
org.jboss.webbeans.test.unit.lookup.circular.DependentSelfConsumingDependentProducer
Method Violation @Produces @SelfConsumingDependent publi
c produceViolation();
on incomplete declaring bean Dependent unnamed simple bean
org.jboss.webbeans.test.unit.lookup.circular.DependentSelfConsumingDependentProducer,
API types = [DependentSelfConsumingDependentProducer, Object], binding
types = [@Current] due to circul
ar injection
Tests run: 37, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.172
sec <<< FAILURE!
Results :
Failed tests:
testGameGenerator(org.jboss.webbeans.test.examples.ExampleTest)
Tests run: 37, Failures: 1, Errors: 0, Skipped: 0
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
Nicklas Karlsson wrote:
> Do you get any more info as to which class is failing? The problem is
> probably that you are trying to run a Java 6 class with a Java 5
> runtime. But since you have never compiled any yourself and classes
> shouldn't be checked in, I wonder where it comes from. Do you still
> have a xsd package lying around somewhere?
>
> 2009/3/16 Ales Justin <ales.justin(a)gmail.com>:
>> btw: my java home is jdk5
>>
>> Ales Justin wrote:
>>> mvn clean install
>>>
>>> Or do I need some more exact nuking?
>>>
>>> Nicklas Karlsson wrote:
>>>> There must be some old classes around. Tried cleaning it out first?
>>>>
>>>> 2009/3/16 Ales Justin <ales.justin(a)gmail.com>:
>>>>> Still some version mismatch. :-(
>>>>>
>>>>> ---
>>>>>
>>>>> INFO] Surefire report directory:
>>>>> C:\projects\web-beans\ri\jboss-tck-runner\target\surefire-reports
>>>>>
>>>>> ------------------------------------------------------
>>>>> T E S T S
>>>>> ------------------------------------------------------
>>>>> unning TestSuite
>>>>> rg.apache.maven.surefire.booter.SurefireExecutionException: Bad version
>>>>> number in .class file; nested exception is
>>>>> java.lang.UnsupportedClassVersionError: Bad version number in .class
>>>>> file
>>>>>
>>>>> Pete Muir wrote:
>>>>>> It's moved to extensions/trunk/xsd and depends on java5 now :-)
>>>>>>
>>>>>> On 15 Mar 2009, at 14:11, Nicklas Karlsson wrote:
>>>>>>
>>>>>>> Oops, guilty as charged. It's probably because there is a Java 6
>>>>>>> dependency. Pete promised (threatened?) to break out the schema XSD
>>>>>>> generator into a separate module.
>>>>>>> I'm AFK for some time so if anyone else needs a quick fix, feel free
>>>>>>> to comment out. Sorry for the hassle.
>>>>>>>
>>>>>>> On Sun, Mar 15, 2009 at 3:04 PM, Ales Justin <ales.justin(a)gmail.com>
>>>>>>> wrote:
>>>>>>>> Cannot build ri.
>>>>>>>>
>>>>>>>> Somebody forgot to commit some lib change
>>>>>>>> or is this just me - needing some repo/project nuking?
>>>>>>>>
>>>>>>>> -----------------------
>>>>>>>>
>>>>>>>> [INFO] Compiling 183 source files to
>>>>>>>> C:\projects\web-beans\ri\impl\target\classes
>>>>>>>> [INFO]
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------
>>>>>>>> [ERROR] BUILD FAILURE
>>>>>>>> [INFO]
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------
>>>>>>>> [INFO] Compilation failure
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\XSDHelper.java:[31,35]
>>>>>>>> package javax.annotation.processing does not
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\XSDHelper.java:[32,19]
>>>>>>>> package javax.tools does not exist
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\XSDHelper.java:[55,11]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class Filer
>>>>>>>> location: class org.jboss.webbeans.xsd.helpers.XSDHelper
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\XSDHelper.java:[66,20]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class Filer
>>>>>>>> location: class org.jboss.webbeans.xsd.helpers.XSDHelper
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\DataSetter.java:[20,32]
>>>>>>>> package javax.lang.model.element does not e
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\DataSetter.java:[21,32]
>>>>>>>> package javax.lang.model.element does not e
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\DataSetter.java:[22,32]
>>>>>>>> package javax.lang.model.element does not e
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\DataSetter.java:[23,32]
>>>>>>>> package javax.lang.model.element does not e
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\DataSetter.java:[24,32]
>>>>>>>> package javax.lang.model.element does not e
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\DataSetter.java:[46,35]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class Element
>>>>>>>> location: class org.jboss.webbeans.xsd.helpers.DataSetter
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\DataSetter.java:[58,64]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class Element
>>>>>>>> location: class org.jboss.webbeans.xsd.helpers.DataSetter
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\DataSetter.java:[71,64]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class Element
>>>>>>>> location: class org.jboss.webbeans.xsd.helpers.DataSetter
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\DataSetter.java:[88,65]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class Element
>>>>>>>> location: class org.jboss.webbeans.xsd.helpers.DataSetter
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[24,35]
>>>>>>>> package javax.annotation.processing doe
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[25,35]
>>>>>>>> package javax.annotation.processing doe
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[26,35]
>>>>>>>> package javax.annotation.processing doe
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[27,35]
>>>>>>>> package javax.annotation.processing doe
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[28,35]
>>>>>>>> package javax.annotation.processing doe
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[29,24]
>>>>>>>> package javax.lang.model does not exist
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[30,32]
>>>>>>>> package javax.lang.model.element does n
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[31,32]
>>>>>>>> package javax.lang.model.element does n
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[32,29]
>>>>>>>> package javax.lang.model.type does not
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[33,29]
>>>>>>>> package javax.lang.model.type does not
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[34,29]
>>>>>>>> package javax.lang.model.util does not
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[49,44]
>>>>>>>> cannot find symbol
>>>>>>>> symbol: class AbstractProcessor
>>>>>>>> public class PackageSchemaGenerator extends AbstractProcessor
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[55,33]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class ProcessingEnvironment
>>>>>>>> location: class org.jboss.webbeans.xsd.PackageSchemaGenerator
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[62,40]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class TypeElement
>>>>>>>> location: class org.jboss.webbeans.xsd.PackageSchemaGenerator
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[62,66]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class RoundEnvironment
>>>>>>>> location: class org.jboss.webbeans.xsd.PackageSchemaGenerator
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[87,35]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class Element
>>>>>>>> location: class org.jboss.webbeans.xsd.PackageSchemaGenerator
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[47,1]
>>>>>>>> cannot find symbol
>>>>>>>> symbol: class SupportedSourceVersion
>>>>>>>> @SupportedSourceVersion(SourceVersion.RELEASE_6)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[48,1]
>>>>>>>> cannot find symbol
>>>>>>>> symbol: class SupportedAnnotationTypes
>>>>>>>> @SupportedAnnotationTypes("*")
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\XSDHelper.java:[126,32]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : variable StandardLocation
>>>>>>>> location: class org.jboss.webbeans.xsd.helpers.XSDHelper
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\XSDHelper.java:[184,36]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : variable StandardLocation
>>>>>>>> location: class org.jboss.webbeans.xsd.helpers.XSDHelper
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\DataSetter.java:[48,45]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : variable Modifier
>>>>>>>> location: class org.jboss.webbeans.xsd.helpers.DataSetter
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\DataSetter.java:[60,6]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class TypeElement
>>>>>>>> location: class org.jboss.webbeans.xsd.helpers.DataSetter
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\DataSetter.java:[60,33]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class TypeElement
>>>>>>>> location: class org.jboss.webbeans.xsd.helpers.DataSetter
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\DataSetter.java:[94,6]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class ExecutableElement
>>>>>>>> location: class org.jboss.webbeans.xsd.helpers.DataSetter
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\DataSetter.java:[94,45]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class ExecutableElement
>>>>>>>> location: class org.jboss.webbeans.xsd.helpers.DataSetter
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\helpers\DataSetter.java:[100,11]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class VariableElement
>>>>>>>> location: class org.jboss.webbeans.xsd.helpers.DataSetter
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[57,6]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : variable super
>>>>>>>> location: class org.jboss.webbeans.xsd.PackageSchemaGenerator
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[54,4]
>>>>>>>> method does not override a method from i
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[67,11]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class Element
>>>>>>>> location: class org.jboss.webbeans.xsd.PackageSchemaGenerator
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[61,4]
>>>>>>>> method does not override a method from i
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[89,6]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class TypeElement
>>>>>>>> location: class org.jboss.webbeans.xsd.PackageSchemaGenerator
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[89,33]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class TypeElement
>>>>>>>> location: class org.jboss.webbeans.xsd.PackageSchemaGenerator
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[93,51]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : variable TypeKind
>>>>>>>> location: class org.jboss.webbeans.xsd.PackageSchemaGenerator
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[95,24]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class DeclaredType
>>>>>>>> location: class org.jboss.webbeans.xsd.PackageSchemaGenerator
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[105,11]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class Element
>>>>>>>> location: class org.jboss.webbeans.xsd.PackageSchemaGenerator
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[105,27]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : variable ElementFilter
>>>>>>>> location: class org.jboss.webbeans.xsd.PackageSchemaGenerator
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[110,11]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class Element
>>>>>>>> location: class org.jboss.webbeans.xsd.PackageSchemaGenerator
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[110,28]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : variable ElementFilter
>>>>>>>> location: class org.jboss.webbeans.xsd.PackageSchemaGenerator
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[115,11]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : class Element
>>>>>>>> location: class org.jboss.webbeans.xsd.PackageSchemaGenerator
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\projects\web-beans\ri\impl\src\main\java\org\jboss\webbeans\xsd\PackageSchemaGenerator.java:[115,33]
>>>>>>>> cannot find symbol
>>>>>>>> symbol : variable ElementFilter
>>>>>>>> location: class org.jboss.webbeans.xsd.PackageSchemaGenerator
>>>>>>>>
>>>>>>>>
>>>>>>>> [INFO]
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------
>>>>>>>> [INFO] For more information, run Maven with the -e switch
>>>>>>>> [INFO]
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------
>>>>>>>> [INFO] Total time: 35 seconds
>>>>>>>> [INFO] Finished at: Sun Mar 15 14:02:01 CET 2009
>>>>>>>> [INFO] Final Memory: 43M/63M
>>>>>>>> [INFO]
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------
>>>>>>>> _______________________________________________
>>>>>>>> webbeans-dev mailing list
>>>>>>>> webbeans-dev(a)lists.jboss.org
>>>>>>>> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> ---
>>>>>>> Nik
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> webbeans-dev mailing list
>>>>>>> webbeans-dev(a)lists.jboss.org
>>>>>>> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>>>>>> --
>>>>>> Pete Muir
>>>>>> http://www.seamframework.org
>>>>>> http://in.relation.to/Bloggers/Pete
>>>>>>
>>>>>>
>>>>> _______________________________________________
>>>>> webbeans-dev mailing list
>>>>> webbeans-dev(a)lists.jboss.org
>>>>> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>>>>>
>>>>
>>>>
>
>
>
17 years
Re: [webbeans-dev] TCK-Test --> ProducerFieldDefinitionTest#testNonStaticProducerFieldNotInherited
by Pete Muir
Hi Mark,
I suggest you take a look at the link I provided for you - you'll see
that this isn't a coverage report of the RI, but a coverage report of
the TCK to the spec. It also includes the added benefit of which
sentence in the spec a test is validating, along with highlighting to
pull out the specifics where the sentence makes many testable points.
Really, take a look - the answers to many of Gurkan's TCK questions so
far can be found by using it.
On 15 Mar 2009, at 09:33, Mark Struberg wrote:
>
> Pete,
>
> 1st, thanks for your help. We usually don't run the coverage reports
> of the RI because we do not like to look at your code too much. This
> shouldn't get a 1:1 copy of the RI but should proof that the Spec
> (+TCK) is enough to build a whole new JSR-299 implementation.
Agreed - I never suggested you look at the RI ;-)
>
>
> txs and LieGrue,
> strub
>
> --- Pete Muir <pmuir(a)redhat.com> schrieb am So, 15.3.2009:
>
>> Von: Pete Muir <pmuir(a)redhat.com>
>> Betreff: Re: [webbeans-dev] TCK-Test -->
>> ProducerFieldDefinitionTest#testNonStaticProducerFieldNotInherited
>> An: "Gurkan Erdogdu" <gurkanerdogdu(a)yahoo.com>
>> CC: webbeans-dev(a)lists.jboss.org
>> Datum: Sonntag, 15. März 2009, 0:28
>> Yes, this is why it is essential to
>> read the coverage report at the same time to understand what
>> is being tested.
>>
>> On 14 Mar 2009, at 23:25, Gurkan Erdogdu wrote:
>>
>>>
>>> It is very difficult to understand TCK tests that are
>> written by others and it gets so much time. So questions are
>> inevitable.
>>>
>>> In the mean time, Pete thanks for helping and
>> commenting. After that, I will attach jira issues for
>> all other my questions.
>>>
>>> Cheers;
>>>
>>> Gurkan
>>>
>>> From: Pete Muir <pmuir(a)redhat.com>
>>> To: Gurkan Erdogdu <gurkanerdogdu(a)yahoo.com>
>>> Cc: webbeans-dev(a)lists.jboss.org
>>> Sent: Sunday, March 15, 2009 1:05:44 AM
>>> Subject: Re: [webbeans-dev] TCK-Test -->
>> ProducerFieldDefinitionTest#testNonStaticProducerFieldNotInherited
>>>
>>> No, this is testing that producer fields aren't
>> inherited by default.
>>>
>>> I suggest you read the spec-assertion matched, and
>> reference in the coverage report http://snapshots.jboss.org/maven2/org/jboss/jsr299/tck/jsr299-tck-impl/1....
>>>
>>> This list really isn't the right place to discuss this
>> - please either open JIRA issues or forum topics.
>>>
>>> On 14 Mar 2009, at 22:53, Gurkan Erdogdu wrote:
>>>
>>>> Hi ;
>>>>
>>>> In this test, InfertileChicken is selected for
>> Chicken API type, because DeploymentType precedence is
>> higher than Chicken. So *egg* field is called over
>> InfertileChicken.(Field parent instance API Type = Chicken
>> and Binding Type = @Current)
>>>>
>>>> But test is contradicted to this. Or any other
>> semantic exist?
>>>>
>>>> @AnotherDeploymentType
>>>> class InfertileChicken extends Chicken
>>>> {
>>>>
>>>> }
>>>>
>>>> class Chicken
>>>> {
>>>>
>>>> @Produces @Foo
>>>> private Egg egg = new Egg(this);
>>>>
>>>> }
>>>>
>>>> Thanks;
>>>>
>>>> Gurkan
>>>>
>>>>
>>>> _______________________________________________
>>>> webbeans-dev mailing list
>>>> webbeans-dev(a)lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>>>
>>> --
>>> Pete Muir
>>> http://www.seamframework.org
>>> http://in.relation.to/Bloggers/Pete
>>>
>>>
>>>
>>
>> --
>> Pete Muir
>> http://www.seamframework.org
>> http://in.relation.to/Bloggers/Pete
>>
>> _______________________________________________
>> webbeans-dev mailing list
>> webbeans-dev(a)lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>>
>
>
>
--
Pete Muir
http://www.seamframework.org
http://in.relation.to/Bloggers/Pete
17 years
Re: [webbeans-dev] TCK-Test --> ProducerFieldDefinitionTest#testNonStaticProducerFieldNotInherited
by Mark Struberg
Pete,
1st, thanks for your help. We usually don't run the coverage reports of the RI because we do not like to look at your code too much. This shouldn't get a 1:1 copy of the RI but should proof that the Spec (+TCK) is enough to build a whole new JSR-299 implementation.
txs and LieGrue,
strub
--- Pete Muir <pmuir(a)redhat.com> schrieb am So, 15.3.2009:
> Von: Pete Muir <pmuir(a)redhat.com>
> Betreff: Re: [webbeans-dev] TCK-Test --> ProducerFieldDefinitionTest#testNonStaticProducerFieldNotInherited
> An: "Gurkan Erdogdu" <gurkanerdogdu(a)yahoo.com>
> CC: webbeans-dev(a)lists.jboss.org
> Datum: Sonntag, 15. März 2009, 0:28
> Yes, this is why it is essential to
> read the coverage report at the same time to understand what
> is being tested.
>
> On 14 Mar 2009, at 23:25, Gurkan Erdogdu wrote:
>
> >
> > It is very difficult to understand TCK tests that are
> written by others and it gets so much time. So questions are
> inevitable.
> >
> > In the mean time, Pete thanks for helping and
> commenting. After that, I will attach jira issues for
> all other my questions.
> >
> > Cheers;
> >
> > Gurkan
> >
> > From: Pete Muir <pmuir(a)redhat.com>
> > To: Gurkan Erdogdu <gurkanerdogdu(a)yahoo.com>
> > Cc: webbeans-dev(a)lists.jboss.org
> > Sent: Sunday, March 15, 2009 1:05:44 AM
> > Subject: Re: [webbeans-dev] TCK-Test -->
> ProducerFieldDefinitionTest#testNonStaticProducerFieldNotInherited
> >
> > No, this is testing that producer fields aren't
> inherited by default.
> >
> > I suggest you read the spec-assertion matched, and
> reference in the coverage report http://snapshots.jboss.org/maven2/org/jboss/jsr299/tck/jsr299-tck-impl/1....
> >
> > This list really isn't the right place to discuss this
> - please either open JIRA issues or forum topics.
> >
> > On 14 Mar 2009, at 22:53, Gurkan Erdogdu wrote:
> >
> > > Hi ;
> > >
> > > In this test, InfertileChicken is selected for
> Chicken API type, because DeploymentType precedence is
> higher than Chicken. So *egg* field is called over
> InfertileChicken.(Field parent instance API Type = Chicken
> and Binding Type = @Current)
> > >
> > > But test is contradicted to this. Or any other
> semantic exist?
> > >
> > > @AnotherDeploymentType
> > > class InfertileChicken extends Chicken
> > > {
> > >
> > > }
> > >
> > > class Chicken
> > > {
> > >
> > > @Produces @Foo
> > > private Egg egg = new Egg(this);
> > >
> > > }
> > >
> > > Thanks;
> > >
> > > Gurkan
> > >
> > >
> > > _______________________________________________
> > > webbeans-dev mailing list
> > > webbeans-dev(a)lists.jboss.org
> > > https://lists.jboss.org/mailman/listinfo/webbeans-dev
> >
> > --
> > Pete Muir
> > http://www.seamframework.org
> > http://in.relation.to/Bloggers/Pete
> >
> >
> >
>
> --
> Pete Muir
> http://www.seamframework.org
> http://in.relation.to/Bloggers/Pete
>
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>
17 years
Re: [webbeans-dev] TCK-Test --> ProducerFieldDefinitionTest#testNonStaticProducerFieldNotInherited
by Pete Muir
Yes, this is why it is essential to read the coverage report at the
same time to understand what is being tested.
On 14 Mar 2009, at 23:25, Gurkan Erdogdu wrote:
>
> It is very difficult to understand TCK tests that are written by
> others and it gets so much time. So questions are inevitable.
>
> In the mean time, Pete thanks for helping and commenting. After
> that, I will attach jira issues for all other my questions.
>
> Cheers;
>
> Gurkan
>
> From: Pete Muir <pmuir(a)redhat.com>
> To: Gurkan Erdogdu <gurkanerdogdu(a)yahoo.com>
> Cc: webbeans-dev(a)lists.jboss.org
> Sent: Sunday, March 15, 2009 1:05:44 AM
> Subject: Re: [webbeans-dev] TCK-Test -->
> ProducerFieldDefinitionTest#testNonStaticProducerFieldNotInherited
>
> No, this is testing that producer fields aren't inherited by default.
>
> I suggest you read the spec-assertion matched, and reference in the
> coverage report http://snapshots.jboss.org/maven2/org/jboss/jsr299/tck/jsr299-tck-impl/1....
>
> This list really isn't the right place to discuss this - please
> either open JIRA issues or forum topics.
>
> On 14 Mar 2009, at 22:53, Gurkan Erdogdu wrote:
>
> > Hi ;
> >
> > In this test, InfertileChicken is selected for Chicken API type,
> because DeploymentType precedence is higher than Chicken. So *egg*
> field is called over InfertileChicken.(Field parent instance API
> Type = Chicken and Binding Type = @Current)
> >
> > But test is contradicted to this. Or any other semantic exist?
> >
> > @AnotherDeploymentType
> > class InfertileChicken extends Chicken
> > {
> >
> > }
> >
> > class Chicken
> > {
> >
> > @Produces @Foo
> > private Egg egg = new Egg(this);
> >
> > }
> >
> > Thanks;
> >
> > Gurkan
> >
> >
> > _______________________________________________
> > webbeans-dev mailing list
> > webbeans-dev(a)lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/webbeans-dev
>
> --
> Pete Muir
> http://www.seamframework.org
> http://in.relation.to/Bloggers/Pete
>
>
>
--
Pete Muir
http://www.seamframework.org
http://in.relation.to/Bloggers/Pete
17 years
[webbeans-dev] TCK-Test --> ProducerFieldDefinitionTest#testNonStaticProducerFieldNotInherited
by Gurkan Erdogdu
Hi ;
In this test, InfertileChicken is selected for Chicken API type, because DeploymentType precedence is higher than Chicken. So *egg* field is called over InfertileChicken.(Field parent instance API Type = Chicken and Binding Type = @Current)
But test is contradicted to this. Or any other semantic exist?
@AnotherDeploymentType
class InfertileChicken extends Chicken
{
}
class Chicken
{
@Produces @Foo
private Egg egg = new Egg(this);
}
Thanks;
Gurkan
17 years
[webbeans-dev] TCK-Test Related
by Gurkan Erdogdu
Hi,
I have more couple of questions and observations about TCK tests.
1* Conversation Related Tests : Are conversation related tests not depending on the JSF runtime? Because we are using the JSF semantic in project,
so all ConversationRelated standalone tests are failed.
2* Some of the standalone tests are related with Enterprise Beans. Some of them are grouped using "enterprisebean", but lots of them not. Its great to separate
the all EnterpriseBeans related tests with "enterprisebean" TestNG group. Therefore, we can easily test our non-enterprise beans part.
3* In test ProducerFieldDefinitionTest, there is a class
class FunnelWeaver<T>
{
}
This class is a ParametrizedType with Type variable, so it is not a simple web bean. But tests are dependent on this class. So we are getting
UnSatisfiedDependencyException. Is this correct behaviour?
4* Currently in the TCK Trunk, some of the tests are return "false" assertion, but it does not grouped into "stub".
Thanks;
Gurkan
17 years
[webbeans-dev] DependentContextTest - testDestroyingSimpleParentDestroysDependents
by Gurkan Erdogdu
Hi,
In the above test,
@RequestScoped
class Farm
{
@Current Stable stable;
public void open() {};
}
Farm has normal scope, so we do not create its instance before any of its method is called. Therefore we do not inject fields of the Farm. But in the test case, it is assumed to create Farm instance and inject fields. So test fails in our implementation.
Is this normal?
Thanks;
Gurkan
17 years
[webbeans-dev] TCK- Event Tests
by Gurkan Erdogdu
Hi;
When @Fires annotation exist in the field of the bean, there is an implicit bean and indeed this bean must be added to the Manager. But then
how to differentiate beans with the same API type (Event class) and Binding Type?
For example;
Class A{
@Fires Event<X> x;
}
Class B{
@Fires Event<Y> y;
}
In the tests using the resolveByType(Event.class, new FiresBinding(){}).
But in this case it throws the AmbigiousDependencyException. How could we resolve this? Or we understood wrongly;
Thanks;
Gurkan
17 years
[webbeans-dev] AST processing
by Nicklas Karlsson
Hi,
I'm currently looking at https://jira.jboss.org/jira/browse/WBRI-166
for generating XSD of the packages
Annotation processors can easily be plugged in with -processor (and
in Eclipse) but they aren't run if there aren't any annotations and we
are interested in the whole package. There is the Compiler Tree API
from Sun that can be used for visiting compiled files but there is no
way
of plugging it into the compilation process automagically, is there?
Is there any other way of observing the compilation process?
---
Nik
17 years