Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Re: No late binding for static methods

843789May 20 2009 — edited May 20 2009
Only the sale class has a showAdvertisement() method.

When the compiler compiles that class it decides at compile time which exact method is called for each static method call (that's the big difference to non-static method calls: the exact method to be called is only decided at runtime in those cases).

There's only one method showAdvertisement() and that is called in both cases in your code. Since that single method always calls the same static announcement() method, you will see the result you posted.

Comments

807557
Moin!

I did also download the most recent (DVD) ISO did a setup_install_server
and didn't have that problem. I did however skip the burn step and instead
mounted the ISO directly via loopback devices:

# lofiadm -a /jumpstart/OS/isos/sol-10-u2-ga-sparc-dvd.iso
/dev/lofi/7
# mount -F hsfs -o ro /dev/lofi/7 /mnt/10u2

When looking at the files system of this mount the Boot directory is not
linked and as said the setup_install_server worked fine.

Hope this helps
-Ralf
user4994457
Correct. The CD is a bit low on space, so the boot files are only present in a SPARC UFS filesystem (necessary so the CD is bootable). The x86 box won't read that filesystem (either from CD or from an image).

You'd need to either build at least one SPARC machine, mount the CD there, then copy the files over to the x86 box.

Or as mentioned, use the DVD image. The space there allows the boot code to be duplicated in two places so the x86 box can read it.

--
Darren
1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 17 2009
Added on May 20 2009
15 comments
1,142 views