[JBoss JIRA] (ROASTER-5) Having method parameters a bit more typed
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/ROASTER-5?page=com.atlassian.jira.plugin.... ]
Antonio Goncalves commented on ROASTER-5:
-----------------------------------------
Oh, so I could not go just {{method.addParameter(Number.class, "value").addParameter(ConstraintValidatorContext.class, "context")}} ?
Well, if it's at least, typed, and saves an import, that more than enough.
> Having method parameters a bit more typed
> -----------------------------------------
>
> Key: ROASTER-5
> URL: https://issues.jboss.org/browse/ROASTER-5
> Project: Roaster
> Issue Type: Feature Request
> Components: API
> Affects Versions: 2.1.0.Final
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> I want to create a Bean Validation implementation, that means that the {{isValid}} method takes two parameters. And the only way to add two parameters seems to be by a String
> {code}
> javaClass.addMethod().setPublic().setName("isValid").setReturnType("boolean").setParameters("Number value, ConstraintValidatorContext context").setBody("return false;").addAnnotation(Override.class);
> {code}
> It would be nice to have typed parameters so the import is implicit, and things are a bit more typed :
> {code}
> javaClass.addMethod().setPublic().setName("isValid").setReturnType("boolean").addParameter(Number.class, "value").addParameter(ConstraintValidatorContext.class, "context").setBody("return false;").addAnnotation(Override.class);
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 9 months
[JBoss JIRA] (FORGE-1734) CCE when starting up the integrated Forge console in JBT
by Lincoln Baxter III (JIRA)
[ https://issues.jboss.org/browse/FORGE-1734?page=com.atlassian.jira.plugin... ]
Lincoln Baxter III reopened FORGE-1734:
---------------------------------------
Assignee: Lincoln Baxter III (was: George Gastaldi)
Fixing this in the CLAC
> CCE when starting up the integrated Forge console in JBT
> --------------------------------------------------------
>
> Key: FORGE-1734
> URL: https://issues.jboss.org/browse/FORGE-1734
> Project: Forge
> Issue Type: Bug
> Components: Furnace (Container)
> Reporter: Koen Aers
> Assignee: Lincoln Baxter III
> Fix For: 2.4.0.Final
>
>
> This is the stack trace that results:
> !ENTRY org.eclipse.ui 4 0 2014-04-04 17:04:12.441
> !MESSAGE Unhandled event loop exception
> !STACK 0
> org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ClassCastException: org.jboss.forge.furnace.proxy.ForgeProxy_$$_javassist_e30dba7a-ee9b-437c-9b4d-ee8a2a5ac750 cannot be cast to org.jboss.forge.addon.shell.ShellHandle)
> at org.eclipse.swt.SWT.error(SWT.java:4441)
> at org.eclipse.swt.SWT.error(SWT.java:4356)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:139)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3978)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1122)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1006)
> at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:147)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:630)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:574)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:125)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:133)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:103)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:378)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:232)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1462)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
> Caused by: java.lang.ClassCastException: org.jboss.forge.furnace.proxy.ForgeProxy_$$_javassist_e30dba7a-ee9b-437c-9b4d-ee8a2a5ac750 cannot be cast to org.jboss.forge.addon.shell.ShellHandle
> at org.jboss.tools.forge.ui.ext.cli.F2Console.start(F2Console.java:19)
> at org.jboss.tools.aesh.ui.view.AeshTextViewer$3.run(AeshTextViewer.java:79)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
> ... 24 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 9 months
[JBoss JIRA] (FORGE-1734) CCE when starting up the integrated Forge console in JBT
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1734?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-1734.
----------------------------------
Resolution: Done
> CCE when starting up the integrated Forge console in JBT
> --------------------------------------------------------
>
> Key: FORGE-1734
> URL: https://issues.jboss.org/browse/FORGE-1734
> Project: Forge
> Issue Type: Bug
> Components: Furnace (Container)
> Reporter: Koen Aers
> Assignee: George Gastaldi
> Fix For: 2.4.0.Final
>
>
> This is the stack trace that results:
> !ENTRY org.eclipse.ui 4 0 2014-04-04 17:04:12.441
> !MESSAGE Unhandled event loop exception
> !STACK 0
> org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ClassCastException: org.jboss.forge.furnace.proxy.ForgeProxy_$$_javassist_e30dba7a-ee9b-437c-9b4d-ee8a2a5ac750 cannot be cast to org.jboss.forge.addon.shell.ShellHandle)
> at org.eclipse.swt.SWT.error(SWT.java:4441)
> at org.eclipse.swt.SWT.error(SWT.java:4356)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:139)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3978)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1122)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1006)
> at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:147)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:630)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:574)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:125)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:133)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:103)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:378)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:232)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1462)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
> Caused by: java.lang.ClassCastException: org.jboss.forge.furnace.proxy.ForgeProxy_$$_javassist_e30dba7a-ee9b-437c-9b4d-ee8a2a5ac750 cannot be cast to org.jboss.forge.addon.shell.ShellHandle
> at org.jboss.tools.forge.ui.ext.cli.F2Console.start(F2Console.java:19)
> at org.jboss.tools.aesh.ui.view.AeshTextViewer$3.run(AeshTextViewer.java:79)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
> ... 24 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 9 months
[JBoss JIRA] (FORGE-1734) CCE when starting up the integrated Forge console in JBT
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1734?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-1734:
-----------------------------------
Fix Version/s: 2.4.0.Final
> CCE when starting up the integrated Forge console in JBT
> --------------------------------------------------------
>
> Key: FORGE-1734
> URL: https://issues.jboss.org/browse/FORGE-1734
> Project: Forge
> Issue Type: Bug
> Components: Furnace (Container)
> Reporter: Koen Aers
> Assignee: George Gastaldi
> Fix For: 2.4.0.Final
>
>
> This is the stack trace that results:
> !ENTRY org.eclipse.ui 4 0 2014-04-04 17:04:12.441
> !MESSAGE Unhandled event loop exception
> !STACK 0
> org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ClassCastException: org.jboss.forge.furnace.proxy.ForgeProxy_$$_javassist_e30dba7a-ee9b-437c-9b4d-ee8a2a5ac750 cannot be cast to org.jboss.forge.addon.shell.ShellHandle)
> at org.eclipse.swt.SWT.error(SWT.java:4441)
> at org.eclipse.swt.SWT.error(SWT.java:4356)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:139)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3978)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1122)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1006)
> at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:147)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:630)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:574)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:125)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:133)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:103)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:378)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:232)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1462)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
> Caused by: java.lang.ClassCastException: org.jboss.forge.furnace.proxy.ForgeProxy_$$_javassist_e30dba7a-ee9b-437c-9b4d-ee8a2a5ac750 cannot be cast to org.jboss.forge.addon.shell.ShellHandle
> at org.jboss.tools.forge.ui.ext.cli.F2Console.start(F2Console.java:19)
> at org.jboss.tools.aesh.ui.view.AeshTextViewer$3.run(AeshTextViewer.java:79)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
> ... 24 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 9 months
[JBoss JIRA] (FORGE-1734) CCE when starting up the integrated Forge console in JBT
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1734?page=com.atlassian.jira.plugin... ]
George Gastaldi reopened FORGE-1734:
------------------------------------
> CCE when starting up the integrated Forge console in JBT
> --------------------------------------------------------
>
> Key: FORGE-1734
> URL: https://issues.jboss.org/browse/FORGE-1734
> Project: Forge
> Issue Type: Bug
> Components: Furnace (Container)
> Reporter: Koen Aers
> Assignee: George Gastaldi
>
> This is the stack trace that results:
> !ENTRY org.eclipse.ui 4 0 2014-04-04 17:04:12.441
> !MESSAGE Unhandled event loop exception
> !STACK 0
> org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ClassCastException: org.jboss.forge.furnace.proxy.ForgeProxy_$$_javassist_e30dba7a-ee9b-437c-9b4d-ee8a2a5ac750 cannot be cast to org.jboss.forge.addon.shell.ShellHandle)
> at org.eclipse.swt.SWT.error(SWT.java:4441)
> at org.eclipse.swt.SWT.error(SWT.java:4356)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:139)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3978)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1122)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1006)
> at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:147)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:630)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:574)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:125)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:133)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:103)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:378)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:232)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1462)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
> Caused by: java.lang.ClassCastException: org.jboss.forge.furnace.proxy.ForgeProxy_$$_javassist_e30dba7a-ee9b-437c-9b4d-ee8a2a5ac750 cannot be cast to org.jboss.forge.addon.shell.ShellHandle
> at org.jboss.tools.forge.ui.ext.cli.F2Console.start(F2Console.java:19)
> at org.jboss.tools.aesh.ui.view.AeshTextViewer$3.run(AeshTextViewer.java:79)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
> ... 24 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 9 months
[JBoss JIRA] (FORGE-1734) CCE when starting up the integrated Forge console in JBT
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1734?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-1734.
----------------------------------
Assignee: George Gastaldi
Resolution: Done
> CCE when starting up the integrated Forge console in JBT
> --------------------------------------------------------
>
> Key: FORGE-1734
> URL: https://issues.jboss.org/browse/FORGE-1734
> Project: Forge
> Issue Type: Bug
> Components: Furnace (Container)
> Reporter: Koen Aers
> Assignee: George Gastaldi
>
> This is the stack trace that results:
> !ENTRY org.eclipse.ui 4 0 2014-04-04 17:04:12.441
> !MESSAGE Unhandled event loop exception
> !STACK 0
> org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ClassCastException: org.jboss.forge.furnace.proxy.ForgeProxy_$$_javassist_e30dba7a-ee9b-437c-9b4d-ee8a2a5ac750 cannot be cast to org.jboss.forge.addon.shell.ShellHandle)
> at org.eclipse.swt.SWT.error(SWT.java:4441)
> at org.eclipse.swt.SWT.error(SWT.java:4356)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:139)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3978)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1122)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1006)
> at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:147)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:630)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:574)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:125)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:133)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:103)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:378)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:232)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1462)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
> Caused by: java.lang.ClassCastException: org.jboss.forge.furnace.proxy.ForgeProxy_$$_javassist_e30dba7a-ee9b-437c-9b4d-ee8a2a5ac750 cannot be cast to org.jboss.forge.addon.shell.ShellHandle
> at org.jboss.tools.forge.ui.ext.cli.F2Console.start(F2Console.java:19)
> at org.jboss.tools.aesh.ui.view.AeshTextViewer$3.run(AeshTextViewer.java:79)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
> ... 24 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 9 months
[JBoss JIRA] (ROASTER-5) Having method parameters a bit more typed
by Matt Benson (JIRA)
[ https://issues.jboss.org/browse/ROASTER-5?page=com.atlassian.jira.plugin.... ]
Matt Benson commented on ROASTER-5:
-----------------------------------
I can see how Antonio's requested syntax could be nice, but Roaster's other similar APIs work the way George has described, so for consistency's sake this would be best.
> Having method parameters a bit more typed
> -----------------------------------------
>
> Key: ROASTER-5
> URL: https://issues.jboss.org/browse/ROASTER-5
> Project: Roaster
> Issue Type: Feature Request
> Components: API
> Affects Versions: 2.1.0.Final
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> I want to create a Bean Validation implementation, that means that the {{isValid}} method takes two parameters. And the only way to add two parameters seems to be by a String
> {code}
> javaClass.addMethod().setPublic().setName("isValid").setReturnType("boolean").setParameters("Number value, ConstraintValidatorContext context").setBody("return false;").addAnnotation(Override.class);
> {code}
> It would be nice to have typed parameters so the import is implicit, and things are a bit more typed :
> {code}
> javaClass.addMethod().setPublic().setName("isValid").setReturnType("boolean").addParameter(Number.class, "value").addParameter(ConstraintValidatorContext.class, "context").setBody("return false;").addAnnotation(Override.class);
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 9 months
[JBoss JIRA] (FORGE-1734) CCE when starting up the integrated Forge console in JBT
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1734?page=com.atlassian.jira.plugin... ]
George Gastaldi commented on FORGE-1734:
----------------------------------------
Implemented ShellHandle as an interface. This does not solve the original bug however that may be lying in Furnace
> CCE when starting up the integrated Forge console in JBT
> --------------------------------------------------------
>
> Key: FORGE-1734
> URL: https://issues.jboss.org/browse/FORGE-1734
> Project: Forge
> Issue Type: Bug
> Components: Furnace (Container)
> Reporter: Koen Aers
>
> This is the stack trace that results:
> !ENTRY org.eclipse.ui 4 0 2014-04-04 17:04:12.441
> !MESSAGE Unhandled event loop exception
> !STACK 0
> org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ClassCastException: org.jboss.forge.furnace.proxy.ForgeProxy_$$_javassist_e30dba7a-ee9b-437c-9b4d-ee8a2a5ac750 cannot be cast to org.jboss.forge.addon.shell.ShellHandle)
> at org.eclipse.swt.SWT.error(SWT.java:4441)
> at org.eclipse.swt.SWT.error(SWT.java:4356)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:139)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3978)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1122)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1006)
> at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:147)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:630)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:574)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:125)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:133)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:103)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:378)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:232)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1462)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
> Caused by: java.lang.ClassCastException: org.jboss.forge.furnace.proxy.ForgeProxy_$$_javassist_e30dba7a-ee9b-437c-9b4d-ee8a2a5ac750 cannot be cast to org.jboss.forge.addon.shell.ShellHandle
> at org.jboss.tools.forge.ui.ext.cli.F2Console.start(F2Console.java:19)
> at org.jboss.tools.aesh.ui.view.AeshTextViewer$3.run(AeshTextViewer.java:79)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
> ... 24 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 9 months
[JBoss JIRA] (FORGE-1735) No commands are displayed sporadically
by George Gastaldi (JIRA)
George Gastaldi created FORGE-1735:
--------------------------------------
Summary: No commands are displayed sporadically
Key: FORGE-1735
URL: https://issues.jboss.org/browse/FORGE-1735
Project: Forge
Issue Type: Bug
Components: Furnace (Container), Furnace CDI, Furnace Simple
Affects Versions: 2.3.0.Final
Reporter: George Gastaldi
Priority: Critical
Fix For: 2.x Future
Sometimes the command list in Eclipse (or Shell) appears empty when invoked.
By debugging, found out that the problem lies in the instanceCaches in ImportedImpl and in the ServiceRegistry implementations. For some reason they are empty (perhaps invoked prematurely?) and it never queries the services back. By cleaning the instanceCache on debug fixed the issue
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 9 months
[JBoss JIRA] (FORGE-1734) CCE when starting up the integrated Forge console in JBT
by Koen Aers (JIRA)
Koen Aers created FORGE-1734:
--------------------------------
Summary: CCE when starting up the integrated Forge console in JBT
Key: FORGE-1734
URL: https://issues.jboss.org/browse/FORGE-1734
Project: Forge
Issue Type: Bug
Components: Furnace (Container)
Reporter: Koen Aers
This is the stack trace that results:
!ENTRY org.eclipse.ui 4 0 2014-04-04 17:04:12.441
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ClassCastException: org.jboss.forge.furnace.proxy.ForgeProxy_$$_javassist_e30dba7a-ee9b-437c-9b4d-ee8a2a5ac750 cannot be cast to org.jboss.forge.addon.shell.ShellHandle)
at org.eclipse.swt.SWT.error(SWT.java:4441)
at org.eclipse.swt.SWT.error(SWT.java:4356)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:139)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3978)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1122)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1006)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:147)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:630)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:574)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:125)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:133)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:103)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:378)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:232)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1462)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Caused by: java.lang.ClassCastException: org.jboss.forge.furnace.proxy.ForgeProxy_$$_javassist_e30dba7a-ee9b-437c-9b4d-ee8a2a5ac750 cannot be cast to org.jboss.forge.addon.shell.ShellHandle
at org.jboss.tools.forge.ui.ext.cli.F2Console.start(F2Console.java:19)
at org.jboss.tools.aesh.ui.view.AeshTextViewer$3.run(AeshTextViewer.java:79)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
... 24 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 9 months