Closed ChambreNoire closed 1 month ago
Looks like a bug in the java-json-client
module. I'll look into it.
Can you share what your getters and setters look like for the profile
property of the IdentityView
class? Is it just something like:
public T getProfile() {
...
}
public void setProfile(T profile) {
...
}
@stoicflame yup that's exactly it, just basic getters & setters:
public T getProfile() {
return this.profile;
}
public void setProfile(T profile) {
this.profile = profile;
}
Thanks
I'm attempted to reproduce this, but everything seems to work for me.
Here's a diff I applied to enunciate-sample, can you tell me how to modify it to expose the problem?
diff --git a/enunciate-sample-model/src/main/java/com/webcohesion/enunciate/sample/model/Identity.java b/enunciate-sample-model/src/main/java/com/webcohesion/enunciate/sample/model/Identity.java
new file mode 100644
index 0000000..e614977
--- /dev/null
+++ b/enunciate-sample-model/src/main/java/com/webcohesion/enunciate/sample/model/Identity.java
@@ -0,0 +1,17 @@
+/*
+ * © 2023 by Intellectual Reserve, Inc. All rights reserved.
+ */
+package com.webcohesion.enunciate.sample.model;
+
+public abstract class Identity<T> {
+
+ private T name;
+
+ public T getName() {
+ return name;
+ }
+
+ public void setName(T name) {
+ this.name = name;
+ }
+}
diff --git a/enunciate-sample-model/src/main/java/com/webcohesion/enunciate/sample/model/NamedIdentity.java b/enunciate-sample-model/src/main/java/com/webcohesion/enunciate/sample/model/NamedIdentity.java
new file mode 100644
index 0000000..1383f8d
--- /dev/null
+++ b/enunciate-sample-model/src/main/java/com/webcohesion/enunciate/sample/model/NamedIdentity.java
@@ -0,0 +1,7 @@
+/*
+ * © 2023 by Intellectual Reserve, Inc. All rights reserved.
+ */
+package com.webcohesion.enunciate.sample.model;
+
+public class NamedIdentity extends Identity<Name> {
+}
diff --git a/enunciate-sample-model/src/main/java/com/webcohesion/enunciate/sample/model/Person.java b/enunciate-sample-model/src/main/java/com/webcohesion/enunciate/sample/model/Person.java
index e04bd02..e8187ff 100644
--- a/enunciate-sample-model/src/main/java/com/webcohesion/enunciate/sample/model/Person.java
+++ b/enunciate-sample-model/src/main/java/com/webcohesion/enunciate/sample/model/Person.java
@@ -30,6 +30,7 @@ public class Person {
private String alias;
private Name name;
private jakarta.activation.DataHandler picture;
+ private NamedIdentity identity;
public String getId() {
return id;
@@ -70,4 +71,12 @@ public class Person {
public void setPicture(DataHandler picture) {
this.picture = picture;
}
+
+ public NamedIdentity getIdentity() {
+ return identity;
+ }
+
+ public void setIdentity(NamedIdentity identity) {
+ this.identity = identity;
+ }
}
No updates, closing this out. I'm happy to re-open as needed.
Hi,
I'm updating a legacy project using java 8 and enunciate-maven-plugin version 2.13.0. I have updated to jdk 11 and enunciate-maven-plugin 2.15.1 and since this I have encountered problems.
parent-pom
When the plugin is run by maven upon deploy, the following dto is not correctly compiled.
Any ideas ?
Many thanks in advance!