[
https://issues.jboss.org/browse/JBIDE-11136?page=com.atlassian.jira.plugi...
]
Jaroslav Jankovič commented on JBIDE-11136:
-------------------------------------------
Daniel, Alexey, so what is the expected behaviour when
"<class> </class>" is in beans.xml? There should be error marker
but no quick fix should be provided? Because I have just tried to reproduce on JBT 3.3.0
Beta1c and quick fix is still there. Only change from previous Beta1 builds is replacing
the message: Create '<class> </class>' CDI Bean Class --->
Create CDI Bean Class '<class> </class>'.
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