Evaluate stream.filter error

已回答

Hello, I've got a problem with evaluating filter on stream. Instead of result I've got an error from idea.debugger.rt.GeneratedEvaluationClass which you can find on one of the screens. I think that it may be problem with IntelliJ debugger, can you give me feedback if this is a bug or just my mistake?


0

On which object do you call getFlow() method?

Are there any errors in log?

 

0
Avatar
Permanently deleted user

Code works correctly so there are no errors, only evaluator signals "compilation failed" error. getFlow() is my own method in my own class and is created as a singleton bean.

0

You're absolutely right, it's a bug. I created the issue https://youtrack.jetbrains.com/issue/IDEA-229590 You can watch it to get updates about the progress. Could you please share some details about the context where you tried to evaluate the expression? Is the method `getFlow` static? What's a place you invoked the expression from (static method, usual method, lambda)? Are there any generics in the class you stopped?

0
Avatar
Permanently deleted user

I stopped at a method which had to evaluate this code and is called by my custom event, class has @Component annotation and extends abstract class "AbstractEditor" which extends further Vaddin class called Component. getFlow.getVertexComponents returns HashMap with K = String and V = my custom class. DropTarget<Component> is a Vaadin interface. Class doesn't have any generics written by me.

Called method and class:

public void onScriptNameChanged(ScriptNameChanged scriptNameUpdated)
public final class FlowEditor extends AbstractEditor
implements FlowChangeListener, WorkspaceSwitchListener, RevertQueueAdditionListener,
WorkspaceGeneratedListener, ScriptNameChangedListener
public abstract class AbstractEditor extends Component implements HasStyle, HasComponents,
DropTarget<Component>
0

请先登录再写评论。