This fix will be in
6.0.0.Beta3:https://github.com/droolsjbpm/optaplanner/commit/63b1f7284fad495386ee9f34238dc3b69cb9bb98
Solution: use XStreamBendableScoreConverter instead
On 24-05-13 21:28, jonathan.labin wrote:
I have switched to 6.0.0.beta2 and I am still receiving a similar error.
While
And now there's a test (that also shows how it works) so it definitely
works this time around :)
https://github.com/droolsjbpm/optaplanner/blob/master/optaplanner-benchmark/src/test/java/org/optaplanner/persistence/xstream/XStreamBendableScoreConverterTest.java#L43
On 28-05-13 17:21, Geoffrey
Thanks for the feedback. If there's a jira please reopen it.
Beta3 is going out soon, hopefully I 'll have time to fix it on Monday
or Tuesday to make that release.
Once the projectscheduling example is migrated, which uses
BendableScore, these errors will be caught in our automated testing.
I have switched to 6.0.0.beta2 and I am still receiving a similar error.
While BendableScoreDefinition does now have a no-arg constructor, It seems
that XStream is still upset that the constructor is not public.
...
Caused by: java.lang.IllegalArgumentException: The scoreDefinitionClass
Is there an example that uses BendableScore?
I'm trying to convert my app from using HardSoftScore to BendableScore and
I've run into my first issue:
Changing from:
@XStreamConverter(value = XStreamScoreConverter.class, types =
{HardSoftLongScoreDefinition.class})
to
@XStreamConverter(value =
Sorry. This is in 6.0.0.Beta1
--
View this message in context:
http://drools.46999.n3.nabble.com/Optaplanner-No-arg-constructor-for-BendableScoreDefinition-tp4023523p4023525.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
On 25-04-13 16:18, jonathan.labin wrote:
Is there an example that uses BendableScore?
I'm trying to convert my app from using HardSoftScore to BendableScore and
I've run into my first issue:
Changing from:
@XStreamConverter(value = XStreamScoreConverter.class, types =