{"action":"created","issue":{"url":"https://api.github.com/repos/my2iu/Jinq/issues/45","repository_url":"https://api.github.com/repos/my2iu/Jinq","labels_url":"https://api.github.com/repos/my2iu/Jinq/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/my2iu/Jinq/issues/45/comments","events_url":"https://api.github.com/repos/my2iu/Jinq/issues/45/events","html_url":"https://github.com/my2iu/Jinq/issues/45","id":191285965,"number":45,"title":"Unknown method java/math/BigDecimal:negate()Ljava/math/BigDecimal; encountered","user":{"login":"georgemoralis","id":4313123,"avatar_url":"https://avatars.githubusercontent.com/u/4313123?v=3","gravatar_id":"","url":"https://api.github.com/users/georgemoralis","html_url":"https://github.com/georgemoralis","followers_url":"https://api.github.com/users/georgemoralis/followers","following_url":"https://api.github.com/users/georgemoralis/following{/other_user}","gists_url":"https://api.github.com/users/georgemoralis/gists{/gist_id}","starred_url":"https://api.github.com/users/georgemoralis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgemoralis/subscriptions","organizations_url":"https://api.github.com/users/georgemoralis/orgs","repos_url":"https://api.github.com/users/georgemoralis/repos","events_url":"https://api.github.com/users/georgemoralis/events{/privacy}","received_events_url":"https://api.github.com/users/georgemoralis/received_events","type":"User","site_admin":false},"labels":[{"id":82914726,"url":"https://api.github.com/repos/my2iu/Jinq/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/my2iu/Jinq/milestones/6","html_url":"https://github.com/my2iu/Jinq/milestones/1.8.14","labels_url":"https://api.github.com/repos/my2iu/Jinq/milestones/6/labels","id":2158379,"number":6,"title":"1.8.14","description":null,"creator":{"login":"my2iu","id":1350963,"avatar_url":"https://avatars.githubusercontent.com/u/1350963?v=3","gravatar_id":"","url":"https://api.github.com/users/my2iu","html_url":"https://github.com/my2iu","followers_url":"https://api.github.com/users/my2iu/followers","following_url":"https://api.github.com/users/my2iu/following{/other_user}","gists_url":"https://api.github.com/users/my2iu/gists{/gist_id}","starred_url":"https://api.github.com/users/my2iu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/my2iu/subscriptions","organizations_url":"https://api.github.com/users/my2iu/orgs","repos_url":"https://api.github.com/users/my2iu/repos","events_url":"https://api.github.com/users/my2iu/events{/privacy}","received_events_url":"https://api.github.com/users/my2iu/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2016-11-26T03:50:29Z","updated_at":"2016-11-26T03:51:10Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-11-23T14:32:30Z","updated_at":"2016-11-26T09:17:38Z","closed_at":null,"body":"I tried the following\r\n\r\nList<Pair<String, BigDecimal>> result2\r\n                = streams\r\n                        .streamAll(em, ParastatikaEntity.class)\r\n                        .where(c -> c.getDate_created().after(from))\r\n                        .where(c -> c.getDate_created().before(to))\r\n                        .where(c -> c.getEidos().getTameio_affect() == 2)//pistotika\r\n                        .where(c -> c.getSynallassomenos().getSynaltype() == 1)//gia pelates\r\n                        .group(c -> c.getSynallassomenos().getName(), (name, stream) -> stream.sumBigDecimal(c -> c.getTotal_no_vat()).negate())\r\n                        .toList();\r\n\r\nGetting the following error with negate() \r\n\r\nCaused by: org.jinq.rebased.org.objectweb.asm.tree.analysis.AnalyzerException: Unknown method java/math/BigDecimal:negate()Ljava/math/BigDecimal; encountered\r\n\tat ch.epfl.labos.iu.orm.queryll2.symbolic.BasicSymbolicInterpreter.naryOperation(BasicSymbolicInterpreter.java:367)\r\n\tat org.jinq.rebased.org.objectweb.asm.tree.analysis.Frame.execute(Unknown Source)\r\n\tat ch.epfl.labos.iu.orm.queryll2.path.CodePath.calculateReturnValueAndConditions(CodePath.java:148)\r\n\tat ch.epfl.labos.iu.orm.queryll2.path.TransformationClassAnalyzer.analyzeMethod(TransformationClassAnalyzer.java:440)"},"comment":{"url":"https://api.github.com/repos/my2iu/Jinq/issues/comments/263053171","html_url":"https://github.com/my2iu/Jinq/issues/45#issuecomment-263053171","issue_url":"https://api.github.com/repos/my2iu/Jinq/issues/45","id":263053171,"user":{"login":"georgemoralis","id":4313123,"avatar_url":"https://avatars.githubusercontent.com/u/4313123?v=3","gravatar_id":"","url":"https://api.github.com/users/georgemoralis","html_url":"https://github.com/georgemoralis","followers_url":"https://api.github.com/users/georgemoralis/followers","following_url":"https://api.github.com/users/georgemoralis/following{/other_user}","gists_url":"https://api.github.com/users/georgemoralis/gists{/gist_id}","starred_url":"https://api.github.com/users/georgemoralis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgemoralis/subscriptions","organizations_url":"https://api.github.com/users/georgemoralis/orgs","repos_url":"https://api.github.com/users/georgemoralis/repos","events_url":"https://api.github.com/users/georgemoralis/events{/privacy}","received_events_url":"https://api.github.com/users/georgemoralis/received_events","type":"User","site_admin":false},"created_at":"2016-11-26T09:17:38Z","updated_at":"2016-11-26T09:17:38Z","body":"my above query seems to execute correctly now in 1.8.14 thank you :)"}}
{"actor":{"display_login":"georgemoralis"}}