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.
Example: I have a template (JavaDataObject) which contains the following: protected get__NAME$Node$Children$MyChildren__ () { return (__NAME$Node$Children$MyChildren__) getChildren (); } When substituted to a file, named e.g. "Shortcuts.java", this becomes: protected Shortcuts() { return (MyChildren) getChildren (); } For some reason, the second occurrence was replaced correctly, but the first occurrence (1) did not use the leading "get", and (2) substituted the token with the __NAME__ and not the intelligent repla cement. Problem for apisupport module. [MRYZL] Note. " intelligent replacement" is performed by ...java.JMapFormat not by MapFormat I tried the following example (JMapFormat used in JavaDataLoader applied on data above) and it works well. package test.mapformat; import com.netbeans.developer.modules.loaders.java.*; public class MapFormatTest extends Object { public static void main (String args[]) { java.util.Map map = new java.util.HashMap(); map.put("NAME", "Shortcuts"); JMapFormat format = new JMapFormat(map); format.setLeftBrace("__"); format.setRightBrace("__"); format.setCondDelimiter("$"); format.setExactMatch(false); System.out.println(format.format(" protected get__NAME$Node$Children$MyChildren__ () {/n" + "return (__NAME$Node$Children$MyChildren__) getChildren ();")); } } Result is: protected getMyChildren () { return (MyChildren) getChildren (); I also tried the original example and it seems there is following problem. The code in the example has wrong syntax (missing return type). protected get__NAME$Node$Children$MyChildren__ () { If I correct the syntax, for example: protected void get__NAME$Node$Children$MyChildren__ () { the result is OK.
Priority is changed to P4 (normal).
Resolved for 3.4.x or earlier, no new info since then -> verify.
Resolved for 3.4.x or earlier, no new info since then -> closing.