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

Position conversion error with Stream code #1048

Closed
mickaelistria opened this issue Dec 10, 2024 · 1 comment
Closed

Position conversion error with Stream code #1048

mickaelistria opened this issue Dec 10, 2024 · 1 comment

Comments

@mickaelistria
Copy link

java.lang.Exception: Illegal ASTNode positions: previousEnd=799, childStart=635, element==org.eclipse.jdt.core.javac/\/usr\/lib\/jvm\/java-23-openjdk-23.0.1.0.11-1.rolling.fc41.x86_64\/lib\/jrt-fs.jar`java.base=/javadoc_location=/https:\/\/docs.oracle.com\/en\/java\/javase\/23\/docs\/api\/=/=/module=/true=/=/add-exports=/jdk.compiler\/com.sun.tools.javac.api\=ALL-UNNAMED:jdk.compiler\/com.sun.tools.javac.main\=ALL-UNNAMED:jdk.compiler\/com.sun.tools.javac.util\=ALL-UNNAMED:jdk.compiler\/com.sun.tools.javac.parser\=ALL-UNNAMED:jdk.compiler\/com.sun.tools.javac.tree\=ALL-UNNAMED:jdk.compiler\/com.sun.tools.javac.file\=ALL-UNNAMED:jdk.compiler\/com.sun.tools.javac.comp\=ALL-UNNAMED:jdk.compiler\/com.sun.tools.javac.code\=ALL-UNNAMED:jdk.javadoc\/jdk.javadoc.internal.doclets.formats.html.taglets.snippet\=ALL-UNNAMED:jdk.javadoc\/jdk.javadoc.internal.doclets.formats.html.taglets\=ALL-UNNAMED:jdk.compiler\/com.sun.tools.javac.platform\=ALL-UNNAMED:jdk.compiler\/com.sun.tools.javac.resources\=ALL-UNNAMED:jdk.compiler\/com.sun.tools.javac.jvm\=ALL-UNNAMED:java.base\/sun.nio.ch\=ALL-UNNAMED=/<java.util.stream(Stream.class[Stream~toArray~Ljava.util.function.IntFunction\<\[TA;>;, Javadoc:
/**
     * Returns an array containing the elements of this stream, using the
     * provided {@code generator} function to allocate the returned array, as
     * well as any additional arrays that might be required for a partitioned
     * execution or for resizing.
     *
     * <p>This is a <a href="package-summary.html#StreamOps">terminal
     * operation</a>.
     *
     * @apiNote
     * The generator function takes an integer, which is the size of the
     * desired array, and produces an array of the desired size.  This can be
     * concisely expressed with an array constructor reference:
     * <pre>{@code
     *     Person[] men = people.stream()
     *                          .filter(p -> p.getGender() == MALE)
     *                          .toArray(Person[]::new);
     * }</pre>
     *
     * @param <A> the component type of the resulting array
     * @param generator a function which produces a new array of the desired
     *                  type and the provided length
     * @return an array containing the elements in this stream
     * @throws ArrayStoreException if the runtime type of any element of this
     *         stream is not assignable to the {@linkplain Class#getComponentType
     *         runtime component type} of the generated array
     */
@mickaelistria
Copy link
Author

Was fixed with #1022

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

No branches or pull requests

1 participant