jaxb-codemodel
jaxb-codemodel copied to clipboard
A construct for "Synchronized block" needed
A construct like synchronized(this.myFieldVar)
{ // do something }
seems to be possible only by body()/or whatever block/.directStatement("synchronized(this.myFieldVar)"); JBlock blk=new Block(true, true); // ... body.add(block);
While one can live with, it becomes a bit unpleasant in case the name of the JFieldVar needs to be changed.
Affected Versions
[2.4]
Reported by no0ne
This issue was imported from java.net JIRA CODEMODEL-6