You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Owen Thomas <ow...@gmail.com> on 2025/12/18 01:41:23 UTC

Flexible constructors?

Hello.

I am using Netbeans 26 on Ubuntu 25.04. I am trying to use the new flexible
constructors feature made standard in Java 25, and I get the attached
message in code.

I have Java 25 installed, and in my Maven multi-project build, I have set
the Build Platform to Java 25 (System) and the Target Release to 25 in the
Compile category in the Project Properties dialogue of the root project and
of each of the subprojects.

What might I be neglecting to do?

Thanks,

  Owen.

Re: Flexible constructors?

Posted by Owen Thomas <ow...@gmail.com>.
On Thu, 18 Dec 2025 at 12:48, Michael Bien <mb...@gmail.com> wrote:

> On 12/18/25 02:41, Owen Thomas wrote:
> > Hello.
> >
> > I am using Netbeans 26 on Ubuntu 25.04. I am trying to use the new
> flexible constructors feature made standard in Java 25,
>
> try the latest release. NB 26 didn't support JDK 25 yet.


I do not wish to tempt fate by speaking of success, but it appears that the
offending red line is gone when I load my project into Netbeans 28.

Thanks for the tip Michael.

Re: Flexible constructors?

Posted by Michael Bien <mb...@gmail.com>.
On 12/18/25 02:41, Owen Thomas wrote:
> Hello.
>
> I am using Netbeans 26 on Ubuntu 25.04. I am trying to use the new flexible constructors feature made standard in Java 25,

try the latest release. NB 26 didn't support JDK 25 yet.

-mbien

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists