A language question, didn't find answer in spec.

The question is, if I have a class defined as a private static member of another class, and it extends the outside class at the same time, can it access another private static member in the same class?
The sample follows:
public abstract class Main {
private static class Runner extends Main {
public void run(int i, int j) {
run(i);
private static synchronized void run(int i) {
javac compiled it, but since Runner is a subclass of Main, it doesn't have the previllege to acess run( int ) in Main because it is a private member.
I am confused...
Thanks for any reply.

Though I've not tried your situation specifically,
everything inside of a class should have objectscope
and visibility. Internal classes should be able to
see back into the class they are encapsulated into.It's this vs access modifiers. Inner classes should
be able to see back into the outer class, but
apparently if the inner class extends the outer class
(don't know why you'd do this), inner class (subclass)
loses access since private members can't be seen by
subclasses.
I guess the access modifier takes precedence.Disregard this previous post.
I think the call we are actually making is the static Main.run(int), not a member of Runner, therefore inheritance rules don't apply.
I think this is what happens. Correct me if i'm wrong.
Main.run(int)            What gets called
static any access        Main.run(int) as a static method
nonstatic private        Compile error
nonstatic protected      Main.Runner.run(int) as an inherited method
nonstatic public         Main.Runner.run(int) as an inherited method

Similar Messages

  • How to decrease mouse speed (easy question, can't find answer)

    Hello Archers. I bought a new mouse which has a resolution of 800 DPI and no option to change it like game mice have (a button that changes colors when you change resolution with it). After connecting it to my Arch box it turned out to be faster then what I got used to with my previous mice that had an option to choose DPI. I would like to decrease speed of my pointer in IceWM Xorg. I don't have DE, just Xorg and IceWM.
    xset m 0 0
    won't do it, it just sets acceleration to 0. And apparently doesn't even work on newest systems.
    Tried to add
    Option "Resolution" "600"
    to "xorg.conf" to try to change mouse resolution to 600 DPI and it had no effect.
    There is also popular answer for this search query but it doesn't seem to answer my case. If I type in
    xinput list
    I have
    ⎜ ↳ USB OPTICAL MOUSE id=8 [slave pointer (2)]
    as my mouse. Now
    xinput list-props 8
    and I get
    Device ' USB OPTICAL MOUSE':
    Device Enabled (141): 1
    Coordinate Transformation Matrix (143): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Product ID (259): 0, 1336
    Device Node (260): "/dev/input/event2"
    Evdev Axis Inversion (268): 0, 0
    Evdev Axes Swap (270): 0
    Axis Labels (271): "Rel X" (151), "Rel Y" (152), "Rel Vert Wheel" (263)
    Button Labels (272): "Button Left" (144), "Button Middle" (145), "Button Right" (146), "Button Wheel Up" (147), "Button Wheel Down" (148), "Button Horiz Wheel Left" (149), "Button Horiz Wheel Right" (150)
    Evdev Scrolling Distance (273): 1, 1, 1
    Evdev Middle Button Emulation (274): 0
    Evdev Middle Button Timeout (275): 50
    Evdev Third Button Emulation (276): 0
    Evdev Third Button Emulation Timeout (277): 1000
    Evdev Third Button Emulation Button (278): 3
    Evdev Third Button Emulation Threshold (279): 20
    Evdev Wheel Emulation (280): 0
    Evdev Wheel Emulation Axes (281): 0, 0, 4, 5
    Evdev Wheel Emulation Inertia (282): 10
    Evdev Wheel Emulation Timeout (283): 200
    Evdev Wheel Emulation Button (284): 4
    Evdev Drag Lock Buttons (285): 0
    Luke in that answer pointed out "Device Accel Constant Deceleration (267): 2.500000" which I don't seem to have. So are there any working ways to decrease pointer speed in Xorg for Arch?
    An LQ.org forum member suggested to look at wiki page which I did and the left solution also didn't help. Creating file "/etc/X11/xorg.conf.d/50-mouse-deceleration.conf" with the config wiki suggests doesn't decrease mouse speed. Please help me to do it.

    Ok, bad dice. Last throw from me: Did you install: https://www.archlinux.org/packages/?sor … nput-mouse ?
    man mouse_drv wrote:Option "Sensitivity" "float"
                  Mouse movements are multiplied by this float before  being  pro‐
                  cessed.  Use  this  mechanism to slow down high resolution mice.
                  Because values bigger than 1.0 will result in not all pixels  on
                  the  screen being accessible, you should better use mouse accel‐
                  eration (see man xset) for  speeding  up  low  resolution  mice.
                  Default: 1.0

  • Reposting a question that didn't get answered in previous post: best preset to save mpeg project?

    So it took me a week or so to get to try out the answer I'd gotten, & I couldn't get that answer to work, and then my follow-up question didn't get answered, which makes me wonder if threads & discussions kinda die if they're not kept up? (I'm not very experienced in how these forums work, apologies).  In case that is the case, I'm starting this new one, but refer you back to the old (unfinished) one.  Just scroll down to the last few exchanges to get the gist of it.  Thanks . . .  Mark
    the previous discussion:   http://forums.adobe.com/message/4663058  

    Steve--Sorry if this approach wasn't the best--as I said, I'm not well-versed in forum protocol-- but I did post it last week to the end of that discussion as you recommended but didn't get a response, so I wasn't sure how best to proceed from there.  Anyway, hopefully this works ok for you.  Here's a copy of the relevant exchange. I'd written:  "I'm using a Lumix DMC-ZS7 which, on the small test I did, was set to 640x480 & is a MOV file, and while the "correct" preset choice isn't there, there is probably a best choice among the many choices that are there, and that is my question--which should I choose for this particular clip at this resolution?  Both for quality & cross-platform usability?  The camera also has AVCHD Lite", whose specs read: -- SH: 17Mbps /H:13Mbps /L:9Mbps ) / 30fps (Motion JPEG)   1280x720 pixels, NTSC Mode: NTSC model: 60p(CCD output is 30p)."
    You wrote back:  "Shoot in AVCHD Lite and, when you set up your Premiere Elements project, select the project settings for AVCHD Lite and you should get much better results.
    Obviously, your video is not going to look perfect at full screen on a computer no matter what output settings you use. Your monitor is likely larger than 1280x720. But you should then be able to output using Share/Disc/WMV setting your output for 1280x720 using the Advanced settings."
    And here's my follow-up, & hopefully final, question, from last week:
    "Hi Steve-- I just now had time to try out your recommendation--and I will in the future shoot in AVCHD Lite--but for the existing mpeg stuff--I could not find the settings you recommended.  ("Obviously, your video is not going to look perfect at full screen on a computer no matter what output settings you use. Your monitor is likely larger than 1280x720. But you should then be able to output using Share/Disc/WMV setting your output for 1280x720 using the Advanced settings.")  Firstly, I took this to be your answer to my question of how best to save mpegs, not AVCHD Lite, am I right there?  Under Share/Disc I couldn't find any WMV settings whatsoever in any of the choices, nor was there any Advanced option.  Under Share/Computer there is the Advanced option--but again, I couldn't find a WMV setting.   I did find 1280x720 under the Share/Computer/mpeg presets, as a couple HD 720 options & three HDTV 720 options.  If indeed one of those is the best choice--which one?  Or is your original suggestion still the one, with its non-obvious location to be revealed?  (by the way, I've got Premiere v10.0).
    Question 2-- when I do start using the AVCHD lite, is there any one preset you can advise as the best one to use?
    Thanks again--Mark
    and thanks again again--Mark

  • Heloo, my question is, how to make aspect ration 4:3 on i movie 10.01? i didn't find it :), heloo, my question is, how to make aspect ration 4:3 on i movie 10.01? i didn't find it :)

    heloo, my question is, how to make aspect ration 4:3 on i movie 10.01? i didn't find it :), heloo, my question is, how to make aspect ration 4:3 on i movie 10.01? i didn't find it

    Problem Resolved - it is a font issue. Apparently Acrobat can't handle particular fonts and it is best to stick with a very small slection of fonts - Arial, Helvetica, Times Roman.
    I haven't test a lot of fonts. If I do, I'll post there results here.
    Bob

  • Hi there, I just would like to suppress my ADOBE ID but I didn't find the right place to post my question ! Could you help me ?

    Hi there, I just would like to suppress my ADOBE ID but I didn't find the right place to post my question ! Could you help me ?

    What do you mean by "suppress my ADOBE ID" ?
    The following link might be useful.
    For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    Adobe ID and registration chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service-c1.html ( http://adobe.ly/19r6ZDp )

  • I seem to not enter the correct answers to my security questions for itunes to buy an in-app purchase and also cannot answer the questions exactly like i answered them when creating the account for my ipod, how do i find out what answers i put

    I seem to not enter the correct answers to my security questions for itunes to buy an in-app purchase and also cannot answer the questions exactly like i answered them when creating the account for my ipod, how do i find out what answers i put for my ipod touch and itunes?

    Try these previous discusssions:
    recover answers to security questions: Apple Support Communities
    how do i change apple ID security...: Apple Support Communities

  • Will someone PLEASE help a desperate woman by telling me how to talk by phone to a real person at apple support. Cannot find an answer to my question and cannot find a phone number for support.

    I set up my new iPad under my daughters ID because her's is attached to my email. Tried to rent a movie from iTunes. Said I had to answer security questions since it was my first purchase. She didn't remember the answers. So it locked. She reset her password and everything works on her iPad but on mine it still wanting answers to the security questions and we don't have the answers (her questions could have multiple answers...favorite teacher, favorite friend). Is there a way to completely disconnect from her ID or can someone please share the phone number for customer support with me? Thanks so much in advance!

    Providing you know your ID and password, you should be able to rewrite your security questions. Start here, change your country if necessary and go to manage your account > password & security.

  • Where and how do I find answers to my posted questions?

    Where and how do I find answers to my posted questions? 
    Are they emailed to me? 
    Do I get some other notification?
    Or do I have to continue to check back to this site?

    Thanks for the answer to my question.
    As I can see I am new at this.
    I must have my email register because I got your message.
    Again Thanks
    Sent from Dick's iPad 2

  • I forgot to answer account security, so how can I find answers or change questions and new answers

    I forgot to answer account security, so how can I find answers or change questions and new answers
    Can you help me ,please???

    From a Kappy  post
    The Three Best Alternatives for Security Questions and Rescue Mail
       1. Use Apple's Express Lane.
    Go to https://expresslane.apple.com ; click 'See all products and services' at the
    bottom of the page. In the next page click 'More Products and Services, then
    'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Forgotten Apple
    ID security questions' and click 'Continue'. Please be patient waiting for the return
    phone call. It will come in time depending on how heavily the servers are being hit.
    2.  Call Apple Support in your country: Customer Service: Contact Apple support.
    3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • HT204266 I forget the answer to the security question, how to find the answer?

    Dear all, I forget the answer to the security question, how to find the answer? Thanks

    1. See my User Tip for some help: Some Solutions for Resetting
        Forgotten Security Questions: Apple Support Communities.
    2. Here are two different but direct methods:
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contacting Apple for
            support and service.
    3. For other queries about Apple ID see Frequently asked questions about Apple ID.
    4. Rescue email address and how to reset Apple ID security questions
    5. For online assistance use Apple - Support - Express Lane

  • HT201263 What will i do?screenshot There is a problem with your iPhone. Please visit the Service Answer Center to find answers to all your questions about service options, warranty and other processes in your country. To find your nearest Apple Store, cli

    What will i do? ITune screenshot is as follows >
    There is a problem with your iPhone. Please visit the Service Answer Center to find answers to all your questions about service options, warranty and other processes in your country. To find your nearest Apple Store, click here.

    Do what it said to do.
    "Please visit the Service Answer Center to find answers to all your questions about service options, warranty and other processes in your country. "

  • TS1814 There is a problem with your iPhone. Please visit the Service Answer Center to find answers to all your questions about service options, warranty and other processes in your country. To find your nearest Apple Store, click here.

    There is a problem with your iPhone.
    Please visit the Service Answer Center to find answers to all your questions about service options, warranty and other processes in your country.
    To find your nearest Apple Store, click here.
    Please help me i can aktivate my phone imei 012423006333181.

    There is a problem with your iPhone.
    Please visit the Service Answer Center to find answers to all your questions about service options, warranty and other processes in your country.
    To find your nearest Apple Store
    no imei also

  • HT5149 Hi, I still have problems reinstalling Final Cut Pro even though I followed these steps. Didn´t find "com.apple.motionapp.plist" to remove though, but the others I found. Reason why I have to reinstall is because I have repaired my Macbook Pro hard

    Hi, I still have problems reinstalling Final Cut Pro even though I followed these steps.
    Reason why I have to reinstall is because I have repaired my Macbook Pro hard drive at a Mac Authorized Repair.
    Short history of repair and my Final Cut Pro installation:
    1. Macbook Pro stopped working, sendt it for repair. Had the Final Cut Pro installed,
    2. Desided to try a MiniMac and recovered my backup with Time Machine, got the Final Cut Pro working.
    3. Got my Macbook Pro back from repair, did backup on this one as well. But this time only the files not the Applications.
    4. Removed the files as mentioned in HT5149. Didn´t find "com.apple.motionapp.plist" to remove though, but the others I found.
    5. When I try to install Final Cut Pro from App Store, it downloads the application as planned. But after download it won´t show in the Application folder nor in the downloads folder, nor will it start an installation prosess. If I pause the installation in App Store, I can see the Final Cut Pro icon in my Dock. (But, as mentioned, after installation it won´t show neither here or in the Applications folder).
    Any suggestions on what I should try now?
    Thanks for any reply, I´m in deep water here...

    Sounds like there is a file you're not getting.  Never do a removal manually.  It's so time consuming and a pain.  There's a very easy and fast way to do this, safely, properly.
    Get the free "Final Cut Remover" app from Digital Rebellion (dot com), use this to remove FCP X.
    Reboot the Mac.
    Download from scratch.
    If you're not seeing FCP X in your app folder, run Disk Utility to Repair all drives.
    If that doesn't help, try running Disk Warrior from Altsoft to repair the directories on all drives.

  • I'm unable connect my I pad mini to my laptop(window 7,64 bit) after formatting,my iTunes didn't find my device,before format everything working properly but this time lot of problem plz help

    I'm unable connect my I pad mini to my laptop(window 7,64 bit) after formatting,my iTunes didn't find my device,before format everything working properly but this time lot of problem plz help

    You formatted your computer's hard drive? If so, it's like starting with a new computer unless you restored all of your content from a backup but it does;t sound like that's the case.
    See wjosten's excellent how-to here: Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • Thanks for the response, Peggy. I didn't find a 10 ^ update on the update, but I did update Java to Update 7. I then followed your directions to delete the Appleworks preferences. However, I still have the same problem. Any other suggestions. My wife real

    Thanks for the response, Peggy. I didn't find an update for the update of OA X10.6, but I did update Java to update 7. I also followed your instructions and deleted the preferences files. However, I still get the same dialog box: "Appleworks 6 Quit Unexpectedly". Any other ideas.? Many thanks,
    Sprinkles

    Hi Sprinkles: You may need to repost your response in the original thread to get Peggy's attention. I have included the link to your previous thread below.
    https://discussions.apple.com/message/18043809#18043809
    Stedman

Maybe you are looking for

  • Marketplace Adapter

    Hello, We want to migrate BC scenario to XI. There is marketset connector used in BC. It does mapping of Idoc to XCBL format. There is customized mapping for different vendors. I found xsd for order xcbl from xcbl.org which i have imported in XI but

  • Error Handling and alert for HTTP 401

    Hi Experts, We have an asynchronous ECC (Proxy) -> File via local processing. 1 of the outbound proxy message encountered 401 HTTP_RESP_STATUS_CODE_NOT_OK error and didn't reach PI. We have used exception class CX_AI_SYSTEM_FAULT in our program but t

  • Use only half of a transition?

    Looking to use only the first half of a transition between two clips. Previously you could align a transition with the beginning or ending of a clip but not seeing that in FCPX... Pic below illustrates. Essentially I want the first clip to transition

  • Achieving chronological sort on a date column with month function

    Hello all , I have a a date column(start_date) on which I applied 'MONTHNAME' function to extract the month name out of the date . i.e. 4/24/2013 will return 'Apr' . While trying to achieve a sort on this , its returning alphabetical sorting , i.e. a

  • Keeping iPod in Car

    Hey. I just got my ipod and I plan on using it a lot in the car. Is it safe for the battery to keep it in the car even when the temperatures reach the low teens at night? I know that this will drain the battery and require a recharge, but will it ove