Foo extends ListBase bug !!! Serious !!!

hi, listbase changed in sdk build 19786,
19786 + post like not released 20135 which is included in the prerelease flashbuilder
override protected function partAdded(partName:String, instance:Object):void
        super.partAdded(partName, instance);
        if (instance == dataGroup)
            // Not your typical delegation, see 'set useVirtualLayout'
            if (_useVirtualLayout && dataGroup.layout && dataGroup.layout.virtualLayoutSupported)
                dataGroup.layout.useVirtualLayout = true;
            dataGroup.addEventListener(
                RendererExistenceEvent.RENDERER_ADD, dataGroup_rendererAddHandler);
            dataGroup.addEventListener(
                RendererExistenceEvent.RENDERER_REMOVE, dataGroup_rendererRemoveHandler);
so, on  RendererExistenceEvent.RENDERER_ADD and REMOVE the handler functions are called.
Previously to that version eg. in
there is no internal handling when a item is added to the datagroup.
pre 19786
override protected function partAdded(partName:String, instance:Object):void
        super.partAdded(partName, instance);
        if (instance == dataGroup)
            // Not your typical delegation, see 'set useVirtualLayout'
            if (_useVirtualLayout && dataGroup.layout)
                dataGroup.layout.useVirtualLayout = true;
Some libs exists eg. the expander Toolkit or a Flex 4 Tabbar http://examples.flashdan.net/blog/posts/Flex%204%20TabBar/srcview/inde x.html
that  rely on the RendererExistenceEvent.RENDERER_ADD,  RendererExistenceEvent.RENDERER_REMOVE Event to trigger a different  behaviour.
In the above tabbar CustomTabBar Class which extends TabBar extends TabbarBase extends ListBase;  the following partAdded method is included:
It runs greate in pre versions of sdk 19786 but breaks completly in 19786!!!
Custom tabbar part added:
protected override function partAdded(partName:String, instance:Object):void {
            super.partAdded(partName, instance);
            if(instance == dataGroup){
                dataGroup.addEventListener(RendererExistenceEvent.RENDERER_ADD, dataGroup_rendererAddHandler);
                dataGroup.addEventListener(RendererExistenceEvent.RENDERER_REMOVE, dataGroup_rendererRemoveHandler);
                dataGroup.addEventListener(CustomTabBarCloseEvent.CLOSE_TAB, closeHandler);

Could you just remove these lines from your partAdded?
dataGroup.addEventListener(RendererExistenceEvent.RENDERER_ADD, dataGroup_rendererAddHandler);
dataGroup.addEventListener(RendererExistenceEvent.RENDERER_REMOVE, dataGroup_rendererRemoveHandler);

Similar Messages

  • CustomList extends ListBase bug !!! Serious !!!

    hi, listbase changed in sdk build 19786,
    19786 + post like not released 20135 which is included in the prerelease flashbuilder
    override protected function partAdded(partName:String, instance:Object):void
            super.partAdded(partName, instance);
            if (instance == dataGroup)
                // Not your typical delegation, see 'set useVirtualLayout'
                if (_useVirtualLayout && dataGroup.layout && dataGroup.layout.virtualLayoutSupported)
                    dataGroup.layout.useVirtualLayout = true;
                dataGroup.addEventListener(
                    RendererExistenceEvent.RENDERER_ADD, dataGroup_rendererAddHandler);
                dataGroup.addEventListener(
                    RendererExistenceEvent.RENDERER_REMOVE, dataGroup_rendererRemoveHandler);
    so, on  RendererExistenceEvent.RENDERER_ADD and REMOVE the handler functions are called.
    Previously to that version eg. in
    there is no internal handling when a item is added to the datagroup.
    pre 19786
    override protected function partAdded(partName:String, instance:Object):void
            super.partAdded(partName, instance);
            if (instance == dataGroup)
                // Not your typical delegation, see 'set useVirtualLayout'
                if (_useVirtualLayout && dataGroup.layout)
                    dataGroup.layout.useVirtualLayout = true;
    Some libs exists eg. the expander Toolkit or a Flex 4 Tabbar http://examples.flashdan.net/blog/posts/Flex%204%20TabBar/srcview/inde x.html
    that  rely on the RendererExistenceEvent.RENDERER_ADD,  RendererExistenceEvent.RENDERER_REMOVE Event to trigger a different  behaviour.
    In the above tabbar CustomTabBar Class which extends TabBar extends TabbarBase extends ListBase;  the following partAdded method is included:
    It runs greate in pre versions of sdk 19786 but breaks completly in 19786!!!
    Custom tabbar part added:
    protected override function partAdded(partName:String, instance:Object):void {
                super.partAdded(partName, instance);
                if(instance == dataGroup){
                    dataGroup.addEventListener(RendererExistenceEvent.RENDERER_ADD, dataGroup_rendererAddHandler);
                    dataGroup.addEventListener(RendererExistenceEvent.RENDERER_REMOVE, dataGroup_rendererRemoveHandler);
                    dataGroup.addEventListener(CustomTabBarCloseEvent.CLOSE_TAB, closeHandler);

    Could you just remove these lines from your partAdded?
    dataGroup.addEventListener(RendererExistenceEvent.RENDERER_ADD, dataGroup_rendererAddHandler);
    dataGroup.addEventListener(RendererExistenceEvent.RENDERER_REMOVE, dataGroup_rendererRemoveHandler);

  • Extending JPanel bug?

    Hi,
    I have built a custom panel by extending JPanel. I have then set the layout of my custom panel to BorderLayout, and added 2 more panels: one in the center, one in the west. The one on the west has a button on it, the one in the center is empty, so that sub classes can add their own widgets to it. Whenever I create a new instance of either this panel or one of the sub classes I have created, and add it to another JPanel (with layout set to null), it only displays the custom panel and the background and border of it: it does not display the other panels that I have added to it. However when you resize the frame which holds the GUI (by clicking and dragging it at the edges), it displays the custom panel correctly.
    I am calling repaint method after adding the custom panel to the other one (the one with layout set to null). Is this display a bug in Java? If so, is their a way round it? Or is my code wrong?
    Thanks in advance for any advice.
    silverwatch.

    Yes layouting is often a headache.
    In general one adds components and calls pack in the JFrame to layout things. It seems you must call validate (invalidate?) before your repaint. A repaint(ms_delay) might be in order, if you are "in the message loop."

  • Photoshop CS6 Extended NAG bug

    Why is my PAID for and LICENCED version of PS CS6 STILL throwing up that blasted PS Extended trial screen? I have read about this before, and I thought that it had been fixed. I OWN my PS CS6, I PAID for it. I have NEVER wanted or downloaded the Extended vesion. Why am I getting pestered about this? I DON'T WANT IT. I have re-registered my LEGAL copy of CS6 numerous times now. My version is up to day..Ver 13.0.1, I am sick of this now. I have PAID for this programme..it is mine, and I don't want Extended version.

    Hi Jeff...yes, that is the same error screen.
    Best regards
    David Clifford
    Information contained in this transmission is confidential and is intended
    only
    for the named recipient(s). The review, re-transmission, dissemination or
    other
    use of this information by persons or entities other than the intended
    recipient(s) is not authorised. If you have received this transmission in
    error, please contact the sender and delete the message from your system.
    Please note that the sender accepts no responsibility for viruses that may
    be
    contained in this transmission and it is the responsibility of the recipient
    to scan any message and attachments (if any) for viruses.

  • BUG: serious date error

    I have a E71-1
    The date does not advance from Saturday to Sunday.
    Every time I turn the phone on when it is a Sunday, the phone will incorrectly display Saturday. For some reason the date does not roll-over.
    This has happened the last 3 weekends (I got my phone 3 weeks ago).

    22-Sep-2008 11:12 PM
    isambardmews wrote:
    OK possible causes:
    - I have the 'Abstract' theme installed
    - I have an Analog clock instead of digital
    - I am in the UK
    - I used GPS car navigation on the day the date error happens
    Any one have the same or different fact pattern to the above?
    Also, is there anyway to get this bug reported to an official Nokia representative?
    I'm in Italy (phone is no-brand and language is set to english), digital clock, I'm using one of the default themes (Light) and I don't use gps but I noticed that my E66 has the same date issue only when not plugged to the AC adapter. Maybe it has something to do with the phone not being truly off when charging...
    But it's extremely annoying!! I have to set a backup alarm just in case I forget to plug the AC by night.

  • Minor bug alert re: MigrationClassMappings.properties file entry

    The MigrationClassMappings.properties contains entries that are
    intended to provide the mapping of ND classes to JATO classes, and ND
    project specific classes to migration specific classes.
    Currently there is an improper entry.
    Project=ApplicationServletBase
    This entry should be changed to
    Project=__appName__ServletBase
    The implications of this "bug" only surfaced if your ND project class
    had derived from a custom superclass (i.e. something other than
    CSpProject) AND you had not augmented the
    MigrationClassMappings.properties to add an entry for that custom
    class.
    If both of those circumstances applied to your translation effort
    then the net effect of the "bug" entry would be that your module
    specific servlet would be improperly derived from the JATO
    ApplicationServletBase, when in fact it should have been derived from
    the application specific servlet base.
    For example if ND project Foo extended Bar
    the bug would have resulted in the generation of code where
    FooServlet extends ApplicationServletBase
    when, in fact, it should be
    FooServlet extends FooApplicationServletBase
    If this is not clear, please respond.
    The next release of the iMT will include this fix.
    Current users can easily adjust the MigrationClassMappings.properties
    file manually.

    Hi Everyone:
               I have done some further testing.  We are using a re-usable Business Components .jar file to access our entities.  We import the .jar file into the project and create the ViewObjects and ViewLinks from that .jar file.
                It APPEARS that a test case using the HRSchema and using the Entities & Associates generates the constraint error messages, but when I use the .jar file of re-usable business components imported into the project, those constraint error messages are not created in the ApplicationResources_en.properties file.  I have created two testcases as well as the re-usable .jar file that I can send to you to show what I mean. 
                This behaviour seems to have shown up in 11.1.2 as there was no problem before this.
                 Please let me know where you'd like me to upload the testcases.
                 Thank you.
    Mary
    UofW

  • NoClassDefFoundError extending class in separate JAR

    I have a class Foo which gets called from my servlet (extends HttpServlet) class. Both Foo and the servlet class are located in WEB-INF/classes and are deployed as part of the war file. Class Foo extends class Bar, which is a different .jar file located in the /WEB-INF/lib directory of the webapp. When I attempt to create an instance of Foo, I get the following exception:
    java.lang.NoClassDefFoundError: /general/client/common/beans/Bar
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1267)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at server.DBServlet.createFoo(DBServlet.java:236)
         at server.DBServlet.processInput(DBServlet.java:333)
         at server.DBServlet.doGet(DBServlet.java:154)
         at server.DBServlet.doPost(DBServlet.java:205)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:419)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    I'm running this on Windows, and found if I added the classpath the the jar file where the Bar class is located, that it worked fine. But my expectation is that the jar file should have been found because it is in the /WEB-INF/lib dir. There is a line the Tomcat docs that says:
    "Last, any JAR containing servlet API classes will be ignored by the classloader. All other class loaders in Tomcat 5 follow the usual delegation pattern."
    So maybe I need to do something special to load the Bar class, or there's something strange about the way the classes and jars are being loaded that I don't fully understand. I was able to instantiate the Bar class directly from w/in my servlet class, I just can't create an instance of the Foo class that is in /WEB-INF/classes along with the servlet class. So I'm not convinced that the Bar class or associated jar file isn't being loaded.
    I don't want to have to set the classpath explicitly, so I'm looking for advice on why I'm getting this exception and how best to dynamically load the classes I need.
    Thanks.
    ab.

    Thanks for hanging in there so far. Here's the specifics if you want to try to re-create this.
    I have a webapp, which contains the class DBServlet:
    package com.hm.dhca.server;
    public class DBServlet extends HttpServlet
    // Stuff
         public void processInput()
              Foo foo = new Foo();
    The webapp also contains the class Foo:
    package com.hm.dhca.common;
    import com.general.client.common.beans.Bar;
    public class Foo extends Bar
         public Foo()
              super();
              System.out.println("Foo");
    Both of the classes are located in webapps\DHCA\WEB-INF\classes...
    The Bar class is in a separate jar called HMJCommon.jar in the webapps\DHCA\WEB-INF\lib dir.
    Class Bar looks like this:
    package com.general.client.common.beans;
    public class Bar
         public Bar()
              System.out.println("Bar");
    DBServlet creates an instance of Foo as:      
    Foo foo = new Foo();
    Which throws the Exception:
    java.lang.NoClassDefFoundError: com/general/client/common/beans/Bar
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1267)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at com.hm.dhca.server.DBServlet.processInput(DBServlet.java:236)
         at com.hm.dhca.server.DBServlet.doGet(DBServlet.java:154)
         at com.hm.dhca.server.DBServlet.doPost(DBServlet.java:205)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:419)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    Clues:
    1. All three classes exist in the locations specified above - I have checked this manually.
    2. Within DBServlet, I can create an instance of Bar. But I cannot create an instance of Foo without the exception.
    3. If I move the Foo class from package com.hm.dhca.common to package com.hm.dhca.server (same package as DBSerlvet), everything works fine.
    4. If I modify Tomcat's classpath to include the HMJCommon.jar, it works fine (as previously discussed).
    Theory:
    I have a vague theory that what is happening is that two different webappclassloaders are loading the Foo and Bar classes, for whatever reason. As a result, they can't see each other, because neither is up the hierarchy tree from the other.
    This does not explain how I can instantiate Bar from DBServlet, but not Foo.
    Hope this helps. I think I've corrected previous mistake w/ removing too much from package naming. I'm resorting to the workaround in clue #3 for the moment. But it's not the correct solution, and it's showing that I don't really understand what's going on here.

  • Spark Image "bug"?

    Hello. I've encountered a problem with spark:Image class. I need to get it as a BitmapData.
    There's a BitmapData.draw(...) method for this. It works well with other components and allows to create a Bitmap representation of them.
    Actually, I'm using M2D engine and there such technique is used to accelerate DisplayObjects.
    I need to capture my image when it has finished loading content.
    So, I add an eventListener for COMPLETE event. But, what I get captured is just a white rectangle!
    I think, the problem is that the image doesn't finish its rendering yet, so it has content just loaded into memory by the time Event.COMPLETE is fired.
    So, I've tried to use FlexEvent.UPDATE_COMPLETE instead. It seems, it's fired three times when image.source changes.
    I get three BitmapData objects and the last one appears to be correct.
    Of cource, it can be thought of as a solution, but I don't like it It seems to be buggy.
    Maybe there is a "right" way to capture an image?
    mx:Image works right, by the way. But I want spark

    Is this similar to what you are working with? I pass in an invisible BorderContainer already added to the displayList. The bitmapData in my image_completeHandler seems to work as expected. Also, my _image only fires 2 "updateComplete" events (which is irrelevant because you shouldnt have to listen for it anyway).
    package
    import flash.display.BitmapData;
    import flash.events.Event;
    import mx.core.UIComponent;
    import mx.events.FlexEvent;
    import spark.components.BorderContainer;
    import spark.components.Image;
    public class Foo extends UIComponent
         //  Constructor
         public function Foo( container:BorderContainer )
              super();
              _image = new Image();
              _image.addEventListener(Event.COMPLETE, image_completeHandler);
              _image.addEventListener(FlexEvent.UPDATE_COMPLETE, image_updateCompleteHandler);
              container.addElement(_image);
              _image.source = "assets/hills.jpg";
         //  Variables
         private var _image:Image;
         //  Methods private
         private function image_completeHandler( event:Event ):void
              var bmpData:BitmapData = _image.bitmapData;
              trace(bmpData.width, bmpData.height);
         private function image_updateCompleteHandler( event:FlexEvent ):void
              trace(event.type);

  • Does Foo inherit from Bar?

    I've always been perplexed by this. Does Foo extend Bar, or is it the wayother dnuora?
    I mean Foo is-a Bar doesn't sound quit right to me, but it's still better than Bar is-a Foo. And where do metasyntactic variables get off inheriting from each anyway?
    I mean if every OO textbook is going a perpetuate this nonsensical goop I hold that there should be a pier reviewed industry standard, much like McPythons Olympic Standard Mayonnaise. Detain the GOF in a jacuzzi until Sun and Microsoft can agree to form IEEE FOO754, or they really do turn into prunes, whichever comes first, I'm easy.
    And what is the etymology of this term foobar anyway? Is it a near descendant from the Australian colloquialism FUBAR meaning F'ed Up Beyond All Recognition, which is commonly believed to be coined by a pair of unemployed lumberjacks on their way down under on the First Fleet, who where both subsequently flogged, keel halled, and prematurely disembarked for daring to impinge on Little Captian Blighs perfect unemployment figures.
    So where did this foo come into the picture, is it a cryptic reference to the mythical FooFoo bird? Apparently, the only species capable of disappearing up it's own fundamental orifice, Politicians excepted obviously.
    Or maybe foobar started life as a simple misspelling of goobar, a story about two queers and cake of soap. My apologies to those who into that, but it had to be said.
    Of maybe foo bar was dreamed up by the same porkchop who came up with little endianism, whilst on his way to market to by 11 eggs
    We know what bar's are. They come in chocolate, non-smoking, and extra turgid flavours.
    So gentlemen (no self respecting lady would have read this far), what do you think? Does Foo extend Bar, or is it the wayother dnuora?
    Signed, He who isn't too scared to tackle the really meaty issues in OO design.
    ;-) keith.

    Hey Keith
    You really expect such a profound question to be answered for free?
    http://developers.sun.com/forums/dukestars/index.jsp
    Rewarding Duke Stars for your post can motivate forum members to help you find solutions to your problems.
    http://developers.sun.com/forums/dukestars/faq.jsp
    Offering Duke Stars to other forum members incents them to answer your questions.
    And no, I don't have a ready answer, but maybe I can point your nose in the right direction...
    Does Foo extend Bar, or is it the wayother dnuora?
    Read the javadocs.
    With malice towards none, Darryl

  • Ignoring ejbdoclet tags

    I'm a little new to javadoc so forgive me if this is stupid.
    We have custom tags in our code that we get ejbdoclet to use to generate out deployment descriptors. One example of that would be:
    @ejb:transaction type="Supported"
    When I run javadoc it warns me that it doesn't know about this tag. I have tried all manner of variations of the -tag option but they don't work.
    It does work for custom tags that don't have the form @a:b. For example if I have a custom tag of @ejb param="value" and specify
    javadoc -tag ejb:X:"ejb stuff" then everything is fine. As soon as I have a custom tag of @ejb:transaction param="value" it does not work.
    I have tried
    javadoc -tag ejb:X:"ejb stuff" ...
    javadoc -tag ejb:transaction:X:"ejb stuff" ...
    javadoc -tag "ejb:transaction":X:"ejb stuff" ...
    javadoc -tag 'ejb:transaction':X:"ejb stuff" ...
    Can anyone tell me how to get around this?
    Thanks, Andrew
    PS: As an aside in my example that works, javadoc -tag ejb:X does not work, even though the documentation says it should. I have to add the header...

    Hi,
    Yes, it is a bug that the doclet does not support custom tags with "-" characters in the name properly. The only workaround is to write your own taglet. This should work:
    import com.sun.tools.doclets.standard.tags.SimpleTaglet;
    public class Foo extends SimpleTaglet {
    public Foo() {
    super("ejb.create-method", null, "x");
    When you run javadoc, use:
    -taglet <qualified name of your taglet> -tagletpath <path to your taglet>
    That's a lot of work just to ignore one tag, but this is a workaround for a bug that will probably be fixed soon.
    -Jamie

  • Valid AS3 will crash iPhone app on startup

    Steps to reproduce:
    1. Add this code to a Flex Mobile Project:
            public class Foo extends EventDispatcher {
                 public override function addEventListener(type:String,  listener:Function, useCapture:Boolean=false, priority:int=0,  useWeakReference:Boolean=false):void {
                     var thisFunc:Function= arguments.callee;
                     super.addEventListener(type, listener, useCapture, priority, useWeakReference);
    2. Refer to the class Foo somewhere in the application, for example the creation complete handler of MainHomeView.mxml:
            protected function view1_creationCompleteHandler(event:FlexEvent):void {
                 var foo:Foo;
    3. Debug this on an iOS device using the 'Standard' packaging method.  Also, you could export a Release build for iOS.
    When the iOS app launches, it will crash before running any code  written by the programmer-- just the *presence* of this code in the app  causes it to crash (!).  I'm attaching a crash log.
    I've filed a bug for this here: https://bugs.adobe.com/jira/browse/FB-32130

    Hi,
    im using Flash Builder 4.6  in a mobile project.
    Hhis cause a crash, can't see  nothing than the splash screen:
    public static function getInstance():ApplicationData {
                if (!ApplicationData.instance){
                    ApplicationData.instance = new ApplicationData(arguments.callee);
                return ApplicationData.instance;
    private var applicationData:ApplicationData = ApplicationData.getInstance();
    Is there any solution?
    Thanks

  • Javafx adding function in customnode

    I am creating a custom node , which has a function associated with onmouseclick, this function is defined in same class
    there is main.fx script which uses this function I suppose have to override this action to include my desired result
    but this give an error , here it is
    init:
    deps-jar:
    C:\Users\ramakant\Desktop\JavaGame\Imagix\nbtalkfx\src\nbtalkfx\Main.fx:81: Note: The following error is an internal error in the OpenJFX compiler ({0}).
    Please file a bug at the Openjfx-compiler issues home (https://openjfx-compiler.dev.java.net/Issues)  after checking for duplicates. Include the following diagnostic in your report and, if possible, the source code which triggered this problem.  Thank you.
    {1}
        ButtonFX{
    An exception has occurred in the OpenJavafx compiler (1.1.1). Please file a bug at the Openjfx-compiler issues home (https://openjfx-compiler.dev.java.net/Issues)  after checking for duplicates. Include the following diagnostic in your report and, if possible, the source code which triggered this problem.  Thank you.
    com.sun.tools.javac.code.Symbol$CompletionFailure: class file for com.sun.scenario.scenegraph.fx.FXNodeListener not found
    ERROR: javafxc execution failed, exit code: 4
    C:\Users\ramakant\Desktop\JavaGame\Imagix\nbtalkfx\nbproject\build-impl.xml:143: exec returned: -1
    BUILD FAILED (total time: 1 second)Edited by: 76jsr on May 7, 2009 9:00 PM

    You've posted no code, so let me conjecture...
    Foo.fx
    public class Foo extends CustomNode {
        public function bar() : Void { println("Foo.bar"); }
        override function create() : Node {
            Rectangle {
                onMouseClicked: function(e) : Void {
                    bar();
    Stage {
        title : "MyApp"
        scene: Scene {
            width: 200
            height: 200
            content: [
                Foo {
                    override function bar() { println("Main.bar"); }
    }The compiler exception comes from the override function bar() in the Foo object literal. To workaround this, you just need to extend your custom node:
    public class Baz extends Foo {
        override function bar() { println("Baz.bar"); }
    }Then use Baz for your content.
    Or, better yet,
    Declare your function as a variable, then it can be easily initialized. For example, you can declare Foo like so:
    public class Foo extends CustomNode {
        public var bar: function() : Void = impl_bar;
        function impl_bar() : Void { println("Foo.bar"); }
        override function create() : Node {
            Rectangle {
                onMouseClicked: function(e) : Void {
                    if ( bar != null ) bar();
    }And then your main would look like this:
    Stage {
        title : "MyApp"
        scene: Scene {
            width: 200
            height: 200
            content: [
                Foo {
                    bar: function():Void { println("Main.bar"); }
    }

  • Parameter SELF

    I am not sure if this is the right forum but...
    I am working with the Power Demand Cartridge example for the Oracle 8i Data Cartridge Developer's Guide.
    URL: http://technet.oracle.com/doc/oracle8i_816/appdev.816/a76937/dci11ex4.htm
    and the example creates a static function in the object type specification with the SELF parameter. but Oracle complains about using and instance of itself when instancing the object's member function.
    More info:
    Parameter SELF
    MEMBER methods accept a built-in parameter named SELF, which is an instance of the object type. Whether declared implicitly or explicitly, it is always the first parameter passed to a MEMBER method. However, STATIC methods cannot accept or reference SELF.
    see below for an example from the data cartridge guide:
    CREATE OR REPLACE TYPE power_idxtype_im AS OBJECT
    STATIC FUNCTION ODCIIndexStart
    self IN OUT power_idxtype_im,
    ia sys.ODCIIndexInfo,
    op sys.ODCIPredInfo,
    qi sys.ODCIQueryInfo,
    strt NUMBER,
    stop NUMBER,
    cmppos NUMBER,
    cmpval NUMBER
    RETURN NUMBER
    is this a bug in the documentation?
    what is the correct syntax?
    because I am getting:
    SELECT P.Region, P.Sample.TotGridDemand ,P.Sample.MaxCellDemand,P.Sample.MinCellDemand
    ERROR at line 1:
    ORA-29902: error in executing ODCIIndexStart() routine
    Any help is greatly appreciated!!
    null

    This is a common question. The problem is a flawed assumption about the declaration of ITest.
    The assumption is that:
    interface ITest<T extends ITest<T>>means that any implementation of ITest must be parameterized by itself. This is not the case.
    Consider the following
    public class Test<T extends Test<T>> implements ITest<T> {
        public static void main(String[] args){
            Bar b = new Foo().foo();
        public T foo() {
            @SuppressWarnings("unchecked")
            T result = (T) this;
            return result;
    class Foo extends Test<Bar> {
    class Bar extends Test<Bar>{
    interface ITest<T extends ITest<T>> {
    }Compiles and then fails with a classcastexception.
    Look again at ITest. The generic declaration requires that implementations are parameterized by self-parameterized instances of Test. That's different than saying the implementation itself is self-parameterized. The distinction is subtle but in the end you cannot declare classes that force sublcasses to be self-parameterized.
    You can, however, declare methods that force their arguments to be self-parameterized.

  • [SOLVED]Xorg 1.10.902 upgrade - doesnt handle XI2 SD buttons...

    Hey everyone,
    I just wanted to let everyone know that the latest Xserver update from yesterday, is a bad one!
    Initially, you may not notice any problems. (which is probably how it made it through testing). However, anyone using any software that includes gestures, middle-clicks/right-clicks (with dragging) will probably notice this. and it's a big problem depending on what software you need to be able to use.
    I had originally posted about Easystroke being broken (found in AUR, gesture recognition software). as this is how i noticed the problem. That discussion was moved to AUR forum, but it's not an AUR problem. It is a problem in the "EXTRA" repo, and thus a problem for anybody who may have, or will upgrade yesterday/today!! 
    In general desktop usage, you may not notice the problem.  Basically, mouse clicks/dragging do not work properly when using Easystroke, Opera, Chrome, Maya2011...and a bunch of other applications, i would assume. it doesn't seem to affect the First mouse button (or in my case the tip of my Wacom Stylus).
    It is really noticeable in any applications that require "clicking/dragging"  with second/third mouse buttons held down.  Opera's navigation gestures do not work (hold down right-click and mouse your mouse) - usually you would get a big-black button on the screen, not anymore, it disappears instantly... in Easystroke your clicks will get held, and easystroke will not register a single input/gesture. In Maya2011, i am screwed until this is fixed.  
    you will be able to use your desktop just fine, but be aware xserver 1.10.902 should have never left testing! ...and you might want to wait to upgrade it until this problem ahs been fixed.
    The bug is upstream and apparently has been reported (upstream) by the people at Launchpad;
    https://bugs.launchpad.net/ubuntu/+sour … bug/757972
    It's not an Arch specific bug, so i didn't file a bug report. i just wanted to let everyone know, as it isn't obvious if your not using certain types of software and combinations of whatever type of input (mouse/tablet) you are using....
    jordan
    Last edited by triplesquarednine (2011-05-05 06:41:48)

    ejmarkow wrote:
    @triplesquarednine:  I've been having Xorg issues with my synaptics touchpad and cursor movement for a while now. The solution for me has been to constantly downgrade back to the latest working Xorg packages. Please see the following thread:
    Unusual Buggy 'Tabs' Behavior in Firefox & Pidgin Since Xorg Upgrade
    Yes, I've read that thread. I don't plan on downgrading.  I can deal until it is fixed.  it doesn't actually affect me that much, and
    I've been using MacOSX instead, for most of my work. Which is exactly why i still have OSX running, because it is rock solid and never gives me problems, ever   thus, it is a good fallback. (and most of the software i use in Linux, is also installed in OSX)
    Hopefully, this is resolved soon, it's been a couple of days ~ and i hope upstream is taking this bug seriously, as it is a really stupid bug, that could have easily been avoided - had the code been tested properly, before pushing it out the door.
    All that someone had to do, was try to do a mouse-grab, and they would have noticed... strange.
    I also don't get why it hasn't been pulled from the extra-repo?!?!?!??  clearly, it is a broken package, and should not be distributed, or be available as an update in the extra repo at all ~ this just seems stupid to me, someone has really dropped the ball here.
    jordan

  • Distribute to layers crashing flash 50% of the time.

    using the distribute to layers option constantly crashes me! I can use it ONCE after a restart of flash and after that it's a gamble wether it will crash or not...though more often than not it does.
    Anyone else having this issue? Any solutions or ways to avoid this? It's a huge pain to deal with this.

    Yes, it's unbelieveable...i'm getting sick of Adobe.. live up to your effing name, and start fixing some bugs. seriously.

Maybe you are looking for

  • Flex builder 3.0.1 check sum

    Today I download flex builder 3.0.1 (FB3_win.exe windows version standalone ), when use md5sum check the file, It not same as the adobe's page (Windows: 5685090ac5f2a514075e7a7bd7ba1eb0), my checksum is (963d2a6fee8f9fc3fd496d1e69de093a FB3_win.exe),

  • Authentication with username/password *OR* certificates?

    Hi folks, we have to authenticate users either via username/password combo or via certificate. Of course, by using SSL in both cases. Is this possible with WLS 6.0? Since I've read that I have to configure WLS explicitly to support client certificate

  • MR51 - Accounting & Material Doc

    Dear All I want to enhancement of Mr51 for MIIGO & MIRO doc no correspondance with Accounting doc. Please advise. WBR Avijit

  • Javax.naming.AuthenticationException

    Hi : I am getting the following exception when I am trying to lookup a MBeanHome java.lang.IllegalArgumentException: Invalid user name or password, javax.naming.AuthenticationException [Root exception is java.lang.SecurityException: attempting to add

  • Album category

    Somehow, my "albums" column in itunes has permanently become "album by artist" and nothing I do can change it back to the "albums" column. I click on "albums" and simply turns into "album by artist." This is incredibly inconvenient - I'm gonna have t