eclipse-jdt / eclipse-jdt/eclipse.jdt.debug

Evaluations inside binary method fails when types are part of snippets

Open
#275 0 comments 0 reactions 1 assignee Claimed by @gayanper View on GitHub
Dominant language
Java
Stars
23
Forks
68
Avg merge
1d 4h
Merged PRs (30d)
13

Description

Take the following sample project, import it into eclipse and replace the following line
[debug-test.zip](https://github.com/eclipse-jdt/eclipse.jdt.debug/files/11929336/debug-test.zip)

`/debug-lib/target/debug-lib-1.0-SNAPSHOT.jar` in the debug-app project to a fully qualified path.

Add a break point in the `Observation` line 16 in the debug-lib project. Then debug the Main class in the debug-app. Once the debug point is hit, perform the following evaluation in the debug shell

`new Observation((Object) subject, (Consumer) action)`

**Actual**

The evaluation fails with a compilation error

**Expectation**

The evaluation should return a new instance of the class.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.