Bug in organize imports

Hi,
There seem to be a couple of past bugs on organize imports- I'm not sure if this problem falls into the previous issues or not (or if they have been corrected.. ..as I side note, how does one access the list of open bugs? I can only find past fix lists)... ...any way, the issue:
* I had to import some legacy code which cotains a) unused imports and b) imports to vendor-specific classes (e.g. com.ibm.websphere.ldap.serializer.ModificationItem, rather then java.naming.directory.ModificationItem )
* if I choose to ogranize imports it generates malformed code, specifically:
--the class level javadoc is repeated (occurrs each time)
--often an empty import statement is put before the class-level javadoc
--"public class LDAPHelper" becomes
"public class LDAPHelper class LDAPHelper" (this problem occurrs each time)
Seeing how this code with its vendor specific implementations can't compile any way, it's not as annoying as it normally would be, but still a little surprising. Take care.

Sean,
does this happen with JDeveloper 10.1.3 ? Open bugs can be looked up in metalink.oracle.com if you have a support contract
Frank

Similar Messages

  • FB3 Beta 3 - another organize imports bug

    I'm getting lucky :-) Here is another organize imports bug in
    FB3 Beta3...
    If you have some simple hierarchy where base class defines
    public (or protected) method, and sub class tries to override this
    method you will encounter this bug. Let say that base class looks
    like this:
    package test {
    import flash.display.Shape;
    public class BaseClass extends Shape {
    public function BaseClass() {
    public function myMethod():void {
    trace("In BaseClass.myMethod()");
    and that sub class looks like this
    package test {
    public class SubClass extends BaseClass {
    public function SubClass() {
    super();
    Now, if you try to override myMethod() from BaseClass and
    start typing in subclass something like
    override public function m
    and use Ctrl+Space, FB will insert appropriate method but it
    will also insert errorneous import statement like this:
    import test.BaseClass.myMethod;
    So you will end up with sub class which looks like following:
    package test {
    import test.BaseClass.myMethod;
    public class SubClass extends BaseClass {
    public function SubClass() {
    super();
    override public function myMethod():void {
    Wrong import is correctly marked as error but issuing
    "organize import" does not remove it so it must be removed
    manually.
    Regards,
    Damir Murat
    PS: Sorry for bad code formatting but there is no option for
    inserting in-line code and attach code is a little bit
    awkward.

    Damir Murat,
    Did you already file a bug for this? If not, would you mind
    adding it to the public bug base so we can track the issue.
    Thanks,
    Peter

  • "Organize Imports" feature in Jdev10g will totally mess up my source code

    I set "Use Wide Imports". The source code became a piece of junk after running "Organize Imports" against following code:
    * @author
    package test;
    import java.io.*;
    import java.util.*;
    import javax.xml.parsers.*;
    import org.apache.xerces.util.XMLChar;
    import org.apache.xml.serialize.*;
    import org.apache.xml.utils.*;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    public class Test {
    This bug exists in preview version. I'm suprised this bug still in production release.

    The javadoc comments is causing the behavior.
    Removing the java doc comments seems to work
    Bug 5006753

  • Organize Imports & Auto Importing/Class Lookup

    I've been working with Flex Builder 3 now for over a month. I
    love many of its features. It does so much for me in building
    AIR/ActionScript/Flex apps that there really is no other option.
    However, the "organize imports" function just doesn't work well.
    The only time it works is when declaring a new variable. If you are
    lucky enough to type perfectly, it very nicely adds imports to any
    class it finds. However, if you so much as mistype a letter, back
    up and type the class name correctly, you lose your automatic
    import. If you correctly type your class name and variable
    definition and think, "hey, I can go to the menu and choose
    Organize Imports," sadly, you are mistaken. Organize Imports does
    nothing. Sometimes it removes class imports that belong to code
    you've temporarily commented out, but it never pulls anything in.
    Further, if you access a static function from a class, that is, you
    are not declaring a variable, but simply calling a class function,
    no import at all occurs. Organize Imports doesn't work. You must go
    and type in the import yourself. It does try to help you at this
    point,but if you don't remember the exact place in the package
    structure, you must go to the docs to figure out where it is, type
    it in, and then you get function introspection. I love what Flex
    Builder does for me, but this is just lame. I used FDT for a while
    to see if that tool would work for me, but, sadly, it doesn't. It
    just doesn't give you all the power that Flex Builder does. But, I
    never have to type in my imports! Their class helper functions work
    great. I can type in a class, misspell it, retype it, and it
    catches the class. When I choose Organize Imports, it works just
    all the other Eclipse language plug-ins work. Why is this? Why am I
    expected to pay top dollars for a product that is broken in one of
    the simplest ways? Does anyone have any take on this? I can't be
    the only frustrated one... Thanks. Sorry for a pure rant, but I
    just needed to vent and wanted to know if Adobe plans to fix this
    obvious failing... Or if everyone just expects this to continue
    this way and accepts it.

    Thanks, Tanya. I posted two bugs:
    http://bugs.adobe.com/jira/browse/FB-11571
    http://bugs.adobe.com/jira/browse/FB-11572

  • PSE6.0 organizer import CR2 files results in 'no preview'

    When I import Canon CR2 files from my camera using the PSE Organizer (Windows "import with PSE6") I often get no RAW preview/thumbnails; a thumbnail is created for some of the imported RAW pictures but most of them not. When I have opened the picture (camera raw 5.3 start by double click, and close) in most cases a thumbnail is created and displayed. This shouldn't be necessary, I suppose ????
    Does someone know this bug and how to fix it?

    So, now I have to buy PSE 7? Isn't there a cheap(er) upgrade possibility? After all, it is a bug in PSE6. PSE7 costs almost as much as a 'new' / first install version, isn't it.
    I would love to have the latest version, mostly not for the new features but mainly for bug fixes and/or performance enhancements.
    Date: Sun, 6 Sep 2009 09:30:40 -0600
    From: [email protected]
    To: [email protected]
    Subject: PSE6.0 organizer import CR2 files results in 'no preview'
    The bug was fixed in PSE 7 (one of the few PSE 6 bugs that were).
    >

  • Organize Imports does nothing

    Am I missing something obvious? The Organize Imports menu item and key shortcut flat-out don't do anything to my actionscript source. When I use the code completion feature, new imports are inserted for my completed class name. However, when I try to organize imports, it doesn't pull in imports for classes that are not yet imported (which is what that feature does over in the Eclipse JDT). Does this feature just not do the same thing as its namesake?

    You are correct. Organize imports only rearranges and removes imports, it does not add imports when they're missing. See https://bugs.adobe.com/jira/browse/FB-9309. Imports are automatically inserted when using code completion and other code generation features.
    Jason San Jose
    Software Engineer, Flash Builder

  • BUG: 'Remove unused import' operation modifies access modifiers

    Bug in 10.1.3 Production:
    In the code below
    import java.util.*;
    <u>abstract public</u> class Class1 {
    }after an 'Remove Unused Import java.util.*' operation (or 'Organize Imports', there’s no difference) applying (at a line gutter) code becomes as below:
    <u>public public</u> class Class1 {
    }Public twice.
    If the class is declared as 'public abstract' then all goes right.

    Well, here it goes,
    * This is java docs
    * @author Sérgio Gameiro
    * @since 12/04/2006
    package br.com.gameiro.jdev.extension;
    import javax.swing.JOptionPane;
    import oracle.ide.Addin;
    import java.io.*;
    public class TestingAddin implements Addin{
    public TestingAddin() {
    public void initialize() {
    JOptionPane.showMessageDialog(null, "Testing");
    Becomes:
    * This is java docs
    * @author Sérgio Gameiro
    * @since 12/04/2006
    package br.com.gameiro.jdev.extension;
    package br.com.gameiro.jdev.extension;
    import javax.swing.JOptionPane;
    import
    public class
    TestingAddin class TestingAddin implements Addin{
    public TestingAddin() {
    public void initialize() {
    JOptionPane.showMessageDialog(null, "Testing");
    Oh yeah, that's messy. I think it is something similar to what happens here:
    "Organize Imports" feature in Jdev10g will totally mess up my source code
    BUG: 5006753
    Javasocs' to blame. If you put Javadocs before the package, or between package and import declarations, this what's going to happen to you!
    Otherwise (Javadoc on top of the class declaration), no problem.
    null

  • Missing Thumbnails in Organizer Importing Function

    I recently upgraded my my operating system from Windows XP to Vista.  When I used the import function in Elements Organizer (with XP) I could preview the thumbnails and select the desired images on the camera or compact flash card.  Now that I have moved to Vista the thumbnail preview or selection is no longer visible or accessable. 
    I have been through the software options, search engines and this forum but have seen nothing about this problem.  I do sometimes have a perchance to miss the obvious and apologize if this is the case.  Any help is appreciated.
    OS Windows Vista 64 bit
    Photoshop elements 9
    8Gb RAM

      Possibly due to display or dpi settings in the Windows control panel being below 96 dpi or 100% especially if you have a short screen e.g. laptop or notebook.
    A work around is to import everything from the card into a folder on the hard drive. Then use File à Get Photos
    It’s then possible to select and deselect from the Organizer import dialog.
     

  • Is there a way to Bulk Organize Imports?

    I love the "Organize Imports" feature in 4.7. I find myself using it quite a bit after merging branches because it's a very quick way to fix up long imports lists that got messed up as a result of refactoring in different branches. However, it is tedious because I have to do it file by agonizing file. I would _really_ like the ability to do this as a bulk operation, either by right-clicking on a project, or by selecting multiple files. Any chance a bulk "Organize Imports" is in the works? If not, does anyone know of a workaround?
    Many thanks in advance.

    I hope Apple adds some much needed features to the mail app. I heard they added landscape mode, which will be much appreciated. I wonder why the home screen doesn't go to landscape mode too when the Touch is rotated, like the Storm? Doesn't it seem logical that the home screen should rotate? Anyone? If you agree, and have a spare minute, PLEASE send Apple a product enhancement request.
    http://www.apple.com/feedback/ipodtouch.html

  • I Have Elements13 and Apple Yosemite:  When I open the organizer, import and select folder it locks up.

    I am using PS Elements 13 with Apple Yosemite.   When I open the Organizer, import and select folder, it locks up.

    I Did what you said.  But when I click on Folders and try to open  a sub folder it still locks up. All of the media I have opened is not divided into folder. Is there any way to remove all of them and start over?   I have been using Bridge with PSE13 and it work great.  With Organizer I get missing files. My organizer PSE12 works ok on my laptop.

  • Can I invoke "Organize Imports" for whole project?

    On the features page on labs.adobe.com there is a mention that Organize Imports should work for "projects". Does this mean that I can invoke this function for a whole project or do I need to do it file by file? If it should work for a whole project, how to invoke it?
    Thanks,
    Borek

    "Organize Imports" isn't available at project level.
    It has to be invoked file by file, as it not just removes unused imports but adds any missing ones, resolves ambiguous references and consolidates the import statements
    Thanks,
    Guriya

  • Elements 10 Organizer Import Failures

    OK - I have 13,000 .jpg files to import on a mac from iPhoto
    After about 10,000 files I get Import Failure with nothing imported
    OK - I try to import directly from the files stored in my Aperture library
    Again after about 10,000 files I get Import Failure
    But now I have the name of the file that failed
    So I just import from the beginning to just before the bad .jpg
    Then I start importing from the next file to the end
    After 0 to a few hundred files I get import failure.
    So I just iport from the first good file to the last good file
    Then I start importing from the next file to the end
    After 0 to a few hundred files I get import failure.
    So I just iport from the first good file to the last good file
    Then I start importing from the next file to the end
    After 0 to a few hundred files I get import failure.
    So I just iport from the first good file to the last good file
    Then I start importing from the next file to the end
    After 0 to a few hundred files I get import failure.
    So I just iport from the first good file to the last good file
    Then I start importing from the next file to the end
    OK - after about 3 hours in Organizer hell I'm done.
    The interesting thing is the Editor can edit these files.
    So there are two bugs here.
    1.  The Organizer should be able to input a file the editor can edit and
    2.  The Organizer should just make a list of the files it can't import and not give up
    P.S.  Had the same problem with Elements 9

      If you are using iPhoto and Aperture do you really need Organizer?
    It’s possible to set up the Editor as the external app.
    http://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-iphoto-mac-os.html
     

  • Organizer Import Failure on all photos taken with LG Cellphone

    Organizer will not import jpgs taken with an LG Camera Phone. I see snippets on the web that others are having the same problem with their LG cell phone camera jpgs.
    Can someone from Adobe please advise and fix the bug.
    I found the issue mentioned about a dozen times on the web.
    Thanks

    You are not speaking to Adobe here. This is a user to user forum.
    If you want to get help, you should give more details.
    By the way, I had a LG Renoir and used it without any problem with the jpegs; of course there may have been problems with more recent phones. (I bought it for its 8 megs pictures, but soon forgot it because of its atrocious denoising).
    First, what is the problem ?
    - a non standard jpeg format ? In that case it's easy to put your pictures on the micro USB card and  load it into the organizer via a card reader. That will tell you if the jpeg format is ok since you will be able to open it not only in PSE but also on any other application or browser.
    - the unability for the organizer to recognize the LG as a card reader ? The unability for the LG to synchronize with your PC to transfer files ? I had to choose which mode to use. For the organizer to be able to download jpegs, I had to set the LG as a card reader according to the LG instructions.
    Which LG model ? Could you link to other complaints about this problem on the Web ?

  • Mediasource Organizer import crash at 1000 tra

    I'm using the very latest version of Mediasource Organizer (5.00.20), and have found that it crashes consistently before I reach 000 tracks in the PC Music Library with:?"Faulting application ctimprtu.exe, version 5.0.5.0, faulting module msvcrt.dll, version 7.0.2600.280, fault address 0x000a6d." It doesn't matter what the track is - importing any new track into the library reproduces the problem. I have 999 tracks in the library at the moment ?Has anyone else seen this? Is there a fix (apparently not, if I have the latest version from the Creative site...)??

    holeinone wrote:
    ?If msvcrt.dll were really that buggy, I suspect far more applications than Mediasource would be failing... By the way, the version of msvcrt.dll in \windows\system32 is 7.0.2600.280
    Do a web search for the error you are getting and you will see that a lot of other apps have problems with this exact same version of msvcrt.dll. Apologies for appearing to talk down to you in my reply but not many people in here have as much software knowledge as you so we have to give a reply that will be OK for all levels. PB

  • BUG: "Don't Import Suspected Duplicates" FAILS for two identical files (same name, same MD5)

    Using LR 4.4, I'm seeing duplicate files not detected when the files have the same name and identical content (same MD5).
    Adobe support takes me here, although I'd rather file a bug.
    I've isolated a small test case where I have a directory with a small number of images (taken at the same time with the same camera.)
    I can copy this directory to a different location, then try to import it and one of the files will not be detected as a dupe.
    I've tried re-reading the metadata for the existing library file.
    Files have the same name and same checksums.

    According to the Lightroom documentation
    Lightroom determines a photo is a duplicate of another file in the catalog if it has the same, original filename; the same Exif capture date and time; and the same file size
    Please confirm that your "duplicate" files meet this criterion

Maybe you are looking for