Skip to content

Issue for inconsistent result #126

Open
@yiming-tang-cs

Description

@yiming-tang-cs

If the test case is:

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;
	}

	@EntryPoint
	void n() {
		Stream<Object> s = m();
		s.distinct().count();
	}
}

there are two elements in execution modes:

stream start pos length method type FQN execution mode
new HashSet<>().stream() 192 24 m() p.A SEQUENTIAL
new HashSet<>().stream() 192 24 m() p.A PARALLEL

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions