[forge-issues] [JBoss JIRA] (FORGE-2374) Being able to generate an abstract or final Java class implementing serialiazable or not
George Gastaldi (JIRA)
issues at jboss.org
Thu Aug 20 23:02:26 EDT 2015
[ https://issues.jboss.org/browse/FORGE-2374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Gastaldi updated FORGE-2374:
-----------------------------------
Labels: starter (was: )
> Being able to generate an abstract or final Java class implementing serialiazable or not
> ----------------------------------------------------------------------------------------
>
> Key: FORGE-2374
> URL: https://issues.jboss.org/browse/FORGE-2374
> Project: Forge
> Issue Type: Sub-task
> Components: UI - API
> Affects Versions: 2.16.2.Final
> Reporter: Antonio Goncalves
> Labels: starter
> Fix For: 2.x Future
>
>
> At the moment the {{java-new-class}} only has a {{targetPackage}} and {{named}} parameter. It would be good to be able to generate abstract or final classes with serializable interfaces
> {code}
> $ java-new-class --named MyClass --isAbstract
> public abstract class MyClass {
> }
> {code}
> Or final :
> {code}
> $ java-new-class --named MyClass --isFinal
> public final class MyClass {
> }
> {code}
> What we have to be careful is that a class cannot be abstract and final. So the following is illegal :
> {code}
> $ java-new-class --named MyClass --isFinal --isAbstract --serializable
> public final abstract class MyClass implements Serializable {
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the forge-issues
mailing list