-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deal with List changes in Java 21 and fixed bug in publicNativeMethod
The test publicNativeMethod was indeed testing "publicStrictFpMethod": copy and paste error?
- Loading branch information
1 parent
27f2cf3
commit 57e8d52
Showing
5 changed files
with
67 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
org.eclipse.xtext.common.types.tests/testdata/testdata/MyStubbedList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 Lorenzo Bettini and others. | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
package testdata; | ||
|
||
import java.util.Collection; | ||
import java.util.List; | ||
|
||
/** | ||
* To avoid breaking our tests with new Java API (e.g., in Java 21, | ||
* {@link List} extends SequencedCollection instead of Collection. | ||
* | ||
* @author Lorenzo Bettini | ||
* | ||
*/ | ||
public interface MyStubbedList<E> extends Collection<E> { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
org.eclipse.xtext.java.tests/src/org/eclipse/xtext/java/tests/MyStubbedList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 Lorenzo Bettini and others. | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*******************************************************************************/ | ||
package org.eclipse.xtext.java.tests; | ||
|
||
import java.util.Collection; | ||
import java.util.List; | ||
|
||
/** | ||
* To avoid breaking our tests with new Java API (e.g., in Java 21, | ||
* {@link List} extends SequencedCollection instead of Collection. | ||
* | ||
* @author Lorenzo Bettini | ||
* | ||
*/ | ||
public interface MyStubbedList<E> extends Collection<E> { | ||
|
||
} |