This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 172243 - [68cat] Fix imports doesn't do static import
Summary: [68cat] Fix imports doesn't do static import
Status: RESOLVED DUPLICATE of bug 71249
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Max Sauer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-15 03:52 UTC by dwschulze
Modified: 2009-09-15 10:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dwschulze 2009-09-15 03:52:13 UTC
[ BUILD # : 200909040632 ]
[ JDK VERSION : 1.6.* ]

I created an Entity with this line for Id generation:

    @GeneratedValue(strategy=SEQUENCE, generator = "contact_id_seq" )

Fix imports (Ctrl-Shift-I) did not add the static import statement
needed:

import static javax.persistence.GenerationType.SEQUENCE;
Comment 1 Stanislav Aubrecht 2009-09-15 08:22:54 UTC
reassigning to java team for evaluation 
Comment 2 Jiri Prox 2009-09-15 10:14:58 UTC
Unfortunately fix imports does not support static imports yet. There is issue 71249 tracking this.  

*** This issue has been marked as a duplicate of 71249 ***