Skip to content

Conversation

@yiming-tang-cs
Copy link
Contributor

@khatchad
Copy link
Member

Is this test case different than the other tests that return INCONSISTENT_POSSIBLE_EXECUTION_MODES?

@khatchad
Copy link
Member

In other words, do we already have tests with fields?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make this a passing test as previously requested. To do so, remove the call to parallel().

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just remove parallel()?

@yiming-tang-cs
Copy link
Contributor Author

yiming-tang-cs commented Dec 21, 2017

In other words, do we already have tests with fields?

No. They are different.
The test case below returns INCONSISTENT_POSSIBLE_EXECUTION_MODES, but it does not include a field.

package p; import java.util.HashSet; import java.util.stream.*; import edu.cuny.hunter.streamrefactoring.annotations.*; class A {	Stream<Object> m() {	Stream<Object> stream = new HashSet<>().stream().parallel();	return stream;	}	void n(Stream<Object> s) {	s.distinct().count();	}	@EntryPoint	public void main(String[] args) {	n(m());	} } 
@khatchad
Copy link
Member

khatchad commented Dec 22, 2017 via email

@khatchad khatchad merged commit 5d98a73 into ponder-lab:master Dec 22, 2017
@khatchad khatchad deleted the issue_125_new branch December 22, 2017 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants