This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The single quote gets mangled in the following example Consider the following two LOG, which pass *identical* strings since "x y '" == "x " + "y '" LOG.warning("x y '" + bt + "'"); LOG.warning("x " + "y '" + bt + "'"); applying the hint to these gives LOG.log(Level.WARNING, "a g ''{0}''", bt); LOG.log(Level.WARNING,"a " + "g '" + "{0}''", bt); but these are not the same since "a g ''{0}''" != "a " + "g '" + "{0}''" since "a g '{0}''" Product Version: NetBeans IDE Dev (Build 201003081350) Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: C:\Documents and Settings\erra\.netbeans\dev
*** Bug 181814 has been marked as a duplicate of this bug. ***
Should be fixed: http://hg.netbeans.org/main-silver?cmd=changeset;node=fd78fd1b55b5
Integrated into 'main-golden', will be available in build *201003120200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/fd78fd1b55b5 User: Jan Lahoda <jlahoda@netbeans.org> Log: #181812: correcting escapes for multiple concatenated constants.