Inner interface bug ???

Have I just discovered a bug in java ?
The following actually give error stating:
qualified new of static class
By right, it should be compile and working but it is not ...
can someone give comment ?? thank
public class InnerInterfaceTest
     interface InnerInterface
          public void task();
     public static void main(String[] args)
          InnerInterfaceTest t = new InnerInterfaceTest();
          InnerInterfaceTest.InnerInterface inter = t.new InnerInterface()
               public void task()
                    System.out.println("This not working !!!");
}

well, it may have something to do with the line
InnerInterfaceTest.InnerInterface inter = t.new InnerInterface()what's with the t.new InnerInterface()? is that a typo? btw, please use the tags!                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • JAXB anonymous complex types and inner interfaces

    When JAXB generates interfaces/classes for a schema with nested anonymous complex types, it nests the resultant interfaces/classes. Is there any way to force JAXB to put these nested interfaces/classes at the top level of the package instead?
    Note that if I specify a <class> binding, it changes the name of the inner interface/class, but doesn't change the fact that it's nested. It is my understanding that in JAXB Beta specifying a <class> binding for an anonymous complexType would in fact push it to the top level. Was this a bug, or is it a feature missing from 1.0, or am I misinformed about JAXB Beta?
    I realize that scope-wise it makes sense to generate nested anonymous complex types as inner classes, however it leads to highly unreadable code when dealing with deeply nested structures. I'm hoping someone knows of a way to workaround this issue without simply redefining the anonymous complex types as named complex types.
    Thanks,
    -Greg Merrill

    According to sec 4.4 "By default if xml schema component for which java content interface is to be generated is scoped within a complex type then the java content interface should appear nested within the content interface representing the complex type. ".
    So I doubt that worked with beta and you may have to represent this anonymous complex type as a named complex type to avoid the nesting.
    Regards,
    Bhakti

  • Excel 2013 BeforeRightClick Event fails on Windows 8.1 Tablet (it's an Excel 2013 tablet touch screen interface bug)

    I have developed customized table context menus in an Excel 2013 workbook on my Laptop. They work just fine on my laptop and my work desktop. But when I try to run them on my tablet PC the Worksheet_BeforeRightClick event in Excel 2013 never fires. Other
    worksheet events appear to work okay. I have fully reinstalled Office 2013 Pro and that does not make any difference.
    I have read other comments regarding this same problem going back to 2013, but have never seen Microsoft respond to this issue. Nor have I been able to find a resolution. Has anyone else run into this and found a solution?
    Additional Discoveries: Testing on my tablet shows that adding one custom CommandBarButton to either the top or the bottom of the default "List Range Popup" context menu causes the Worksheet_BeforeRightClick event to fail.  The basic context
    menu commands still show up, but the default dropdown button for additional context menu commands disappears. The event is perhaps firing, but any customized code for the context menu is not being handled properly by Excel. This does appear to be a bug and
    not a question of coding error. Perhaps someone else with a tablet PC running WIndows 8.1 could test this.
    Based on comments
    here this bug was introduced in Excel 2013 because others find the problem does not exist when using Excel 2010 on a tablet PC. Note that all the commenters on the linked thread that are experiencing this problem are using tablet PCs.
    Update 3-13-15: I stand corrected. The Worksheet_BeforeRightClick does work on Excel 2013 Windows 8.1 tablets. I happen to own an Asus VivoTab Note 8, which comes with a Wacom stylus. If I use the Wacom sylus to right click on an Excel 2013 worksheet cell,
    the Worksheet_BeforeRightClick event fires and modified context menu code runs just fine. But the code will not run if one uses their finger to right click a worksheet cell. This explains why this problem only shows up on tablet PCs. So the "bug"
    introduced in Excel 2013 is a general user touch screen interface bug and not an Excel events programming bug.
    Update 3-21-15: Switched to a  Toshiba Protege laptop with touch screen. Same issue with finger touch screen interface on the Toshiba touch screen as with the Asus VivoTab touch screen.
    Laptop: Toshiba Protege (with touch screen), Windows 8.1 64bit and MSOffice 2013 Pro 32bit
    Tablet: Asus VivoTab Note 8, Windows 8.1 32bit and MSOffice 2013 Pro 32 bit
    Desktop: Generic, Windows 7 64bit and MSOffice 2013 Pro 64bit
    phillfri

    Hello Phil,
    Command bars were deprecated and shouldn't be used any longer. Instead, you need to use the Fluent UI (aka Ribbon UI) instead. You can read more about the new UI in the following series of articles in MSDN:
    Customizing Context Menus in Office 2010
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
    As a workaround you can add a custom control to the context
    menu with the getEnabled or getVisible callback which will be invoked before the context menu is shown.

  • User Interface bug when renaming tracks in list views

    When renaming tracks in the list views, there is a user interface bug that makes it impossible to see what you're doing.  When you select a track in the list view, this is what it looks like:
    Note how the text is white on the darker blue background.  When you click again, to open the inline text editor to rename, this is what you get:
    The background color of the text editor is white, just like the text, so when you type, you can't see what you're typing, nor can you see where in the original text your text insertion cursor is located.
    Thanks!
    Steve.

    I'm frustrated with this same problem. In my case this happens only in my 10.5 macbook air and not in my 10.4 macbook pro. I've been renaming files in the same way in 10.2/10.3 and this never happened. Should be a bug. I've been searching for this issue and found this post at last - I really wonder why there aren't so many people mentioning this.

  • Why will inner interface be used?

    Our own web framework includes below code:
    public class MapExecutor<E extends Exception> {
         public static interface Accessor {
                  SqlMapClient client();
              LobHandler lob();
    }I don't know how handy inner interface is, any ideas? thanks.

    798885 wrote:
    I don't know how handy inner interface is, any ideas? thanks.There are many reasons for using a nested interface/class, but the most common ones are:
    1. It has no meaning outside the context/class in which it's defined.
    2. To distinguish it from another interface/class with the same name.
    3. To force clients to qualify it's name with it's enclosing class (eg, Map.Entry).
    Winston

  • Config Files Backup to Avoid Interface Bug

    I have recently upgraded to Adobe Creative Suite Master
    Collection. Although I am impressed with the collection for the
    most part, I can't believe that Adobe has not addressed a glaring
    bug in the user interface that will contsantly corrupt the sites
    list and configuration files.
    The bug stems from having a large website portfolio. As a web
    designer, as well as a webmaster, I have just finished configuring
    most of the sites and directories I need immediate access to.
    Dreamweaver CS3 could not import the previous site list and
    configuration because of the interface bug which is constantly
    corrupting that file. What happens, is that I select the website to
    work on (say, dnsite.com) from the drop down list, and am satisied
    that I am there. Unfortunately, my attention is diverted or I
    simply forget to click somewhere else in the window. If I would
    click somewhere else in the window, things would be fine. But that
    fact that I need to is a true interface bug, because when I don't
    click somewhere else (for whatever reason), I look at my list of
    files and immediately start to scroll down through the file list to
    get to the file I want to work on, BY USING THE MOUSE WHEEL, like I
    always do. However, because I have not clicked outside of that
    original site list drop down box, that site list selector scrolls.
    The result is that Dw loads and scans each site over and over until
    it comes to the end of the list, OR CORRUPTS THE SITE LIST AND
    CONFIG FILE. This happens all the time with me, and it is extremely
    infuriating. In order to combat this interface design bug, and Dw's
    inability to protect its own configuration files by handling them
    correctly, or even producing a backup file that it can revert to in
    the event that it has corrupted that last site list and config
    file, this interface bug has forced me to manually backup the site
    list and config file. But apparently, this file has moved since
    Dreamweaver 2004 MX?
    By the way, it would be simple to fix this bug with a simple
    pop-up dialogue window that would disappear once the correct site
    was selected (duh... I thought that Adobe's noted interface design
    excellence would have fixed this strange idiotic flaw immediately,
    but I see they haven't addresses anything us web designers want or
    need). I know Macromedia was working on the interface, but they
    never did get it right and I was expecting BIG improvements from
    Adobe RIGHT AWAY (because they are so good at it and Macromedia was
    so poor at UI design).
    Because of this this bug, and because I just configured over
    60 websites that I need to maintain immediate access to, I need to
    backup my website list and configuration file, but I see that it
    has changed or moved. It used to be in the application data folder
    in the folder up one directory from the My Documents for my
    username on the computer, but I can't find it anymore. I checked
    All Users as well. Where has this file gone, and what is it named,
    now?
    By the way, as a default, you would be saving me and other
    web designers a great deal of time (re)configuring my list of sites
    if you would have included .psd .ai and .eps as file extensions to
    cloak. Macromedia didn't do this because they didn't want to
    promote you, but you own this software now, update it.
    So little thought has gone into this update that I am truly
    dissapointed. Dw used to improve with each update. You can't tell
    me anyone is happy with it and keep a straight face.
    -Doug
    Symbiotic Design

    > to the file I want to work on, BY USING THE MOUSE WHEEL,
    like I always do.
    > However, because I have not clicked outside of that
    original site list drop
    > down box, that site list selector scrolls.
    Not what you'll want to hear probably- but the site list
    scrolls again
    because the site list drop down is what has focus. It has
    focus until you
    click something else. That's the GUI behavior i would expect
    instead of a
    warning dialog box getting in the way.
    click in the files panel if you want to scroll the list of
    files for the
    chosen site.
    location of Configuration folder:
    Dreamweaver CS3 on Windows Vista:
    C:\Users\[username]\AppData\Roaming\Adobe\Dreamweaver
    9\Configuration
    * Dreamweaver 8 on Windows Vista:
    C:\Users\[username]\AppData\Roaming\Macromedia\Dreamweaver
    8\Configuration
    * Dreamweaver CS3 on Windows XP:
    C:\Documents and Settings\[username]\Application
    Data\Adobe\Dreamweaver
    9\Configuration
    * Dreamweaver 8 on Windows XP & 2000:
    C:\Documents and Settings\[username]\Application
    Data\Macromedia\Dreamweaver
    8\Configuration
    * Dreamweaver CS3 on Mac OS X:
    Mac HD:Users:[username]:Library:Application
    Support:Adobe:Dreamweaver
    9:Configuration
    * Dreamweaver 8 on Mac OS X:
    Mac HD:Users:[username]:Library:Application
    Support:Macromedia:Dreamweaver
    8:Configuration
    The site definition information is stored in a Registry Key
    on windows.
    mm-exporter.joexx.de/ is a free third-party utility that can
    handle this and
    other tasks.
    The site defs on macintosh- probaby easiest to use the Export
    button in the
    manage sites dialog box. Can't lay hands on the file location
    offhand.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Strange Behavior In Defining A Template Interface -- Bug/RFE

    Hello.
    This is a bit of a bug. I wanted to define a "template" interface. If you follow this sequence of steps, you may see this odd behavior:
    In a class diagram, insert a new Interface.
    Add a template parameter to that interface. Now, the display of the object has not changed.
    Right-click the interface, and under "Show", select "As Icon".
    Right-click again and under "Show" select "As Non-Iconic Class".
    Now the interface is displayed as a "Template Class" on the diagram, with its parameters visible. This comes about since the Modeling Palette only contains a tool to draw a "Template Class", which creates a class only and not an interface.
    Is this behavior somehow intentional or expected?
    Is there any bug reporting tool for such reports? Or is posting on this forum sufficient to constitute feedback on a bug?
    Thanks in advance.
    - Steven Coco.

    Hi.
    I am not aware of another notation: the display given by JSE (after making it display the parameters) is all I would expect -- the UML superstructure just says that a templatable element has the dashed-outline box listing its parameters. Now, the display of the parameters can be suppressed, but I would have expected in that case a more direct "Hide or Show Template Parameters" option for the element. And in fact, I'd say that a display option like this is really what this boils down to: there's no option to hint JSE to display the parameters; and you'd have to go a round-about fashon to make them appear.
    And my display does still show <<interface>> after geting the parameters to appear.
    Thanks!
    - Steev.

  • ITunes interface bug

    Hi,
    not sure if I got the right category, but here goes. I have this weird bug in iTunes, where all interface controls have a slightly darker background colour than the rest of the interface. It's incredibly annoying, and shows up in every dialogue in iTunes. I have no idea how to fix this, or what is causing it.
    iTunes 7.6.2 on 10.5.2
    Here is a screenshot of it: http://vivadyne.net/misc/itunes_bug.png
    Thanks in advance

    There's a software update for Leopard. Update your mac and see what happens.

  • Email interface bug

    Hi everyone,
    Ive got an iphone 3gs running the latest iphone software 3.x.x. and I had a first generation Iphone.
    When I first got my 3GS in September I noticed an email bug. if you are reading an email horizontally, and flip the phone to vertical and hit the back button to go to your main email area the navigation bars disappear. It seems to only happen if you have an unread email, or if one comes in while your reading and thats why you hit the back button... You can not navigate out of the email that you were reading. You have to restart the phone to reset the email app. it happens consistently, and I expected someone to report it, but the iphone OS has been updated a few times now, and it still has the bug.
    Is there any way to report this to apple? I can not recreate this bug on 2.5g, or 3g phones, only the 3gs.
    Anyone else have this happen?
    Thanks

    You can only report "bugs" directly if you're a registered developer. If you're not a developer you have this:
    http://www.apple.com/feedback/iphone.html

  • Three persistent interface bugs/annoyances

    There are three things I have to repeatedly change every time I open an EPUB in DE 1.8 -- if these are bugs I'm hoping they're fixed soon; if these are "as designed" please add a way for users to change the default behavior and make the change STICK. Thank you. :-)
    1. After opening an EPUB, I always change the font size from Medium to Large, solely because the default Medium shows eBooks in 3-page spreads (!); and the only way to switch to 2-page spreads is to increase the font size to Large. I'm fine with the Medium font size, but not with the 3-page spread. (why are you allowing that, anyway ... it's weird).  I'm using a standard 15" widescreen laptop, fwiw.
    It's VERY annoying to have to change this setting for every single EPUB I open! Tedious.
    I think that font size should not dictate how many pages you see anyway. There should be 2 icons up there, one to force single pages and the other to force 2-page spreads, regardless of the font size.
    2. After opening the Nav panel (which I think should *be* open by default from the onset, but that's just a personal preference), I always have to resize it to shrink it down to a normal size. It takes up way too much horizontal width. It's hard to get the icon that lets me drag it, too.
    3. After clicking a TOC entry in the Nav panel, it bugs me that Nav TOC panel automatically closes. I have to open it again, go to the Gear (settings) icon, and UNcheck "Hide Panel After Use." That should not be the default setting, imo. You're using the TOC to see where you want to start reading, and often, the first choice is not correct!  So it should *stay* open until you press the button to close it or change the preference (turn ON "Hide Panel After Use.").

    Hi AnneMarie,
    For item 1, the latest version of Digital Editions can now save the font size settings for each of the books, you may have a try. It also has a shortcut key to change font quickly: <Ctrl> (Cmd on Mac) + <+> / <->. This can quickly enlarge / reduce the font size by keyboard. Hope this help.
    For item 2, DE is now can remember the side panel width. You may try the latest version with this feature.
    For item 3, DE is now can remember the option "Hide Panel after Use". Once you unchecked this option, it will keep opened after clicking. You may try the latest version with this feature.
    Thanks and regards,
    Derek

  • Issue with JSPs with inner classes (bug)

    FYI:
    Turning on Versioning in the registry (Disable=0) JSPs with inner classes causes the following IllegalAccessException...
    This has been confirmed with SP3 and SP4 with our testing...
    14/Jan/2002 13:26:24:4] error: Exception: SERVLET-run_failed: Failed in running template: /NASApp/fortune/foo.jsp, java
    lang.IllegalAccessError: try to access class jsp.APPS.fortune.foo$foobar from class jsp.APPS.fortune.foo
    xception Stack Trace:
    ava.lang.IllegalAccessError: try to access class jsp.APPS.fortune.foo$foobar from class jsp.APPS.fortune.foo
    at jsp.APPS.fortune.foo._jspService(foo.java:78)
    at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown Source)
    at com.netscape.server.servlet.servletrunner.ServletRunner.callJSP(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callJspCompiler(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUri(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUriRestrictOutput(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformRequestDispatcher.forward(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPRunner.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown Source)
    at com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    Looking for work around....
    Cheers,
    Martin Gee

    I do not see why you would use two sorts.
    And what is the issue exactly by the way? Errors?
    So, the records before the Merge Join need to come sorted, to achieve this simply tick:
    Arthur My Blog

  • Class implementing its own inner interface?

    Hi
    If I try to compile the following I get a "cyclic inheritance involving Data_set" compiler error on line 1:
        public class Data_set implements Data_set.Row
            public interface Row
                String column(final int a_index);
            public String column(final int a_index)
                return "something";
            public Row row(final int a_index)
                return new Row_impl();
            private class Row_impl
                implements Row
                public String column(final int a_index)
                    return "something else";
        }Is there any good logical reason why this should be disallowed, given that the interface is necessarily static and putting it inside the class seems like just a namespace issue that would involve no cyclic dependencies?
    Thanks
    Colin

    colin_chambers wrote:
    The Row component here only has meaning with respect to the Data_set container, so I do think that it makes sense to scope the Row name inside Data_set I respectfully disagree. Row is much more independent of a set of Rows than a DataSet is from Rows. A row can live on its own, a data set cannot. Your domain modeling is iffy at best.
    I would find it extra syntactic clutter to extract the row explicitly in these cases.You should never resort to a poor design to avoid "syntactic clutter", and it's quite likely that a proper design will reduce the clutter. My guess is that you've got a bad design through and through, and should consider maybe an inversion of control? Maybe what you're really looking for is a [Visitor pattern|http://en.wikipedia.org/wiki/Visitor_pattern]?
    public interface RowVisitor {
       void visitRow(Row row);
    public interface RowVisitable {
       void acceptRowVisitor(RowVisitor visitor);
    public class Row extends RowVisitable {
       public void acceptRowVisitor(RowVisitor visitor) {
          visitor.visitRow(this);
       //...other stuff
    public class DataSet implements RowVisitable {
       private final Collection<RowVisitable> children;
       public void acceptRowVisitor(RowVisitor visitor) {
          for ( RowVisitable row : children ) {
             row.acceptRowVisitor(visitor);
    DataSet set;
    RowVisitor printVisitor = new RowVisitor() {
       public void visitRow(Row row) {
          System.out.println(row);
    set.acceptRowVisitor(printVisitor);Another option would be an Iterator pattern.

  • Interface Bug with 2 monitors in LP8

    I use 2 monitors tiled vertically to display a large track layout - in 7.2 I'd have to open the screenset and drag the window across to the 2nd screen - once I did this it would stay in place (across the 2 monitors)
    I LP 8 I tried the same thing - only when I select a track on the 1st montor the display reverts and redraws the window to only ONE screen - so for now v. 8 is useless -
    Also - I find the legibility is MUCH WORSE with this haze of grey over everything - Looks Like I'll be hanging on to my xs usb keys for a while---
    back to work, back to 7.2

    I work with 2 monitors all the time - with very large arrangements it's a huge boon. Are you saying if for example you have a linked matrix editor open on the 2nd screen every time you change tracks it shhots onto screen 1?
    This would be a disaster for my use of Logic so I hope this isn't the case or if it is it's a soon to be fixed bug!
    Julian

  • Address Book interface bug?

    I've noticed that the handling of "add address to address book" has improved in Leopard. It appears that the action either brings Ad. Book to the front or it opens it and brings it to the front if its not already open. Well done apple! This was a no-brainer that wasn't working in Tiger. I really appreciate it.
    However...
    I've found that upon opening, the cursor is present in the search box. Instead of inside the first name field. The first name field IS however highlighted (albeit grey) since its not the primary focus. If one starts typing without realizing that their cursor is in the search field, they will undoubtably find themselves in some other name, rather than adjusting the name that they are intending to add.
    Any thoughts on letting apple know about this bug? Can anyone else confirm it for me?
    Matthew

    Harwood64,
    If you think this is a bug you can report it to http://www.apple.com/feedback/macosx.html. Because Address Boook is part of OS X that would be the best venue to report the issue.
    BTW because your profile is incomplete no one knows what version of OS X you are running. This is critical because Address Book is changed from version to version of OS X. Please complete your profile, you can find it by clicking Your Stuff (upper right) then click Profile and fill in the pertinent information.

  • User Interface Bug? "Current Location" Display in Audible Books

    I have been an Audible audio book listener for many years on many different kinds of iPods. The iPhone is also great for this, but does introduce an interface change that I find undesirable.
    When you tap on the book cover area of an audio book (in PORTRAIT) mode while an Audible book is playing, you get a nice display of where you are currently located in the audio book file.
    However, on the iPhone, the display resulting from the foregoing method shows the current minute and second in the CHAPTER of the audiobook (i.e., a subdivision of the audio book file)--not the audio book file as a whole. This behavior is very different from that displayed on iPods. Thus, I need to remember that I am in Chapter 4 of Part 2 of "The Woman in White," for example, at 31:45. I also cannot tell by glancing at the readout how many minutes are left in the entire file; I can only tell how many minutes are left in the current chapter.
    Does anyone else find this to be less user friendly than the standard iPod interface showing the current location in Audible books?

    Yes, the "Pagination Display Position" lets you control where the pagination shows up. So you could put it top left, top right, bottom left, bottom right. IMHO there are pros and cons to each position.
    Mike

Maybe you are looking for

  • Help required . Disk recovery and OS installation

    Hallo, I'm following a procedure I was given by a Genius at Apple Store. I had an issue with the disk and I formatted and I was trying to install the OS. it went for Internet recovery and it asked me to install Mountain Lion (which I hadn't bought be

  • Rollover images in Dreamweaver CS6 show blue frame in Internet Explorer...

    Hi I've created some very simple rollover buttons in Photoshop and placed them into Dreamweaver as rollover images to use as a navigation bar. They appear correct in all browsers except Internet Explorer - they appear with a blue frame around?  The t

  • Iphone 4s configured for exchange 2010 rebuilds inbox

    My iphone 4S keeps rebuilding the inbox multiple times per day. no events in the exchange server logs. this happen on wi-fi also. can this be the resync timeout value that the ios 4 suffered with? Thank You

  • Password Cracker Program

    I was assigned a code by my professor and was told to improve the performance of it. The code is very raw, but I was thinking that adding a brute force code would improve the return rate of the program and come about the password at a faster rate. I

  • Warning-Password has expired

    Dears, I am facing a strange issue from a long time.I am using ECC5 having ABAP+JAVA Stack.When ever I reset password of any user by SU01  and then login on Portal first time with this new password,A window open to change my first password but on its