This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 218323 - Unexpected warnings in the problems view after using the wizards for Java EE artifact creation
Summary: Unexpected warnings in the problems view after using the wizards for Java EE ...
Status: CLOSED FIXED
Alias: None
Product: WTP EJB Tools
Classification: WebTools
Component: jst.ejb (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Kaloyan Raev CLA
QA Contact: Naci Dai CLA
URL:
Whiteboard:
Keywords:
: 114668 218670 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-08 10:50 EST by Kaloyan Raev CLA
Modified: 2008-05-12 09:22 EDT (History)
5 users (show)

See Also:


Attachments
patch (25.88 KB, patch)
2008-02-19 10:34 EST, Kaloyan Raev CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kaloyan Raev CLA 2008-02-08 10:50:47 EST
There warnings in the Problem view that states: 

    The import java.util is never used

These warnings are results from the template classes generated in the .JETEmitter project. 

Another type of warnings are because of missing serialVersionUID field:

    The serializable class MyBean does not declare a static final serialVersionUID field of type long

Such warnings are frustrating for the user and should be resolved.
Comment 1 Kaloyan Raev CLA 2008-02-13 02:55:50 EST
*** Bug 218670 has been marked as a duplicate of this bug. ***
Comment 2 Kaloyan Raev CLA 2008-02-19 10:34:26 EST
Created attachment 90076 [details]
patch

Only few warnings left in the classes generated by the XDoclet builder. They should be solved in the XDoclet code rather than in the WTP code.
Comment 3 Kaloyan Raev CLA 2008-02-19 10:36:55 EST
dropped to HEAD
Comment 4 Kaloyan Raev CLA 2008-02-20 08:58:47 EST
*** Bug 114668 has been marked as a duplicate of this bug. ***
Comment 5 kiril mitov CLA 2008-04-02 13:13:01 EDT
Verified with wtp-sdk-I-I20080331115711-20080331115711

No problems in the problems view after creating a session bean. No problems in the .JETEmmiters project or in the project with the created be.
Comment 6 Karen Butzke CLA 2008-04-23 11:56:51 EDT
I am confused as to why the solution is to just fix the compiler warnings.  We are having the same problem in the Dali project with the new Entity Creation Wizard (bug 228222).  Wouldn't a better solution be for eclipse not to display the compiler warnings for a project that you can't even see in your workspace? Any thoughts on this?
Comment 7 Kaloyan Raev CLA 2008-05-12 09:22:42 EDT
Closing