{"action":"opened","issue":{"url":"https://api.github.com/repos/Top-Q/jsystem/issues/251","labels_url":"https://api.github.com/repos/Top-Q/jsystem/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/Top-Q/jsystem/issues/251/comments","events_url":"https://api.github.com/repos/Top-Q/jsystem/issues/251/events","html_url":"https://github.com/Top-Q/jsystem/issues/251","id":112406992,"number":251,"title":"Upgrading from Java 7 to Java 8 breaks the \"If condition\" building block","user":{"login":"itaiag","id":1835335,"avatar_url":"https://avatars.githubusercontent.com/u/1835335?v=3","gravatar_id":"","url":"https://api.github.com/users/itaiag","html_url":"https://github.com/itaiag","followers_url":"https://api.github.com/users/itaiag/followers","following_url":"https://api.github.com/users/itaiag/following{/other_user}","gists_url":"https://api.github.com/users/itaiag/gists{/gist_id}","starred_url":"https://api.github.com/users/itaiag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itaiag/subscriptions","organizations_url":"https://api.github.com/users/itaiag/orgs","repos_url":"https://api.github.com/users/itaiag/repos","events_url":"https://api.github.com/users/itaiag/events{/privacy}","received_events_url":"https://api.github.com/users/itaiag/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Top-Q/jsystem/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Top-Q/jsystem/labels/confirmed","name":"confirmed","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Top-Q/jsystem/milestones/4","html_url":"https://github.com/Top-Q/jsystem/milestones/6.1.02","labels_url":"https://api.github.com/repos/Top-Q/jsystem/milestones/4/labels","id":985774,"number":4,"title":"6.1.02","description":"","creator":{"login":"itaiag","id":1835335,"avatar_url":"https://avatars.githubusercontent.com/u/1835335?v=3","gravatar_id":"","url":"https://api.github.com/users/itaiag","html_url":"https://github.com/itaiag","followers_url":"https://api.github.com/users/itaiag/followers","following_url":"https://api.github.com/users/itaiag/following{/other_user}","gists_url":"https://api.github.com/users/itaiag/gists{/gist_id}","starred_url":"https://api.github.com/users/itaiag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itaiag/subscriptions","organizations_url":"https://api.github.com/users/itaiag/orgs","repos_url":"https://api.github.com/users/itaiag/repos","events_url":"https://api.github.com/users/itaiag/events{/privacy}","received_events_url":"https://api.github.com/users/itaiag/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":4,"state":"open","created_at":"2015-02-19T06:29:14Z","updated_at":"2015-10-20T16:23:36Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-10-20T16:23:36Z","updated_at":"2015-10-20T16:23:36Z","closed_at":null,"body":"The \"If condition\" is using a Javascript script to evaluate the condition (ifScriptCondition.js). \r\n\r\nFrom some reason, when upgrading Java from version 7 to 8, the script is no longer evaluated correctly and every expression result is false. \r\n\r\nIn the terminal we see something like this:\r\n\r\n````\r\n     [echo] Check condition \"${retStr}\" EQUALS \"foo\"\r\n       [if] ??÷ 20, 2015 7:16:19 PM com.aqua.anttask.jsystem.JSystemAntUtil getParameterValue\r\n       [if] INFO: ScriptFile = C:\\Users\\agmon\\Desktop\\runners\\runnerIssue233\\ifScriptCondition.js\r\n       [if] ??÷ 20, 2015 7:16:19 PM com.aqua.anttask.jsystem.JSystemAntUtil getParameterValue\r\n       [if] INFO: Parameters = str <SEP> foo <SEP> EQUALS <SEP> foo <SEP> true\r\n       [if] Checking condition: str <SEP> foo <SEP> EQUALS <SEP> foo <SEP> true\r\n       [if] Type: str\r\n       [if] Len: 3\r\n       [if] Result = false\r\n````\r\n\r\nIn my machine it was reproduced when upgrading from *jdk1.7.0_05* to *jdk1.8.0_31*\r\n\r\nThe class that executes the script is *JSystemScriptCondition*.\r\n\r\n"}}