Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work on Matchlocator and dom #913

Open
wants to merge 758 commits into
base: dom-with-javac
Choose a base branch
from

Conversation

robstryker
Copy link

These changes primarily fix how the new match locating functions with the existing ECJ infrastructure, and as such, the fixes may or may not be noticable in this automated build.

@robstryker robstryker force-pushed the matchlocator-dom branch 2 times, most recently from 6b6aa0d to 97de32f Compare November 1, 2024 18:35
@@ -327,6 +327,11 @@ public char[] getContents() {
public CompilationUnit originalFromClone() {
return CompilationUnit.this;
}
@Override

Choose a reason for hiding this comment

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

Can this be submitted upstream?

Copy link
Author

Choose a reason for hiding this comment

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

Was submitted here: eclipse-jdt#3216

@@ -79,6 +83,30 @@ public IPath getPath() {
return this.classFile.getPath();
}

@Override
public char[] getFileName(){

Choose a reason for hiding this comment

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

Can this be submitted upstream?

Copy link
Author

Choose a reason for hiding this comment

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

Was submitted here: eclipse-jdt#3216

@mickaelistria
Copy link

Would it be possible to merge all the changes under org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/ soon? Does that allow some more tests to pass?

@robstryker robstryker force-pushed the matchlocator-dom branch 2 times, most recently from 3188702 to b9c0918 Compare November 7, 2024 15:50
mickaelistria and others added 22 commits November 12, 2024 11:19
* Fix javadoc test 001 and others

Signed-off-by: Rob Stryker <stryker@redhat.com>

* Fix javadoc test000

Signed-off-by: Rob Stryker <stryker@redhat.com>

* More work on javadoc tests

Signed-off-by: Rob Stryker <stryker@redhat.com>

* More fixes to javadoc

Signed-off-by: Rob Stryker <stryker@redhat.com>

* Substantial fix for testBug54424, and fixes several unknown others

Signed-off-by: Rob Stryker <stryker@redhat.com>

---------

Signed-off-by: Rob Stryker <stryker@redhat.com>
Co-authored-by: Rob Stryker <stryker@redhat.com>
- Fix quickfix for "Create provider method" by adjusting the
  error range of
  "service implementation missing no-args constructor or provider method"
  to match that of ECJ's

to see this quickfix in action, setup the following three files and open
quickfixes on the error in the `module-info.java`.

```java
module myModular {
  provides test.IFoo with test.Foo;
}
```

```java
package test;
public interface IFoo{}
```

```java
package test;
public class Foo implements test.IFoo {
  public Foo(String asdf) {}
}
```

Signed-off-by: David Thompson <davthomp@redhat.com>
Sometimes, the name has no symbol attached, while the "main" parent that
is defined by the name as one.
So we try to resolve parent structure when we couldn't resolve on name.
binary name is only equivalent to signature for primitive types. For
regular named types, the flatname is better
- Fix a small bug in the AST
- Fix some problem ids
- Fix some diagnostic ranges

Signed-off-by: David Thompson <davthomp@redhat.com>
Better resolve hosting compilationUnit
Signed-off-by: Rob Stryker <stryker@redhat.com>
…arations

Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Rob Stryker added 2 commits December 2, 2024 14:12
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Rob Stryker added 4 commits December 2, 2024 14:14
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
@robstryker robstryker force-pushed the matchlocator-dom branch 4 times, most recently from 4472f4b to d2f8726 Compare December 2, 2024 19:36
Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
@robstryker robstryker force-pushed the matchlocator-dom branch 4 times, most recently from d510fe7 to 78addb8 Compare December 2, 2024 20:59
Rob Stryker added 2 commits December 2, 2024 16:00
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
@robstryker robstryker force-pushed the matchlocator-dom branch 3 times, most recently from 6d50f14 to f9e50b6 Compare December 2, 2024 21:21
Signed-off-by: Rob Stryker <stryker@redhat.com>

Small change as per suggestion

Signed-off-by: Rob Stryker <stryker@redhat.com>

Oops - merge error

Signed-off-by: Rob Stryker <stryker@redhat.com>
Rob Stryker added 2 commits December 2, 2024 16:41
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants