Validation Generation & JRE Compliance [message #416682] |
Tue, 12 February 2008 09:43  |
Eclipse User |
|
|
|
Hi,
My purpose is to generate a Validation file of a genPackage (B) which
depends on another genPackage (A). As the following piece of template
"Validation.javajet" tells us : B-Validator should inialize A-Validator.
************************************************************ ******************
<%for (GenPackage baseGenPackage :
genPackage.getAllValidatorBaseGenPackages()) {%>
< %=genPackage.getValidatorPackageUniqueSafeName(baseGenPackag e)% >Validator =
<%=baseGenPackage.getImportedValidatorClassName()%>.INSTANCE;
<%}%>
************************************************************ ******************
The validation generated against my model doesn't compile (initialization
of A-validator is missing) unless I raise the compliance level on my
genmodel to 6.0!
Did anybody report you this defect ? Is it a real defect or should I
configure my generation platform properly ?
My dev & target platform are compliant EMF 2.3 2007/9/25. I installed JRE
1.5.0_11, my compiler compliance level is 5.0.
Any reference point would be helpful,
Thx forward,
Dorian.
|
|
|
Re: Validation Generation & JRE Compliance [message #416685 is a reply to message #416682] |
Tue, 12 February 2008 10:37   |
Eclipse User |
|
|
|
Hi Dorian,
Sorry, but I'm having trouble understanding exactly what's going wrong.
You mention the base validator initialization line in the constructor:
aValidator = AValidator.INSTANCE;
Are you saying that, unless you set the compliance level to 6.0, this
line is not being generated in your BValidator? Or are you saying that
it is being generated, but it's not able to compile?
Cheers,
Dave
Dorian Dinh wrote:
> Hi,
>
> My purpose is to generate a Validation file of a genPackage (B) which
> depends on another genPackage (A). As the following piece of template
> "Validation.javajet" tells us : B-Validator should inialize A-Validator.
> ************************************************************ ******************
>
> <%for (GenPackage baseGenPackage :
> genPackage.getAllValidatorBaseGenPackages()) {%>
>
> < %=genPackage.getValidatorPackageUniqueSafeName(baseGenPackag e)% >Validator
> = <%=baseGenPackage.getImportedValidatorClassName()%>.INSTANCE;
> <%}%>
> ************************************************************ ******************
>
>
> The validation generated against my model doesn't compile
> (initialization of A-validator is missing) unless I raise the compliance
> level on my genmodel to 6.0!
>
> Did anybody report you this defect ? Is it a real defect or should I
> configure my generation platform properly ?
> My dev & target platform are compliant EMF 2.3 2007/9/25. I installed
> JRE 1.5.0_11, my compiler compliance level is 5.0.
>
> Any reference point would be helpful,
>
> Thx forward,
>
> Dorian.
>
>
>
>
|
|
|
Re: Validation Generation & JRE Compliance [message #416687 is a reply to message #416685] |
Tue, 12 February 2008 10:42   |
Eclipse User |
|
|
|
Sorry,
i meant the base validator initialization line in the constructor
"aValidator = AValidator.INSTANCE;" is not generated unless i set
compliance level to 6.0 !
Dave Steinberg wrote:
> Hi Dorian,
> Sorry, but I'm having trouble understanding exactly what's going wrong.
> You mention the base validator initialization line in the constructor:
> aValidator = AValidator.INSTANCE;
> Are you saying that, unless you set the compliance level to 6.0, this
> line is not being generated in your BValidator? Or are you saying that
> it is being generated, but it's not able to compile?
> Cheers,
> Dave
> Dorian Dinh wrote:
>> Hi,
>>
>> My purpose is to generate a Validation file of a genPackage (B) which
>> depends on another genPackage (A). As the following piece of template
>> "Validation.javajet" tells us : B-Validator should inialize A-Validator.
>>
************************************************************ ******************
>>
>> <%for (GenPackage baseGenPackage :
>> genPackage.getAllValidatorBaseGenPackages()) {%>
>>
>> < %=genPackage.getValidatorPackageUniqueSafeName(baseGenPackag e)% >Validator
>> = <%=baseGenPackage.getImportedValidatorClassName()%>.INSTANCE;
>> <%}%>
>>
************************************************************ ******************
>>
>>
>> The validation generated against my model doesn't compile
>> (initialization of A-validator is missing) unless I raise the compliance
>> level on my genmodel to 6.0!
>>
>> Did anybody report you this defect ? Is it a real defect or should I
>> configure my generation platform properly ?
>> My dev & target platform are compliant EMF 2.3 2007/9/25. I installed
>> JRE 1.5.0_11, my compiler compliance level is 5.0.
>>
>> Any reference point would be helpful,
>>
>> Thx forward,
>>
>> Dorian.
>>
>>
>>
>>
|
|
|
Re: Validation Generation & JRE Compliance [message #416690 is a reply to message #416687] |
Tue, 12 February 2008 12:19   |
Eclipse User |
|
|
|
Hi again,
I'm unable to reproduce the problem. I always get the appropriate
validator initialization line in the constructor.
Maybe it's an environment problem? Could you try to reproduce it in a
clean workspace? If you can, then please open a bug with the exact
steps to reproduce it.
Thanks,
Dave
Dorian Dinh wrote:
> Sorry,
>
> i meant the base validator initialization line in the constructor
> "aValidator = AValidator.INSTANCE;" is not generated unless i set
> compliance level to 6.0 !
>
>
> Dave Steinberg wrote:
>
>> Hi Dorian,
>
>> Sorry, but I'm having trouble understanding exactly what's going
>> wrong. You mention the base validator initialization line in the
>> constructor:
>
>> aValidator = AValidator.INSTANCE;
>
>> Are you saying that, unless you set the compliance level to 6.0, this
>> line is not being generated in your BValidator? Or are you saying
>> that it is being generated, but it's not able to compile?
>
>> Cheers,
>> Dave
>
>
>> Dorian Dinh wrote:
>>> Hi,
>>>
>>> My purpose is to generate a Validation file of a genPackage (B) which
>>> depends on another genPackage (A). As the following piece of template
>>> "Validation.javajet" tells us : B-Validator should inialize A-Validator.
>>>
> ************************************************************ ******************
>
>>>
>>> <%for (GenPackage baseGenPackage :
>>> genPackage.getAllValidatorBaseGenPackages()) {%>
>>>
>>> < %=genPackage.getValidatorPackageUniqueSafeName(baseGenPackag e)% >Validator
>>> = <%=baseGenPackage.getImportedValidatorClassName()%>.INSTANCE;
>>> <%}%>
>>>
> ************************************************************ ******************
>
>>>
>>>
>>> The validation generated against my model doesn't compile
>>> (initialization of A-validator is missing) unless I raise the
>>> compliance level on my genmodel to 6.0!
>>>
>>> Did anybody report you this defect ? Is it a real defect or should I
>>> configure my generation platform properly ?
>>> My dev & target platform are compliant EMF 2.3 2007/9/25. I installed
>>> JRE 1.5.0_11, my compiler compliance level is 5.0.
>>>
>>> Any reference point would be helpful,
>>>
>>> Thx forward,
>>>
>>> Dorian.
>>>
>>>
>>>
>>>
>
>
|
|
|
|
Re: Validation Generation & JRE Compliance [message #416715 is a reply to message #416706] |
Wed, 13 February 2008 15:23  |
Eclipse User |
|
|
|
Hi Dorian,
I'm using Eclipse 3.4M5 with EMF from CVS HEAD (we can call that EMF
2.4M5), and my target platform is my development platform. I'm using the
Sun 5.0 JRE version 1.5.0_11 and the Eclipse compiler.
Can you reproduce this problem on a vanilla Eclipse+EMF install? If so,
I'd recommend opening a bug with a model that illustrates the problem.
Cheers,
Dave
Dorian Dinh wrote:
> Please, may i ask you :
> - your eclipse version
> - emf version
> - target platform (my target platform is Rational Software Development
> 7.0.5)
> - compiler
> - jre
>
> Dorian.
>
|
|
|
Powered by
FUDForum. Page generated in 0.04573 seconds