[jboss-dev-forums] [Design of JBoss Build System] - Re: JBossRetro cannot replace final reference to StringBuild

kfinkels do-not-reply at jboss.com
Thu Apr 2 10:29:49 EDT 2009


I have a class like that:

public class LabelTest {	
      public LabelTest(){ 
		final JFrame frame = new JFrame();
		frame.setSize(100, 100);
		final StringBuilder builder = createStringBuilder();
		JLabel label = new JLabel(builder.toString());
		
		frame.add(label);
		frame.setVisible(true);;
	}
	
	private StringBuilder createStringBuilder(){
		return new StringBuilder("Hello");
	}
}

the .class - after the manipulation of jbossretro is still holding the reference to StringBuilder in the Local variable table


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223036#4223036

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223036



More information about the jboss-dev-forums mailing list