[JBoss JIRA] (FORGE-2624) Warnings in JBDS after generating forge-from-scratch quickstart
by Sande Gilda (JIRA)
[ https://issues.jboss.org/browse/FORGE-2624?page=com.atlassian.jira.plugin... ]
Sande Gilda commented on FORGE-2624:
------------------------------------
[~maxandersen]: Someone from the Forge team provided the `generate.fsh` script. It generates the code, right? I'm not clear how you can modify that script to generate the correct code.
> Warnings in JBDS after generating forge-from-scratch quickstart
> ---------------------------------------------------------------
>
> Key: FORGE-2624
> URL: https://issues.jboss.org/browse/FORGE-2624
> Project: Forge
> Issue Type: Bug
> Components: Java EE
> Reporter: Sande Gilda
> Priority: Minor
>
> After running {{run generate.fsh}}, the generated JBDS project has multiple warnings:
> * The serializable class Address does not declare a static final serialVersionUID field of type long
> * The serializable class Customer does not declare a static final serialVersionUID field of type long
> * The serializable class Item does not declare a static final serialVersionUID field of type long
> * The serializable class ProductOrder does not declare a static final serialVersionUID field of type long
> * The serializable class Profile does not declare a static final serialVersionUID field of type long
> * The serializable class ZipCode does not declare a static final serialVersionUID field of type long
> * location references to "/faces/error.xhtml" that does not exist in web content
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 10 months
[JBoss JIRA] (FORGE-2624) Warnings in JBDS after generating forge-from-scratch quickstart
by Max Rydahl Andersen (JIRA)
[ https://issues.jboss.org/browse/FORGE-2624?page=com.atlassian.jira.plugin... ]
Max Rydahl Andersen commented on FORGE-2624:
--------------------------------------------
alternatively, remove Serializable from the class if it is truly not going to be serialized.
> Warnings in JBDS after generating forge-from-scratch quickstart
> ---------------------------------------------------------------
>
> Key: FORGE-2624
> URL: https://issues.jboss.org/browse/FORGE-2624
> Project: Forge
> Issue Type: Bug
> Components: Java EE
> Reporter: Sande Gilda
> Priority: Minor
>
> After running {{run generate.fsh}}, the generated JBDS project has multiple warnings:
> * The serializable class Address does not declare a static final serialVersionUID field of type long
> * The serializable class Customer does not declare a static final serialVersionUID field of type long
> * The serializable class Item does not declare a static final serialVersionUID field of type long
> * The serializable class ProductOrder does not declare a static final serialVersionUID field of type long
> * The serializable class Profile does not declare a static final serialVersionUID field of type long
> * The serializable class ZipCode does not declare a static final serialVersionUID field of type long
> * location references to "/faces/error.xhtml" that does not exist in web content
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 10 months
[JBoss JIRA] (FORGE-2624) Warnings in JBDS after generating forge-from-scratch quickstart
by Max Rydahl Andersen (JIRA)
[ https://issues.jboss.org/browse/FORGE-2624?page=com.atlassian.jira.plugin... ]
Max Rydahl Andersen commented on FORGE-2624:
--------------------------------------------
The warning about serializable are correct.
If you mark a class Serializable then you should declare a serialVersionUID to ensure it will actually serialize between two JVM's.
If you do *not* care about that then add @SuppressWarnings("serial") to the top of the class to indicate you do not care about proper external serialization.
> Warnings in JBDS after generating forge-from-scratch quickstart
> ---------------------------------------------------------------
>
> Key: FORGE-2624
> URL: https://issues.jboss.org/browse/FORGE-2624
> Project: Forge
> Issue Type: Bug
> Components: Java EE
> Reporter: Sande Gilda
> Priority: Minor
>
> After running {{run generate.fsh}}, the generated JBDS project has multiple warnings:
> * The serializable class Address does not declare a static final serialVersionUID field of type long
> * The serializable class Customer does not declare a static final serialVersionUID field of type long
> * The serializable class Item does not declare a static final serialVersionUID field of type long
> * The serializable class ProductOrder does not declare a static final serialVersionUID field of type long
> * The serializable class Profile does not declare a static final serialVersionUID field of type long
> * The serializable class ZipCode does not declare a static final serialVersionUID field of type long
> * location references to "/faces/error.xhtml" that does not exist in web content
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 10 months
[JBoss JIRA] (FORGE-2624) Warnings in JBDS after generating forge-from-scratch quickstart
by Sande Gilda (JIRA)
[ https://issues.jboss.org/browse/FORGE-2624?page=com.atlassian.jira.plugin... ]
Sande Gilda reassigned FORGE-2624:
----------------------------------
Assignee: (was: Sande Gilda)
> Warnings in JBDS after generating forge-from-scratch quickstart
> ---------------------------------------------------------------
>
> Key: FORGE-2624
> URL: https://issues.jboss.org/browse/FORGE-2624
> Project: Forge
> Issue Type: Bug
> Components: Java EE
> Reporter: Sande Gilda
> Priority: Minor
>
> After running {{run generate.fsh}}, the generated JBDS project has multiple warnings:
> * The serializable class Address does not declare a static final serialVersionUID field of type long
> * The serializable class Customer does not declare a static final serialVersionUID field of type long
> * The serializable class Item does not declare a static final serialVersionUID field of type long
> * The serializable class ProductOrder does not declare a static final serialVersionUID field of type long
> * The serializable class Profile does not declare a static final serialVersionUID field of type long
> * The serializable class ZipCode does not declare a static final serialVersionUID field of type long
> * location references to "/faces/error.xhtml" that does not exist in web content
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 10 months
[JBoss JIRA] (FORGE-2624) Warnings in JBDS after generating forge-from-scratch quickstart
by Sande Gilda (JIRA)
[ https://issues.jboss.org/browse/FORGE-2624?page=com.atlassian.jira.plugin... ]
Sande Gilda moved JBEAP-3955 to FORGE-2624:
-------------------------------------------
Project: Forge (was: JBoss Enterprise Application Platform)
Key: FORGE-2624 (was: JBEAP-3955)
Workflow: GIT Pull Request workflow with automatic PR triggers (was: CDW with loose statuses v1)
Component/s: Java EE
(was: Quickstarts)
Target Release: (was: 7.0.0.GA)
Affects Version/s: (was: 7.0.0.ER7)
> Warnings in JBDS after generating forge-from-scratch quickstart
> ---------------------------------------------------------------
>
> Key: FORGE-2624
> URL: https://issues.jboss.org/browse/FORGE-2624
> Project: Forge
> Issue Type: Bug
> Components: Java EE
> Reporter: Sande Gilda
> Assignee: Sande Gilda
> Priority: Minor
>
> After running {{run generate.fsh}}, the generated JBDS project has multiple warnings:
> * The serializable class Address does not declare a static final serialVersionUID field of type long
> * The serializable class Customer does not declare a static final serialVersionUID field of type long
> * The serializable class Item does not declare a static final serialVersionUID field of type long
> * The serializable class ProductOrder does not declare a static final serialVersionUID field of type long
> * The serializable class Profile does not declare a static final serialVersionUID field of type long
> * The serializable class ZipCode does not declare a static final serialVersionUID field of type long
> * location references to "/faces/error.xhtml" that does not exist in web content
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 10 months
[JBoss JIRA] (ROASTER-100) Can't add array of annotations as annotation value
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/ROASTER-100?page=com.atlassian.jira.plugi... ]
George Gastaldi updated ROASTER-100:
------------------------------------
Fix Version/s: 2.x Future
Forum Reference: https://developer.jboss.org/message/953302
> Can't add array of annotations as annotation value
> --------------------------------------------------
>
> Key: ROASTER-100
> URL: https://issues.jboss.org/browse/ROASTER-100
> Project: Roaster
> Issue Type: Feature Request
> Components: API
> Affects Versions: 2.18.4.Final
> Reporter: Simone D'Avico
> Fix For: 2.x Future
>
>
> It is not currently possible to generate an annotation such as
> {code:java}
> @MatrixMix (
> mix = { @Row({ 50, 50, 50, 50 ,50 }),
> @Row({ 50, 50, 50, 50 ,50 }),
> @Row({ 50, 50, 50, 50 ,50 }) }
> )
> {code}
> The only workaround is to treat the array as a String and set it as a literal, as discussed [here|https://developer.jboss.org/message/953302]. It would be nice to add this capability to the API.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 10 months
[JBoss JIRA] (ROASTER-100) Can't add array of annotations as annotation value
by Simone D'Avico (JIRA)
[ https://issues.jboss.org/browse/ROASTER-100?page=com.atlassian.jira.plugi... ]
Simone D'Avico updated ROASTER-100:
-----------------------------------
Description:
It is not currently possible to generate an annotation such as
{code:java}
@MatrixMix (
mix = { @Row({ 50, 50, 50, 50 ,50 }),
@Row({ 50, 50, 50, 50 ,50 }),
@Row({ 50, 50, 50, 50 ,50 }) }
)
{code}
The only workaround is to treat the array as a String and set it as a literal, as discussed [here|https://developer.jboss.org/message/953302]. It would be nice to add this capability to the API.
was:
It is not currently possible to generate an annotation such as
{code:java}
@MatrixMix (
mix = { @Row({ 50, 50, 50, 50 ,50 }),
@Row({ 50, 50, 50, 50 ,50 }),
@Row({ 50, 50, 50, 50 ,50 }) }
)
{code}
The only workaround is to treat the array as a String and set it as a literal, as discussed here. [here|https://developer.jboss.org/message/953302]. It would be nice to add this capability to the API.
> Can't add array of annotations as annotation value
> --------------------------------------------------
>
> Key: ROASTER-100
> URL: https://issues.jboss.org/browse/ROASTER-100
> Project: Roaster
> Issue Type: Feature Request
> Components: API
> Affects Versions: 2.18.4.Final
> Reporter: Simone D'Avico
>
> It is not currently possible to generate an annotation such as
> {code:java}
> @MatrixMix (
> mix = { @Row({ 50, 50, 50, 50 ,50 }),
> @Row({ 50, 50, 50, 50 ,50 }),
> @Row({ 50, 50, 50, 50 ,50 }) }
> )
> {code}
> The only workaround is to treat the array as a String and set it as a literal, as discussed [here|https://developer.jboss.org/message/953302]. It would be nice to add this capability to the API.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 10 months
[JBoss JIRA] (ROASTER-100) Can't add array of annotations as annotation value
by Simone D'Avico (JIRA)
Simone D'Avico created ROASTER-100:
--------------------------------------
Summary: Can't add array of annotations as annotation value
Key: ROASTER-100
URL: https://issues.jboss.org/browse/ROASTER-100
Project: Roaster
Issue Type: Feature Request
Components: API
Affects Versions: 2.18.4.Final
Reporter: Simone D'Avico
It is not currently possible to generate an annotation such as
{code:java}
@MatrixMix (
mix = { @Row({ 50, 50, 50, 50 ,50 }),
@Row({ 50, 50, 50, 50 ,50 }),
@Row({ 50, 50, 50, 50 ,50 }) }
)
{code}
The only workaround is to treat the array as a String and set it as a literal, as discussed here. [here|https://developer.jboss.org/message/953302]. It would be nice to add this capability to the API.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 10 months
[JBoss JIRA] (ROASTER-100) Can't add array of annotations as annotation value
by Simone D'Avico (JIRA)
[ https://issues.jboss.org/browse/ROASTER-100?page=com.atlassian.jira.plugi... ]
Simone D'Avico updated ROASTER-100:
-----------------------------------
Description:
It is not currently possible to generate an annotation such as
{code:java}
@MatrixMix (
mix = { @Row({ 50, 50, 50, 50 ,50 }),
@Row({ 50, 50, 50, 50 ,50 }),
@Row({ 50, 50, 50, 50 ,50 }) }
)
{code}
The only workaround is to treat the array as a String and set it as a literal, as discussed here. [here|https://developer.jboss.org/message/953302]. It would be nice to add this capability to the API.
was:
It is not currently possible to generate an annotation such as
{code:java}
@MatrixMix (
mix = { @Row({ 50, 50, 50, 50 ,50 }),
@Row({ 50, 50, 50, 50 ,50 }),
@Row({ 50, 50, 50, 50 ,50 }) }
)
{code}
The only workaround is to treat the array as a String and set it as a literal, as discussed here. [here|https://developer.jboss.org/message/953302]. It would be nice to add this capability to the API.
> Can't add array of annotations as annotation value
> --------------------------------------------------
>
> Key: ROASTER-100
> URL: https://issues.jboss.org/browse/ROASTER-100
> Project: Roaster
> Issue Type: Feature Request
> Components: API
> Affects Versions: 2.18.4.Final
> Reporter: Simone D'Avico
>
> It is not currently possible to generate an annotation such as
> {code:java}
> @MatrixMix (
> mix = { @Row({ 50, 50, 50, 50 ,50 }),
> @Row({ 50, 50, 50, 50 ,50 }),
> @Row({ 50, 50, 50, 50 ,50 }) }
> )
> {code}
> The only workaround is to treat the array as a String and set it as a literal, as discussed here. [here|https://developer.jboss.org/message/953302]. It would be nice to add this capability to the API.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 10 months