I'm wondering if this is the problem: Internal compiler error with autoboxed fields and ++ operator
http://code.google.com/p/google-web-toolkit/issues/detail?id=2886&q=inlined I see that autoincrement is used within fillTree(). If this is the issue, there is a patch for it and will be fixed in the next production release of 1.5 On Wed, Oct 15, 2008 at 4:01 PM, hofmanndavid <[EMAIL PROTECTED]> wrote: > > I went back to GWT 1.4 and it compiles perfectly > hope anybody can still help my with this one > > it is horrible to work on java prior to version 5 > > On Oct 14, 12:16 pm, hofmanndavid <[EMAIL PROTECTED]> wrote: >> Sorry, I forgot to say the it perfectly works in hosted mode. But when >> compiling it produces this error. >> If I whould be able to know that the compiler is complaining about and >> how to evade that it will be enough for now >> >> Thank you >> >> On Oct 14, 12:13 pm, hofmanndavid <[EMAIL PROTECTED]> wrote: >> >> > Any insigth in how to hack this please >> > I think this is a bug. >> > Thanks a lot for any reply. >> >> > package >> > py.com.personal.webvas.gemconnect.ui.gwt.ServiceManager.client; // >> > line 1 >> >> > import java.util.HashMap; >> > import java.util.Map; >> >> > import >> > py.com.personal.webvas.gemconnect.ui.gwt.ServiceManager.client.wrapper.GItem; >> >> > import com.google.gwt.core.client.EntryPoint; >> > import com.google.gwt.user.client.rpc.AsyncCallback; >> > import com.google.gwt.user.client.ui.Button; >> > import com.google.gwt.user.client.ui.ClickListener; >> > import com.google.gwt.user.client.ui.FocusListener; >> > import com.google.gwt.user.client.ui.KeyboardListener; >> > import com.google.gwt.user.client.ui.Label; >> > import com.google.gwt.user.client.ui.RootPanel; >> > import com.google.gwt.user.client.ui.ScrollPanel; >> > import com.google.gwt.user.client.ui.TextArea; >> > import com.google.gwt.user.client.ui.TextBox; >> > import com.google.gwt.user.client.ui.Tree; >> > import com.google.gwt.user.client.ui.TreeItem; >> > import com.google.gwt.user.client.ui.TreeListener; >> > import com.google.gwt.user.client.ui.Widget; >> >> > /** >> > * Entry point classes define <code>onModuleLoad()</code>. >> > */ >> > public class ServiceManager implements EntryPoint { >> > private TextArea textArea; >> > private Button unlockButton; >> > private Button removeButton; >> > private Label label; >> > private ScrollPanel scrollPanel; >> > private TextBox msisdnTextBox; >> > private Tree tree; >> >> > public static Integer indexCounter = 0; >> > public static Map<Integer, GItem> indexGItem =new HashMap<Integer, >> > GItem>(); >> > public static GItem currentSelection; >> >> > public void onModuleLoad() { >> > RootPanel rootPanel = RootPanel.get(); >> > msisdnTextBox = new TextBox(); >> > rootPanel.add(msisdnTextBox, 2, 0); >> > msisdnTextBox.setWidth("378px"); >> > msisdnTextBox.addFocusListener(new FocusListener(){ >> > public void onFocus(Widget sender) { >> > msisdnTextBox.setSelectionRange(0, >> > msisdnTextBox.getText().length()); >> > } >> > public void onLostFocus(Widget sender) { }}); >> > msisdnTextBox.addKeyboardListener(new >> > KeyboardListener(){ >> > public void onKeyDown(Widget sender, char keyCode, int >> > modifiers) {} >> > public void onKeyUp(Widget sender, char keyCode, int >> > modifiers) {} >> >> > public void onKeyPress(Widget sender, char keyCode, int >> > modifiers) { >> > if (KeyboardListener.KEY_ENTER == keyCode) { >> > if (msisdnTextBox.getText().length() < 7) >> > return; >> >> > label.setText("Buscando ..."); >> > indexCounter = -1; >> > indexGItem.clear(); >> >> > msisdnTextBox.setText("59597"+msisdnTextBox.getText().substring(msisdnTextBox.getText().length()-7)); >> >> > ServerProxy.Util.getInstance().getMenu(msisdnTextBox.getText(), new >> > AsyncCallback<GItem>(){ >> >> > public void onFailure(Throwable caught) { >> > label.setText(""); >> > tree.clear(); >> > tree.addItem("Error"); >> > tree.setFocus(true); >> > } >> >> > public void onSuccess(GItem result) { >> > label.setText(""); >> > if (result == null) >> > onFailure(null); >> >> > TreeItem firstNode = new TreeItem(); >> >> > fillTree(result, firstNode); >> >> > tree.clear(); >> > tree.addItem(firstNode); >> > tree.setFocus(true); >> > } >> >> > private void fillTree(GItem gitem, TreeItem >> > treeItem) { >> > indexCounter++; >> > indexGItem.put(indexCounter, gitem); >> >> > if (!gitem.isService()) { >> >> > if (gitem.isPage()) { >> > TreeItem childNode = new TreeItem(indexCounter >> > +"."+gitem.toString()); >> > treeItem.addItem(childNode); >> > treeItem = childNode; >> > } >> > else { >> > treeItem.setHTML(indexCounter+".STKMenu"); >> > } >> >> > for (GItem g : gitem.childs) >> > fillTree(g, treeItem); >> > } >> > else { >> > treeItem.addItem(indexCounter >> > +"."+gitem.toString()); >> > } >> >> > } >> > }); >> >> > } >> > } >> >> > }); >> >> > scrollPanel = new ScrollPanel(); >> > rootPanel.add(scrollPanel, 2, 53); >> > scrollPanel.setSize("376px", "444px"); >> > tree = new Tree(); >> > scrollPanel.setWidget(tree); >> > tree.setSize("100%", "100%"); >> > tree.addTreeListener(new TreeListener(){ >> > public void onTreeItemSelected(TreeItem item) { >> > int till = item.getHTML().indexOf("."); >> > currentSelection = >> > indexGItem.get(Integer.parseInt(item.getHTML().substring(0, till))); >> > textArea.setText(currentSelection.toString()); >> > } >> > public void onTreeItemStateChanged(TreeItem item) { >> > }}); >> > label = new Label(""); >> > rootPanel.add(label, 2, 29); >> > label.setWidth("378px"); >> > removeButton = new Button(); >> > rootPanel.add(removeButton, 4, 504); >> > removeButton.setText("Remove"); >> > removeButton.addClickListener(new ClickListener(){ >> > public void onClick(Widget sender) { >> >> > ServerProxy.Util.getInstance().removeItem(msisdnTextBox.getText(), >> > currentSelection, new AsyncCallback<String>(){ >> > public void onFailure(Throwable caught) { >> >> > } >> > public void onSuccess(String result) { >> > textArea.setText(result); >> > }}); >> > }}); >> > unlockButton = new Button(); >> > rootPanel.add(unlockButton, 108, 504); >> > unlockButton.setWidth("104px"); >> > unlockButton.setText("Unlock"); >> > unlockButton.addClickListener(new ClickListener(){ >> > public void onClick(Widget sender) { >> >> > ServerProxy.Util.getInstance().unlockSimcard(msisdnTextBox.getText(), >> > new AsyncCallback<String>(){ >> > public void onFailure(Throwable caught) { >> >> > } >> > public void onSuccess(String result) { >> > textArea.setText(result); >> > }}); >> > }}); >> > textArea = new TextArea(); >> > rootPanel.add(textArea, 4, 545); >> > textArea.setSize("376px", "204px"); >> > } >> >> > }// line 170 >> >> > ------------------------------------ >> > Buildfile: C:\dhofmann\development\workspaces\projects\GWTSIMManager >> > \src\py\com\personal\webvas\gemconnect\ui\gwt\ServiceManager\build.xml >> > gwt-compile: >> > [delete] Deleting directory C:\dhofmann\development\workspaces >> > [EMAIL PROTECTED] >> > [java] Compiling module >> > py.com.personal.webvas.gemconnect.ui.gwt.ServiceManager.ServiceManager >> > [java] Compiling permutations >> > [java] Analyzing permutation #1 >> > [java] [ERROR] An internal compiler exception occurred >> > [java] com.google.gwt.dev.jjs.InternalCompilerException: Unable >> > to clone a local reference in a function being inlined >> > [java] at com.google.gwt.dev.jjs.impl.MethodInliner >> > $CloneCalleeExpressionVisitor.visit(MethodInliner.java:65) >> > [java] at >> > com.google.gwt.dev.jjs.ast.JLocalRef.traverse(JLocalRef.java:44) >> > [java] at >> > com.google.gwt.dev.jjs.ast.JVisitor.doTraverse(JVisitor.java:527) >> > [java] at >> > com.google.gwt.dev.jjs.ast.JVisitor.doAccept(JVisitor.java:509) >> > [java] at >> > com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:65) >> > [java] at >> > com.google.gwt.dev.jjs.impl.CloneExpressionVisitor.cloneExpression(CloneExpressionVisitor.java: >> > 75) >> > [java] at >> > com.google.gwt.dev.jjs.impl.CloneExpressionVisitor.visit(CloneExpressionVisitor.java: >> > 112) >> > [java] at >> > com.google.gwt.dev.jjs.ast.JBinaryOperation.traverse(JBinaryOperation.java: >> > 75) >> > [java] at >> >> ... >> >> read more ยป > > > -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---