[
http://jira.jboss.com/jira/browse/JBIDE-1295?page=comments#action_12394030 ]
Andy Gibson commented on JBIDE-1295:
------------------------------------
Here are some steps to re-produce that I just followed today in the last 10-15 minutes :
I just downloaded JBoss Tools 2.0 Ga from the
jboss.org website. I also downloaded a
complete Eclipse 3.3 for JEE developers, unzipped eclipse into new folder, unzipped jboss
tools into the same folder, created new shortcut to the eclipse.exe using the command line
params :
C:\temp\tools\eclipse\eclipse.exe -clean -vmargs -Xmx512M -Xms512M -XX:PermSize=256M
-XX:MaxPermSize=256M
Started IDE, set workspace to c:\temp\tools\projects, created new workspace.
Window->Show View->Other
Type server and select JBoss Server View. Add the locally installed JBoss 4.2 Application
Server.
Click File-> New -> Other. Type "Seam" and select Seam Web Project from
the filtered list to start the new project wizard.
Project Name is test, Server is the 4.2 one we just added, and seam 2.0 GA as the Seam
implementation.
Click Next,
Click Next.
Click Next
Select Ear as the deployment type
Added and configured a database despite not adding the JPA factet.
Finished,
Clicked ok to switch to the seam perspective.
Right clicked on the default package ("org.domain.test.session") in the
ejbModule folder in the ejb project, and selected add class, added a new class (called
dummy) with a single method "void myFunc() { }"
Added a @Remove annotation, added the import and it went fine.
Added a @Destroy annotation, added the import and immediately my code is highlighted red
because "Only component class can have @Destroy method "myFunc""
Code is as :
package org.domain.test.session;
import javax.ejb.Remove;
import org.jboss.seam.annotations.Destroy;
public class Dummy {
@Remove @Destroy
void myFunc() {
}
}
I'm running JBoss 4.2, and Seam 2.0 GA, the only pieces of this that wasn't
freshly installed. I'm using windows XP , with 1Gb ram. I'm having no problems
reproducing this issue with JBoss Tools 2.0 GA, and am strangely mystified that it is not
re-producable elsewhere. Mind you, I have non-reproducable problems in
http://jira.jboss.org/jira/browse/JBIDE-1294 as well, which I still get in the current
builds (and would if it is due to eclipse problems).
Cheers,
Andy
Allow @Destroy annotated methods in abstract Pojos
--------------------------------------------------
Key: JBIDE-1295
URL:
http://jira.jboss.com/jira/browse/JBIDE-1295
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: Seam
Environment: JBoss Tools nightly from 11/11/2007, Win XP SP2, JBoss 4.2.2, Seam
2.0 project , Eclipse 3.3.1.1
Reporter: Andy Gibson
Assigned To: Viacheslav Kabanovich
Priority: Minor
Fix For: 2.0.1
Attachments: screenshot-1.jpg
It would be nice if we could create abstract classes with a @Destroy annotated method.
While it appears possible to do this, the IDE complains that only components can have a
@Destroy method, which is correct, but the class is abstract and will be subclassed as a
component elsewhere. I think it will compile, deploy and run, but it puts several lines of
red squiggles in the code which is distracting.
I'm requesting that the class be allowed to pass the validation if it is marked as
abstract.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira