Sorry picture didn’t come through… “switch expressions are a preview feature and are disabled by defulat. (use –enable-preview to enable switch expressions)”
I am using a gradle project with the new gradle support. I have set up my gradle build so that it does build successfully. But I can’t figure out the error message. Mike From: Mike Billman <[email protected]> Sent: Wednesday, April 3, 2019 2:07 PM To: [email protected] Subject: RE: jdk12 question - NB 11.0 [cid:[email protected]] And from my about… Product Version: Apache NetBeans IDE 11.0 (Build incubator-netbeans-release-404-on-20190319) Updates: Updates available<about:blankcheck-for-updates> Java: 12; OpenJDK 64-Bit Server VM 12+33 Runtime: OpenJDK Runtime Environment 12+33 System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) User directory: C:\Users\mdb\AppData\Roaming\NetBeans\11.0 Cache directory: C:\Users\mdb\AppData\Local\NetBeans\Cache\11.0 Mike -----Original Message----- From: Geertjan Wielenga <[email protected]<mailto:[email protected]>> Sent: Wednesday, April 3, 2019 1:55 PM To: dev <[email protected]<mailto:[email protected]>> Subject: Re: jdk12 question - NB 11.0 Well, what specifically do you mean by "the error related to the new switch statements"? What, very specifically, does that error say? Gj On Wed, Apr 3, 2019 at 7:19 PM Mike Billman <[email protected]<mailto:[email protected]>> wrote: > I tried that and still am getting the error. Currently running VC4. > > Mike > > -----Original Message----- > From: Geertjan Wielenga > <[email protected]<mailto:[email protected]>> > Sent: Monday, April 1, 2019 8:47 AM > To: dev > <[email protected]<mailto:[email protected]>> > Subject: Re: jdk12 question - NB 11.0 > > Look in the Options window, in the Editor | Hints tab, look for the > 'Convert switch to rule switch' item and uncheck it. > > Gj > > On Mon, Apr 1, 2019 at 2:40 PM Mike Billman > <[email protected]<mailto:[email protected]>> > wrote: > > > Just a quick question about jdk12…I am running my project as a > > gradle project and was wondering how to get netbeans to suppress the > > error related to the new switch statements. > > > > > > > > Thanks! > > > > > > > > Mike Billman > > > > Senior Software Engineer > > > > CPTE > > > > > > > > [image: qclogo] > > > > > > > > 11800 Conrey Rd > > > > Suite 150 > > > > Cincinnati, OH 45249 > > > > > > > > T +1 513 469 1424 > > > > E [email protected]<mailto:[email protected]> > > > > F +1 513 469 1425 > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [email protected]<mailto:[email protected]> > For additional commands, e-mail: > [email protected]<mailto:[email protected]> > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > >
