[JBoss JIRA] Created: (JBIDE-9452) @Named beans should be taken into account during dependency resolution
by Alexey Kazakov (JIRA)
@Named beans should be taken into account during dependency resolution
----------------------------------------------------------------------
Key: JBIDE-9452
URL: https://issues.jboss.org/browse/JBIDE-9452
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi
Affects Versions: 3.3.0.M3
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Fix For: 3.3.x
EXECUTE: Create a CDI project
EXECUTE: Add the following code to the project:
{code}
@Stereotype
@Named
@Target({ TYPE, METHOD, FIELD })
@Retention(RUNTIME)
@Documented
public @interface TestS {
}
{code}
{code}
import javax.enterprise.inject.Produces;
import javax.inject.Inject;
import javax.inject.Named;
public class MyBean {
@Inject String s; // OK
@Inject @Named String foo3; // OK
@Inject @Named("foo3") String s1; // OK
@Inject @Named String xyz; // OK
@Inject @Named("xyz") String s2; // OK
@Inject @Named String abc; // OK
@Inject @Named("abc") String s3; // OK
@Inject @Named String foo; // OK
@Inject @Named("foo") String s4; // OK
@Inject @Named String unknownName; // Unsatisfied
@Inject @Named("unknownName") String unknownName1; // Unsatisfied
@Inject public void doSmth(@Named("foo4") String foo8) {} // Ambiguous: foo4, foo4(), foo5(), foo6()
@Inject @Named("foo4") String s5; // Ambiguous: foo4, foo4(), foo5(), foo6()
@Produces @TestS // OK
public String foo() {return "";}
@Produces @TestS @Named("abc") // OK
public String foo1;
@Produces @Named("xyz") // OK
public String foo2;
@Produces @Named // OK
public String foo3() {return "";}
@Produces @Named // Duplicate EL name
public String foo4() {return "";}
@Produces @Named("foo4") // Duplicate EL name
public String foo5() {return "";}
@Produces @TestS @Named("foo4") // Duplicate EL name
public String foo6() {return "";}
@Produces @TestS // Duplicate EL name
public String foo4;
@Produces // OK
public String foo7() {return "";}
}
{code}
ASSERT: See comments in MyBean.java. There should be all the mentioned validation problems.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 8 months
[JBoss JIRA] Created: (JBIDE-9453) CDI validator should mark a bean with duplicated EL name if @Named declared in the stereotype
by Alexey Kazakov (JIRA)
CDI validator should mark a bean with duplicated EL name if @Named declared in the stereotype
---------------------------------------------------------------------------------------------
Key: JBIDE-9453
URL: https://issues.jboss.org/browse/JBIDE-9453
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi
Affects Versions: 3.3.0.M3
Reporter: Alexey Kazakov
Assignee: Alexey Kazakov
Fix For: 3.3.0.M3
EXECUTE: Create a CDI project
EXECUTE: Add the following code to the project:
{code}
@Stereotype
@Named
@Target({ TYPE, METHOD, FIELD })
@Retention(RUNTIME)
@Documented
public @interface TestS {
}
{code}
{code}
import javax.enterprise.inject.Produces;
import javax.inject.Named;
public class MyBean {
@Produces @Named // Duplicate EL name
public String foo4() {return "";}
@Produces @TestS // Duplicate EL name
public String foo4;
}
{code}
ASSERT: See comments in MyBean.java. There should be a problem marker on annotation @TestS of field foo4 in MyBean.java instead of annotation @Named in TestS.java.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 8 months
[JBoss JIRA] Created: (JBIDE-9413) NLS missing messages
by George Gastaldi (JIRA)
NLS missing messages
--------------------
Key: JBIDE-9413
URL: https://issues.jboss.org/browse/JBIDE-9413
Project: Tools (JBoss Tools)
Issue Type: Bug
Reporter: George Gastaldi
Priority: Trivial
The following NLS messages are missing:
{code:java}
NLS missing message: J2EEModuleExportOperation_DestinationFileIsDirectoryError in: org.jboss.ide.eclipse.as.ui.Messages
NLS missing message: J2EEModuleExportOperation_ErrorExportingArchive in: org.jboss.ide.eclipse.as.ui.Messages
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 8 months
[JBoss JIRA] Created: (JBIDE-9305) CDI Validation problem markers should be removed when CDI support is disabled
by Alexey Kazakov (JIRA)
CDI Validation problem markers should be removed when CDI support is disabled
-----------------------------------------------------------------------------
Key: JBIDE-9305
URL: https://issues.jboss.org/browse/JBIDE-9305
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Affects Versions: 3.3.0.M2
Reporter: Alexey Kazakov
Assignee: Alexey Kazakov
Fix For: 3.3.0.M3
EXECUTE: Create a CDI project (with CDI support enabled)
EXECUTE: Add any CDI problem. For instance:
{code}
public class Test {
@Inject String foo;
@Produces
public String foo1() {
return "";
}
@Produces
public String foo2() {
return "";
}
}
{code}
ASSERT: There is a CDI problem marker on @Inject String foo;
EXECUTE: Disable CDI support in Project Properties page. Clean/re-build the project.
ASSERT: The CDI problem disappeared.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 8 months
[JBoss JIRA] Created: (JBIDE-9240) Add Class wizard in beans.xml editor throws exeption when attempting to add duplicate entries, but should properly validate input.
by Viacheslav Kabanovich (JIRA)
Add Class wizard in beans.xml editor throws exeption when attempting to add duplicate entries, but should properly validate input.
----------------------------------------------------------------------------------------------------------------------------------
Key: JBIDE-9240
URL: https://issues.jboss.org/browse/JBIDE-9240
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Affects Versions: 3.3.0.M2
Reporter: Viacheslav Kabanovich
Assignee: Viacheslav Kabanovich
Fix For: 3.3.0.M3
EXECUTE: Open beans.xml editor and select 'Interceptors' node in 'Tree' tab.
EXECUTE: Call from context menu 'Add Class' wizard, input 'MyClass' and finish.
ASSERT: Node 'MyClass' appears.
EXECUTE: Repeat second step with the same 'MyClass' input.
ASSERT: Wizard disables finish and displays error message ''Interceptors' already contains class MyClass.'.
FAILURE: Wizard allows to push 'Finish', writes error message with stack trace into the log and remains open.
The same steps work for nodes 'Decorators' and 'Alternatives'.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 8 months
[JBoss JIRA] Created: (JBIDE-9191) no provider name for org.jboss.tools.ws.jaxrs.feature
by Nick Boldt (JIRA)
no provider name for org.jboss.tools.ws.jaxrs.feature
-----------------------------------------------------
Key: JBIDE-9191
URL: https://issues.jboss.org/browse/JBIDE-9191
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Webservices
Affects Versions: 3.3.0.M2
Reporter: Nick Boldt
Assignee: Brian Fitzpatrick
Fix For: 3.3.0.M3
Attachments: Screenshot-Forge-and-WS-JAXRS-missing-provider-names.png
Missing provider name. check your feature.xml and add one (see other feature.xml and feature.properties files to learn how. Provider should be "JBoss by Red Hat".
See also screenshot below:
!Screenshot-Forge-and-WS-JAXRS-missing-provider-names!
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 8 months