[jbosstools-issues] [JBoss JIRA] (JBIDE-11136) Wrong quick fix for empty tag <class> in beans.xml
Daniel Azarov (JIRA)
jira-events at lists.jboss.org
Tue Mar 6 12:51:36 EST 2012
[ https://issues.jboss.org/browse/JBIDE-11136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674087#comment-12674087 ]
Daniel Azarov commented on JBIDE-11136:
---------------------------------------
Expected behavior is:
1.in case when string in tag <class> can be a Java Class name and there is no Java Class with that name - offer to create such Java Class.
2. If not - not to offer that. (empty tag <class> is a part of 2.)
> Wrong quick fix for empty tag <class> in beans.xml
> --------------------------------------------------
>
> Key: JBIDE-11136
> URL: https://issues.jboss.org/browse/JBIDE-11136
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: CDI
> Affects Versions: 3.3.0.Beta1
> Reporter: Daniel Azarov
> Assignee: Daniel Azarov
> Fix For: 3.3.0.Beta1
>
> Attachments: empty_tag_class.png, JBIDE-11136.patch
>
>
> Test case:
> Execute:
> 1. Create CDI project
> 2. Create beans.xml
> {code}
> <?xml version="1.0"?>
> <beans xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://jboss.org/schema/cdi/beans_1_0.xsd">
> <alternatives>
> <class> </class>
> </alternatives>
> </beans>
> {code}
> 3. Save file
> ASSERT: There is a problem marker "There is no class with the specified name [JSR-299 §5.1.1]" for tag <class> </class>
> EXECUTE: Point mouse to marked text then hold
> ASSERT: There should be no Quick Fix "Create CDI Bean Class" for such cases
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list