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

Similar Messages

  • 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

  • FB Beta 2 removing import statements

    I have a project that was started in FB Beta 1 (everything was working great) and updated to FB Beta 2 SDK 4.0.0.10988.  I have a frequent but inconsistent problem in which while working in a module I'll have import statements in my script removed.  The last instance two import statements for user created MXML components were removed, and the code I was modifying didn't have anything to do with these components.  Previously I had import statements for ConversionType and TextConverter removed, this time I put the import statements in right before writing code to use them.
    I still have problems with Flash Builder Beta 2 output folder issues this is a previous post that was unanswered.
    If it helps: using MAC OSX and FB Beta 2 standalone.

    The issue with comments being removed when organize imports is run is a known issue captured by a small set of bugs:
    https://bugs.adobe.com/jira/browse/FB-18479 Comments do not remain with currect import statements when performing 'organize imports'
    https://bugs.adobe.com/jira/browse/FB-11396 Any data in between imports are deleted when doing an "organize imports" operation
    https://bugs.adobe.com/jira/browse/FB-17160 Import inserted into wrong location when existing import is followed by a single line comment
    Essentially, what it boils down to, we follow the same behavior as the JDT with one glaring exception: Turn off organizing imports when auto importing from code hints:
    https://bugs.adobe.com/jira/browse/FB-23179 Change code hints auto import behavior so that imports are inserted in order, but unused imports should not be removed
    With the FB-23179 fix, your imports will only be removed when you explicitly organize imports. I hope this info helps.
    Jason San Jose
    Quality Engineer, Flash Builder

  • "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

  • Another iPhoto 6 bug

    Amusing but yet another iPhoto 6 bug (6.0.2). Boy, does this program need some work.
    I created a new library, set alias on so it loads from my iView MediaPro layout, and am busy importing. In the information tab on the bottom left, it tells me its busy importing 1595 photos with a total size of 15066192772 GB. I wish.
    iBook 14" 1.42   Mac OS X (10.4.3)   1.5GB

    Paul:
    Did it finish loading the iView files? If so check the size at the bottom. If it's still incorrect and extremely large try rebuilding the library, launch iPhoto with the Command+Option keys depressed, follow the instructions to rebuild the library, while selecting only the database option. That may clear up the problem.
    I didn't note the size when I was importing my iView collection but iPhoto does reports the correct size now.

  • 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

  • Authorization and moving employes to another organizational assignment

    Hello! I have a big problem with authorization.
    Lately some employes have been moved from one organizational assignment to another organizational assignment.
    After moving I prepared the user and the role for this user he will be able to read infotype records for employes in the organizational assignment where they were moved.
    And now I have big problem because this user can read data of employes in current organizational assignment and also  data of these people in old organizational assignment, thought I didn't give him authorization for this old organizational assignment.
    I checked view of table V_T582A and there in infotype 0001, 0007, 0008 in detailes the field: Access auth was checked, so I executed tests and this field was unchecked. But this test wasn't successfule.
    In table T77S0 I have the following settings for AUTSW:
    AUTSW     ADAYS            15
    AUTSW     APPRO     0
    AUTSW     NNNNN     0
    AUTSW     ORGIN     1
    AUTSW     ORGPD     0
    AUTSW     ORGXX     0
    AUTSW     PERNR     1
    AUTSW     VACAU
    I changed them but the tests also weren't successfule.
    Please, help me, where the error can be?. Now I don't know
    where I can look for the solving of this problem.
    I my company we have the system:
    46C
    SAPKE46CB0
    the latest note: LCP CE 74
    Thank you very much if anyone helps me.

    Hello Marta,
    yes, the behaviour is corret. The old one can not see the new data but the new one the old. It's like a personal file where the new manager has access to and the old only knows what was entered up to the end of his responsibility.
    This litle "picture" always helps me.
    Please go to:
    http://service.sap.com/erp-hcm
    On the left side click:
    Services for mySAP ERP HCM
    - Special Documentation
    In the document "Authorizations in mySAP HR (4.6C)" from page 70 chapter "4.4 Process of Time Logic" describes the behaviour in detail.
    Hope to help,
    Michael

  • 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

  • Another SQL Developer bug - End of file in comment

    I found another SQL Developer bug in version 3.0.0.4.
    If I try to compile some package from file (so I open file with package body in SQL Developer and assign it to some connection) with this kind of comment: /* comment */ behind end of package, I get this error
    I got Error(1250,28): PLS-00111: end-of-file in commentFunny is, that when the package is compiled directly from the database - it works.
    When I try to compile the package from file with this kind of comment --comment behind the end of package, it also works...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi, I think I finally got it. This looks like an ugly fat bug :)
    First, we are not using the .sql extensions. For package specification - we use .pks. For package body - we use .pkb.
    Create this script:
    CREATE OR REPLACE PACKAGE TEST_xxx AS
    PROCEDURE TEST_PROCEDURE;
    END TEST_xxx; /*0123456789*/Now save this as e.g. "TEST.pks" file. Open this file in SQL Developer and compile it. You will get the "Error(3,27): PLS-00111: end-of-file in comment".
    Now look at the result in the database -> Open the package specification from the database and you see this:
    create or replace
    PACKAGE TEST_xxx AS
    PROCEDURE TEST_PROCEDURE;
    END TEST_xxx; /*0123456789*The last slash is missing...
    Now go back to the file with the package specification and delete one letter from the comment. Compile it again... it works now.
    It looks like the length of this kind of comment is limited to 9 characters.
    The limitation is there only when:
    1) Compiling from file with different extension than .sql !!! If you rename the file to "TEST.sql", SQL Developer opens it as a script file and runs it as a script, so there is no problem with it.
    2) It has to be this kind of comment: /* */. One line comments are not limited.

  • FB3 Beta 2 crash on Intel Mac

    Hi,
    FB3 Beta 2 crashes for me on a new install, new Flex Project,
    new MXML Application when switching to design mode. I didn't have
    this problem with Beta 1.
    Thank you,
    Brian
    FB3 Beta 2 Standalone
    Darwin Kernel Version 8.10.1

    Hi,
    FB3 Beta 2 crashes for me on a new install, new Flex Project,
    new MXML Application when switching to design mode. I didn't have
    this problem with Beta 1.
    Thank you,
    Brian
    FB3 Beta 2 Standalone
    Darwin Kernel Version 8.10.1

  • Nwrfc 0.0.5 with important bug fix!

    I have just pushed version 0.0.5 of the new gem to rubygems.org (you can also access the latest repo at GitHub).
    0.0.5 introduces an important bug fix in Table#each. Previously only the first row would continuously be returned. Now you can actually treat a Table like an Enumerable!

    To quote Metalink Note 161818.1 (Oracle Server (RDBMS) Releases Support Status Summary)
    "Terminology Used in this Article
    Patch Set
    *Patch sets are cumulative. For example, 10.1.0.4 includes all the fixes in 10.1.0.3 as well as new fixes for 10.1.0.4.*      "

  • 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.

Maybe you are looking for

  • AdHoc Query tool

    Hi Guru, How can I make the infotype codes visible at the Field group/fields at the left hand side of the Ad Hoc Query like the following screen shot? Regards

  • I cannot Tether the Nikon D750 in Lightroom 5.7

    I have tried to tether the D750 in Lightroom and get no camera found. I am on Windows 7.

  • What's with the "themes"?  I don't want any of those "themes"!

    if i've got just one film, i'd like it to open once the disk is inserted. if there is more than one film, i'd be happy with the titles on a black page. do i have to use the "themes" offered by idvd?

  • Adobe flex on pdf forms

    Hi I want to implement a floating menu on the pdf forms developed using livecycle. As I have soem buttons at the end of the form(Which consists of  10 pages). Instead of user going all the way downa nd clcik any of the button I want to implement a fl

  • No HDR pro option in drop down tools on bridge cs6

    There is not option to open in HDR pro or Photoshop in the tools drop down menu.   I reinstalled bridge, still no luck.  Using the same software disk on laptop where it works fine