lahodaj commented on PR #8676:
URL: https://github.com/apache/netbeans/pull/8676#issuecomment-3116813022
> `NBParserFactoryTest` found a problem.
>
> edit:
>
> this fixes the test:
>
> ```diff
> diff --git
a/java/lib.nbjavac/test/unit/src/org/netbeans/lib/nbjavac/services/NBParserFactoryTest.java
b/java/lib.nbjavac/test/unit/src/org/netbeans/lib/nbjavac/services/NBParserFactoryTest.java
> index 543146d..6b47586 100644
> ---
a/java/lib.nbjavac/test/unit/src/org/netbeans/lib/nbjavac/services/NBParserFactoryTest.java
> +++
b/java/lib.nbjavac/test/unit/src/org/netbeans/lib/nbjavac/services/NBParserFactoryTest.java
> @@ -125,6 +125,7 @@
>
> Context context = new Context();
> NBParserFactory.preRegister(context);
> + NBTreeMaker.preRegister(context);
> final JavacTaskImpl ct = (JavacTaskImpl)
((JavacTool)tool).getTask(null, std, null, Arrays.asList("-source", "21"),
null, Arrays.asList(new MyFileObject(code)), context);
>
> CompilationUnitTree cut = ct.parse().iterator().next();
> ```
Right, sorry for that. Thanks!
FWIW, I believe even JDK 24 and before where using synthetic class for the
previous round of the current compact source files, although sometimes details
differed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists