Problems with Enums implementing methods on values

2013-06-11 Thread GESCONSULTOR - Óscar Bou
We make extensive use of abstract methods defined on Enums, returing valuable information regarding them. It seems this is not fully supported on Isis. Steps to reproduce on the Archetype: 1. Modify the Category enum, replacing its definition by this: public class ToDoItem implements

Re: Problems with Enums implementing methods on values

2013-06-11 Thread Dan Haywood
Hmm, I use that technique a lot myself. Definitely needs fixing. Please raise a ticket. ~~~ In the meantime, a workaround that should work (we have the equivalent in Estatio) is: public static enum Category { Professional, Domestic, Other; @Programmatic public

Re: Problems with Enums implementing methods on values

2013-06-11 Thread GESCONSULTOR - Óscar Bou
Thanks for the workaround. The second is really fast and doesn't break any code :-)) It seems the JIRA site is currently down. I will try again in 30 min. El 11/06/2013, a las 11:56, Dan Haywood d...@haywood-associates.co.uk escribió: Hmm, I use that technique a lot myself. Definitely

Re: Problems with Enums implementing methods on values

2013-06-11 Thread GESCONSULTOR - Óscar Bou
Upps!!! With this code: public class ToDoItem implements ComparableToDoItem /*, Locatable*/ { // GMAP3: uncomment to use https://github.com/danhaywood/isis-wicket-gmap3 private static final long ONE_WEEK_IN_MILLIS = 7 * 24 * 60 * 60 * 1000L; @ObjectType(TODOCATEGORY)

Re: Problems with Enums implementing methods on values

2013-06-11 Thread Dan Haywood
More detail to add to that ticket, then, when you raise it. Ta Dan On 11 June 2013 11:16, GESCONSULTOR - Óscar Bou o@gesconsultor.comwrote: Upps!!! With this code: public class ToDoItem implements ComparableToDoItem /*, Locatable*/ { // GMAP3: uncomment to use

Re: Problems with Enums implementing methods on values

2013-06-11 Thread GESCONSULTOR - Óscar Bou
Jira still not responding (at least from here) ... I'll try again in a few minutes. El 11/06/2013, a las 12:18, Dan Haywood d...@haywood-associates.co.uk escribió: More detail to add to that ticket, then, when you raise it. Ta Dan On 11 June 2013 11:16, GESCONSULTOR - Óscar Bou

[jira] [Created] (ISIS-435) Problems with Enums implementing methods on values

2013-06-11 Thread Oscar Bou (JIRA)
Oscar Bou created ISIS-435: -- Summary: Problems with Enums implementing methods on values Key: ISIS-435 URL: https://issues.apache.org/jira/browse/ISIS-435 Project: Isis Issue Type: Bug

Re: Problems with Enums implementing methods on values

2013-06-11 Thread GESCONSULTOR - Óscar Bou
Really nice for cases where they are used for state initialization purposes (the majority of use cases). El 11/06/2013, a las 14:56, Jeroen van der Wal jer...@stromboli.it escribió: For what it's worth, we actually use a pattern like this: public enum Category { Professional(1),

Re: Few Queries regarding the tests

2013-06-11 Thread Bhargav Golla
On Tue, Jun 11, 2013 at 2:45 AM, Dan Haywood d...@haywood-associates.co.ukwrote: On 10 June 2013 20:49, Bhargav Golla bhargav.go...@gmail.com wrote: 1. Delete_thenResponseCode_205_bad: Should I check for a DELETE request and then check for response code? Not sure what you mean by check

Re: [jira] [Created] (ISIS-435) Problems with Enums implementing methods on values

2013-06-11 Thread Dan Haywood
I have a fix for this, however the Apache git server is currently down :-( so cannot (for the moment) commit the fix If you want to apply the change locally: locate ClassSubstitutorAbstract, and change getClass() to read: public Class? getClass(final Class? cls) { if

[jira] [Updated] (ISIS-421) Write TCK tests for Restful Objects viewer

2013-06-11 Thread Bhargav Golla (JIRA)
[ https://issues.apache.org/jira/browse/ISIS-421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bhargav Golla updated ISIS-421: --- Attachment: Get_thenResponseHeaders_ContentLength_ok.patch Get_thenResponseHeaders_ContentLength_ok RO

[jira] [Updated] (ISIS-421) Write TCK tests for Restful Objects viewer

2013-06-11 Thread Bhargav Golla (JIRA)
[ https://issues.apache.org/jira/browse/ISIS-421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bhargav Golla updated ISIS-421: --- Attachment: (was: Get_thenResponseHeaders_ContentLength_ok.patch) Write TCK tests for Restful

[jira] [Updated] (ISIS-421) Write TCK tests for Restful Objects viewer

2013-06-11 Thread Bhargav Golla (JIRA)
[ https://issues.apache.org/jira/browse/ISIS-421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bhargav Golla updated ISIS-421: --- Attachment: Get_thenResponseHeaders_ContentLength_ok.patch Get_thenResponseHeaders_ContentLength_ok RO

[jira] [Updated] (ISIS-421) Write TCK tests for Restful Objects viewer

2013-06-11 Thread Dimuthu Upeksha (JIRA)
[ https://issues.apache.org/jira/browse/ISIS-421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dimuthu Upeksha updated ISIS-421: - Attachment: ISIS-421_Get_thenRepresentation_ok.patch Remaining Get_thenRepresentation_ok tests

Build failed in Jenkins: isis-core-ubuntu #693

2013-06-11 Thread Apache Jenkins Server
See https://builds.apache.org/job/isis-core-ubuntu/693/ -- Started by timer Building remotely on ubuntu5 in workspace https://builds.apache.org/job/isis-core-ubuntu/ws/ Checkout:isis-core-ubuntu / https://builds.apache.org/job/isis-core-ubuntu/ws/ -

[jira] [Resolved] (ISIS-435) Problems with Enums implementing methods on values

2013-06-11 Thread Dan Haywood (JIRA)
[ https://issues.apache.org/jira/browse/ISIS-435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dan Haywood resolved ISIS-435. -- Resolution: Fixed Problems with Enums implementing methods on values

[jira] [Updated] (ISIS-435) Problems with Enums implementing methods on values

2013-06-11 Thread Dan Haywood (JIRA)
[ https://issues.apache.org/jira/browse/ISIS-435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dan Haywood updated ISIS-435: - Affects Version/s: (was: core-1.3.0) core-1.2.0 Problems with Enums

[jira] [Commented] (ISIS-435) Problems with Enums implementing methods on values

2013-06-11 Thread ASF subversion and git services (JIRA)
[ https://issues.apache.org/jira/browse/ISIS-435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13680944#comment-13680944 ] ASF subversion and git services commented on ISIS-435: -- Commit

[jira] [Commented] (ISIS-421) Write TCK tests for Restful Objects viewer

2013-06-11 Thread ASF subversion and git services (JIRA)
[ https://issues.apache.org/jira/browse/ISIS-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13680952#comment-13680952 ] ASF subversion and git services commented on ISIS-421: -- Commit