Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept Set params; return HashSet values #16

Merged
merged 1 commit into from
Sep 5, 2018
Merged

Conversation

berezovskyi
Copy link
Contributor

Closes #15

Closes #15

Change-Id: I60ae4aae3a34fafb8937488ab0dd49eb25ee4ebc
Signed-off-by: Andrii Berezovskyi <andriib@kth.se>
@berezovskyi
Copy link
Contributor Author

There are two files that get regenerated and I have ignored those changes from the diff:

image

@berezovskyi
Copy link
Contributor Author

@berezovskyi
Copy link
Contributor Author

Maybe hold off on merging this right now, I just got a funny new exception at runtime:

scott_sandbox-whc.1.ukzixyfv0ru4@linuxkit-025000000001    | Caused by: org.eclipse.lyo.oslc4j.core.exception.OslcCoreMissingSetMethodException: OSLC011: Missing corresponding set method for method getAdding of class eu.scott.warehouse.domains.pddl.Step
scott_sandbox-whc.1.ukzixyfv0ru4@linuxkit-025000000001    | 	at org.eclipse.lyo.oslc4j.core.model.ResourceShapeFactory.validateSetMethodExists(ResourceShapeFactory.java:378)
scott_sandbox-whc.1.ukzixyfv0ru4@linuxkit-025000000001    | 	at org.eclipse.lyo.oslc4j.core.model.ResourceShapeFactory.createResourceShape(ResourceShapeFactory.java:156)
scott_sandbox-whc.1.ukzixyfv0ru4@linuxkit-025000000001    | 	at org.eclipse.lyo.oslc4j.core.model.ResourceShapeFactory.createResourceShape(ResourceShapeFactory.java:110)
scott_sandbox-whc.1.ukzixyfv0ru4@linuxkit-025000000001    | 	at org.eclipse.lyo.oslc4j.application.OslcResourceShapeResource.<init>(OslcResourceShapeResource.java:65)
scott_sandbox-whc.1.ukzixyfv0ru4@linuxkit-025000000001    | 	at org.eclipse.lyo.oslc4j.application.OslcWinkApplication.<init>(OslcWinkApplication.java:56)
scott_sandbox-whc.1.ukzixyfv0ru4@linuxkit-025000000001    | 	at se.ericsson.cf.scott.sandbox.whc.servlet.Application.<init>(Application.java:132)
scott_sandbox-whc.1.ukzixyfv0ru4@linuxkit-025000000001    | 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
scott_sandbox-whc.1.ukzixyfv0ru4@linuxkit-025000000001    | 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
scott_sandbox-whc.1.ukzixyfv0ru4@linuxkit-025000000001    | 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
scott_sandbox-whc.1.ukzixyfv0ru4@linuxkit-025000000001    | 	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
scott_sandbox-whc.1.ukzixyfv0ru4@linuxkit-025000000001    | 	at org.apache.wink.common.internal.lifecycle.CreationUtils.createObject(CreationUtils.java:66)
scott_sandbox-whc.1.ukzixyfv0ru4@linuxkit-025000000001    | 	... 44 more
scott_sandbox-whc.1.ukzixyfv0ru4@linuxkit-025000000001    | Caused by: java.lang.NoSuchMethodException: eu.scott.warehouse.domains.pddl.Step.setAdding(java.util.HashSet)
scott_sandbox-whc.1.ukzixyfv0ru4@linuxkit-025000000001    | 	at java.lang.Class.getMethod(Class.java:1786)
scott_sandbox-whc.1.ukzixyfv0ru4@linuxkit-025000000001    | 	at org.eclipse.lyo.oslc4j.core.model.ResourceShapeFactory.validateSetMethodExists(ResourceShapeFactory.java:376)
scott_sandbox-whc.1.ukzixyfv0ru4@linuxkit-025000000001    | 	... 54 more

Apparently, use of HashSets is hardcoded in ResourceShapeFactory.

@jadelkhoury jadelkhoury merged commit 137046a into master Sep 5, 2018
@berezovskyi berezovskyi deleted the b15-sets-accept branch April 23, 2019 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants