[JBoss JIRA] Created: (JBIDE-6147) Scope type for directly extended managed bean annotated @Inherited should be inherited.
by Alexey Kazakov (JIRA)
Scope type for directly extended managed bean annotated @Inherited should be inherited.
---------------------------------------------------------------------------------------
Key: JBIDE-6147
URL: https://jira.jboss.org/jira/browse/JBIDE-6147
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Affects Versions: 3.2.next
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Fix For: 3.2.next
Suppose a class X is extended directly or indirectly by the bean class of a managed bean or session bean Y. If X is annotated with a scope type Z then Y inherits the annotation if and only if Z declares the @Inherited meta-annotation and neither Y nor any intermediate class that is a subclass of X and a superclass of Y declares a scope type
See JSR-299 Spec. 4.1. Inheritance of type-level metadata
org.jboss.tools.cdi.core.test.tck.ScopeDefinitionTest.testScopeTypeDeclaredInheritedIsInherited() must pass.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months
[JBoss JIRA] Created: (JBIDE-6146) Wrong default scope for CDI bean.
by Alexey Kazakov (JIRA)
Wrong default scope for CDI bean.
---------------------------------
Key: JBIDE-6146
URL: https://jira.jboss.org/jira/browse/JBIDE-6146
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Affects Versions: 3.2.next
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Fix For: 3.2.next
Following bean must have javax.enterprise.context.Dependent default scope:
package org.jboss.jsr299.tck.tests.definition.scope;
class Order{}
org.jboss.tools.cdi.core.test.tck.ScopeDefinitionTest.testDefaultScope() must pass.
See JSR-299 Spec:
2.4.4. Default scope
When no scope is explicitly declared by annotating the bean class or producer method or field the scope of a bean is defaulted.
The default scope for a bean which does not explicitly declare a scope depends upon its declared stereotypes:
• If the bean does not declare any stereotype with a declared default scope, the default scope for the bean is @Dependent.
• If all stereotypes declared by the bean that have some declared default scope have the same default scope, then that
scope is the default scope for the bean.
• If there are two different stereotypes declared by the bean that declare different default scopes, then there is no default
scope and the bean must explicitly declare a scope. If it does not explicitly declare a scope, the container automatically
detects the problem and treats it as a definition error.
If a bean explicitly declares a scope, any default scopes declared by stereotypes are ignored.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months
[JBoss JIRA] Created: (JBIDE-6157) @Named is not inherited by inherited Stereotypes.
by Alexey Kazakov (JIRA)
@Named is not inherited by inherited Stereotypes.
-------------------------------------------------
Key: JBIDE-6157
URL: https://jira.jboss.org/jira/browse/JBIDE-6157
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Affects Versions: 3.2.next
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Fix For: 3.2.next
org.jboss.tools.cdi.core.test.tck.StereotypeInheritenceTest.testInheritence() must pass.
See JSR-299 Spec.:
2.7.1.5
A stereotype may declare other stereotypes.
Stereotype declarations are transitive—a stereotype declared by a second stereotype is inherited by all beans and other stereotypes that declare the second stereotype.
Stereotypes declared @Target(TYPE) may not be applied to stereotypes declared @Target({TYPE, METHOD, FIELD}), @Target(METHOD), @Target(FIELD) or @Target({METHOD, FIELD}).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months
[JBoss JIRA] Created: (JBIDE-6234) CDI Validator marks @Disposes at wrong position.
by Alexey Kazakov (JIRA)
CDI Validator marks @Disposes at wrong position.
------------------------------------------------
Key: JBIDE-6234
URL: https://jira.jboss.org/jira/browse/JBIDE-6234
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Affects Versions: 3.2.next
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Fix For: 3.2.next
CDI model return incorrect position for @Disposes in:
package org.jboss.jsr299.tck.tests.implementation.initializer.broken.parameterAnnotatedDisposes;
import javax.enterprise.inject.Disposes;
import javax.inject.Inject;
class Capercaillie_Broken
{
@Inject
public void setName(String name, @Disposes ChickenHutch chickenHutch)
{
// No-op
}
}
org.jboss.jsr299.tck.tests.implementation.initializer.broken.parameterAnnotatedDisposes.Capercaillie_Broken.testInitializerMethodHasParameterAnnotatedDisposes() must pass.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months
[JBoss JIRA] Created: (JBIDE-7047) Exception when trying to map from input to XML/XSD template without java class in middle
by Brian Fitzpatrick (JIRA)
Exception when trying to map from input to XML/XSD template without java class in middle
----------------------------------------------------------------------------------------
Key: JBIDE-7047
URL: https://jira.jboss.org/browse/JBIDE-7047
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: smooks
Affects Versions: 3.2.0.Beta
Reporter: Brian Fitzpatrick
Assignee: Tom Fennelly
Fix For: 3.2.0.Beta
While testing the latest round of fixes, I hit upon a weird error. I can map into complex types in the template, but not simple ones at the root of the template model.
I'll attach the XML input and XSD output that I used to test, but it fails when I try to map to the book owner element.
!ENTRY org.eclipse.ui 4 0 2010-09-09 13:15:41.251
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.RuntimeException: java.lang.IllegalStateException: Invalid call to getTargetConnectionObjectRef() for non AbstractXMLObject connection source.
at org.jboss.tools.smooks.graphical.editors.SmooksGraphicalEditorPart$1.execute(SmooksGraphicalEditorPart.java:168)
at org.eclipse.gef.tools.AbstractTool.executeCommand(AbstractTool.java:426)
at org.eclipse.gef.tools.AbstractTool.executeCurrentCommand(AbstractTool.java:443)
at org.eclipse.gef.tools.AbstractConnectionCreationTool.handleCreateConnection(AbstractConnectionCreationTool.java:256)
at org.eclipse.gef.tools.ConnectionDragCreationTool.handleButtonUp(ConnectionDragCreationTool.java:63)
at org.eclipse.gef.tools.AbstractTool.mouseUp(AbstractTool.java:1206)
at org.eclipse.gef.tools.SelectionTool.mouseUp(SelectionTool.java:572)
at org.eclipse.gef.EditDomain.mouseUp(EditDomain.java:301)
at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseReleased(DomainEventDispatcher.java:380)
at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseUp(LightweightSystem.java:548)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:213)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3552)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3171)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Caused by: java.lang.IllegalStateException: Invalid call to getTargetConnectionObjectRef() for non AbstractXMLObject connection source.
at org.jboss.tools.smooks.gef.tree.model.TreeNodeConnection.getTargetConnectionObjectRef(TreeNodeConnection.java:155)
at org.jboss.tools.smooks.graphical.editors.model.freemarker.FreemarkerTemplateNodeGraphicalModel.addTargetConnection(FreemarkerTemplateNodeGraphicalModel.java:189)
at org.jboss.tools.smooks.gef.tree.model.TreeNodeConnection.connectTarget(TreeNodeConnection.java:83)
at org.jboss.tools.smooks.gef.tree.model.TreeNodeConnection.connect(TreeNodeConnection.java:70)
at org.jboss.tools.smooks.gef.tree.editparts.CreateConnectionCommand.execute(CreateConnectionCommand.java:57)
at org.eclipse.gef.commands.CommandStack.execute(CommandStack.java:197)
at org.jboss.tools.smooks.graphical.editors.SmooksGraphicalEditorPart$1.execute(SmooksGraphicalEditorPart.java:163)
... 35 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months