Why Java does the compound operator conversion (once again)

Hello to all,
can anyone repeat for me the motivation, why the early Java Language designers introduced the narrowing conversion into the compound operators? (E1 op = E2 is
equivalent to E1 = (T )((E1) op (E2)), where T is the type of E1, except that E1 is evaluated only once)
I can pretty well understand the reasons, why it cannot be changed any more (it is an incompatible change - http://bugs.sun.com/view_bug.do;jsessionid=67cacbc1afced76921b2264b6fd9c?bug_id=4655168). But I cannot see the reason, why to introduce it at the first place.
Thanks a lot for any answer.
Edited by: gree on 13.4.2010 12:33

I never told, I do not like that.You raised Occam's razor, which is the principle that entities should not be multiplied needlessly. If you don't consider it a needless multiplication of entities why introduce it?
According to you answer, I presume ...I stated my view explicitly. No need for you to presume anything.

Similar Messages

  • Why does the new operating system not delete the moved files from their original location - it seems like an enormous waste of space, time and effort to clean up every file once you've moved it

    Why does the new operating system not delete the moved files from their original locations - it seems like an enormous waste of space, time and effort to clean up every file once you've moved it - also, when transferring large amounts of files it becomes a very large problem remembering which files were transferred and which not.

    You're going to need to be more specific, as I'm not quite sure I understand what you're talking about.
    If you're referring to copying from an external hard drive or flash drive, and you want to actually move files rather than copy them, you can hold down the option key to force it to do a "move" rather than a "copy." This is not new behavior, though... the Mac OS has worked this way as long as I can recall (and I've been using it since 1984).
    If you're having a problem with trying to move files from one place to another on a single drive causing them to be copied instead, that is likely because of some permissions issue preventing you from actually being able to move them.

  • Do I need to rebuild the operating concern once again.

    Hi,
    I have added extra field to the COPA data soruce (1_CO_PA_XXX) and written CMOD code to populate the data. But I am not able to see the newly added field while trying to fill the data through RSA3.
    1. Why am I not able to see the newly added field.
    2. Do i need to rebuild the operating concern once again? If yes, Do i need to resbuilt in every system or can it be transported?
    3. I am also seeing another data source (1_co_pa_xxx_oc). What's the difference between data sources 1_CO_PA_XXX and 1_co_pa_xxx_oc?

    When you're doing a test extraction in RSA3, is the column there but with no data or is the column not even showing up (you may have to right-click on the columns and click on Show... to get the new column to show in RSA3)? Try deugging the 1_CO_PA_XXX DataSource in RSA3 on your R3/ECC source system to determine why the code in CMOD isn't being invoked, or not providing the data. We have been able to modify our 1_CO_PAXXX DataSource by enhancing the extraction structure with an append and then creating code in CMOD, so you shouldn't have to recreate it.
    As for the 1_CO_PA_XXX_CO DataSource, it appears that someone has created a second COPA DataSource. It could be that one was created opposite of the 1_CO_PA_XXX DataSource in that it's account-based v. cost-based or it could be the same basis with different fields.

  • Why java does not support multiple inheritance ???

    Hai friends ..iam new to java .. i have doubt ..plz help me
    Why java does not support multiple inheritance ???

    The reasons for omitting multiple inheritance from the Java language mostly stem from the "simple, object oriented, and familiar" goal.
    To understand multiple inheritance, the learner needs some level of expertise like virtual derivations etc in c++. Multiple inheritance will allow method duplication, and throws the learner into confusion which method might be called by the compiler in which scenario at run time.
    Even though this answer seems to be funny, this is the actual reason why java omitted multiple inheritance of classes.
    But java support multiple inheritance of interfaces. Multiple interface inheritance allows an object to inherit many different method signatures with the caveat that the inheriting object must implement those inherited methods.

  • Why java does not force to declare atleast one abstract method

    hi,
    i can define an abstract class without declaring any abstract method in that class. But why wud i do this ? i mean when i have decided that a particular class should be inherited by other subclass and subclass should porvide implementation then there should be atleast one method in the abstract super class which requires implementation.
    All i want to know is why java does not force to declare atleast one abstract method in abstract class.
    there may be some situations where this restriction can create problem if it is like that then can anybody give some example.
    manish

    hi,
    i didn't get u.
    u r trying to say that i have an abstract class with
    only static methods then my questions is why wud
    declare such a class as 'abstract' class? because a
    static method can't be abstract also. Even then if
    somebody want to define such a class with only static
    methods then compiler should force him to declare
    atleast one abstract method which can be implemented
    by subclass, because as i said before if sumbody
    decide to define a class abstract then he wants that
    it should be inhereted but as u r saying a class with
    only static methods then it should not be an abstract
    class it can be a simple class.there's no functional reason, really... actually, factory-like classes are often defined the way Ceci described
    "abstract" only ensures that nobody can ever get an instance of that class (as a matter of fact, what would be the point of getting an instance, if no instance method exists ?)

  • To trigger the same Gp process once again after the completion of one

    Hi
    I have aGP process implemented in Webdynpro.
    After the completion of this process, itshould automatically trigger the same GP process once again.
    It should happen from the webdynpro coding.
    Can anybody help me.
    thnaks
    Smitha

    Hi Siva,
    Thanks for the reply.
    But How can I give process name ?
    There can be more than 1 process with the same name.
    Procees ID is the unique one what we can use.
    Still that too we can't use as method.
    we can give it as a parameter.
    what I tried is,
    IWDClientUser wdUser = WDClientUser.getCurrentUser();
    IUser user1 = wdUser.getSAPUser();
    IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(user1);
    IGPProcess process = GPProcessFactory.getDesigntimeManager().getActiveTemplate("EB0B28E08B6011DBB1BE00145EB416E0",userContext);
    EB0B28E08B6011DBB1BE00145EB416E0 is the process ID.
    This code I have tried by  giving before and after the completion of the previous  process(process9executionContext.processingComplete();)
    And I tried URL navigation also, by creating an outbound plug in the interfaceview. in the outbound plug I have called the process instantiation URL. But it is giving the error: "can not navigte :non-existent outbound plug"
    Please help me out.
    Thanks
    smitha

  • Why does the divide operator give me different results in different VIs?

    Hi all,
    I'm quite the LabVIEW newbie, so please forgive me if this is elementary.  I have a signal I am acquiring.  The signal is fairly low amplitude (.01 - 0.1 V).  On each acquisition, I divide the values in the sample set by another small number (0.047) using the divide operator.  I am seeing inconsistent results and I'm puzzled as to why.
    In ex1, which I built from scratch for this post, everything works as expected.  I can confirm with the debugger that each reading in the sample set is properly divided and the mean, max, and waveform graph look as I'd expect.
    When I use a similar construct in my real application, however, the division often results in INF, and when I look with the debugger I see post-divide values in the signal that...just don't make sense to me (ex2).
    I figured I must be missing something in the real application related to splitting up and merging multiple signals, so I tore out everything unrelated to the division (ex3).  Although this code looks a lot like the properly-functioning ex1, the division still produces INFs and strange results.
    All three examples are acquiring the same signal.  My best guess at this point is that the built-from-scratch example is coercing the double passed to the divide operator "the right way" and that the malfunctioning examples are coercing the double in a different, incorrect way.  I've tried removing and recreating the signal path in the malfunctioning examples to no avail.  My problem is that I don't know enough about LabVIEW data types to know how to force the proper coercion.
    Can anyone point me in the right direction for a solution?  I would greatly appreciate some help.
    Solved!
    Go to Solution.
    Attachments:
    ex1.png ‏8 KB
    ex2.png ‏15 KB
    ex3.png ‏10 KB

    I may be getting old, and my eyesight isn't as good as it can be, but I can clearly see that in example 2 and 3 you are not dividing by 0.047. So example 2 and 3 are not the same operation as example 1. The outputs of example 2 and 3 are completely dependent on the signals you are getting. Have you actually looked at those? You are using dynamic data which regulars such as myself absolutely detest. Be that as it may, you should look at the values you are feeding into the operation. I don't understand what you mean by "I see post-divide values in the signal".

  • How does the Filter Operator "Contains" work on the Interactive Reports?

    version 4.0.2.00.07
    Hello,
    I'm creating Tool Tip definitions for the Operators in the Filter on the Interactive Reports. I was looking for a definition for the 'Contains' operator and from what I've found this operator is used to do a text search and it returns a relevance score for every row selected.
    I've also read that in order for that score to be determined that the column(s) need to be indexed with a CONTEXT index. Non of the columns in the tables are indexed with a CONTEXT index, however, when I put a value in the Expression box for a column I get a record returned.
    If I run the same query in PL/SQL Developer like:
    SELECT <column>
    FROM <table>
    WHERE contains(<column>,<search text>,1) > 0;I get an error that the column is not indexed, so how does it work in APEX?
    Thanks,
    Joe

    Joe R wrote:
    I'm creating Tool Tip definitions for the Operators in the Filter on the Interactive Reports. I was looking for a definition for the 'Contains' operator and from what I've found this operator is used to do a text search and it returns a relevance score for every row selected.The IR "Contains" filter is not the same as the Oracle Text <tt>contains</tt> operator.
    The IR "Contains" filter performs a simple string comparison on all of the column values returned. It does not make use of any Oracle Text indexes on the underlying data.
    Despite < a href="https://forums.oracle.com/forums/thread.jspa?messageID=2434666">vague promises of enhancement</a>, no Oracle Text support has yet been included in Interactive Reports.

  • I am on windows 7 and I upgraded to 10.0.2 and now it will not open. I have removed firefox completely and uploaded it again and that did not work. So my latest attempt I removed firefox 10 again and uploaded the beta version and once again nothing.

    I am on windows 7 and I upgraded to the newest verison of firefox and now it will not open. I have removed firefox completely and uploaded it again and that did not work. I then made sure it could get through my firewall and that did not work. So my latest attempt I removed firefox 10 again and uploaded the beta version hoping that would do it and once again nothing. It will not open at all. Please help - is there a live chat or a number to talk to someone at Firefox?

    I think when uninstalling you may also have to choose (tick) to delete the preferences and other personal data like the bookmarks, stored passwords etc. to erase completely. If you are installing afresh, please try right-clicking on the file and '''Run as administrator''' to install. And when uninstalling, please also make sure choose to delete all data and also manually delete any '''Mozilla''', '''Mozilla Firefox''' or '''Firefox''' from %appdata%, %localappdata% and %programfiles%. You can open a location by typing for eg. %appdata% in the '''Run''' box (Windows key + R). You may also have to check the '''VirtualStore''' folder in %localappdata%. Files in the VirtualStore can be problematic. I think a clean installation may help.
    [https://www.mozilla.org/en-US/firefox/new/ Firefox]
    [http://kb.mozillazine.org/Installation_directory Installation Folder]
    [http://kb.mozillazine.org/Profile_folder Profile Folder]
    Please note that using system restore would usually damage the Firefox installation.

  • Why does the installation time out once it's reached 41%?

    I have Windows 7 Operating System and everytime I try to download and install Adobe Reader it times out once it reaches around 41% and I get a message Adobe not installed.  Does anyone know how to get around this issue?

    What installer do you use?
    Try downloading the full installer from http://get.adobe.com/reader/enterprise/

  • Does the Mac Operating System not work properly with Youtube?

    I noticed that my Messages on youtube are instantly deleted when I comment on some peoples Youtube channels. I don't think its the person that owns the youtube channels doing it because it is deleted almost instantly after I log out. It's very odd and I don't think its youtube censoring my comment because I'm not cursing in the comment and I don't believe cursing is against the TOS on Youtube anyways.
    Another thing I notice is that when I'm on a flash based chatroom that when someone I am talking to has left the chatroom it will still say they are in the chatroom until I click on my friendlist and than they turn red as if they are gone. It is very odd that I am noticing these strange bugs. However the chatroom thing could be a chatroom problem because it might do that on my Windows side which I never checked because I'm usually on that chatroom on my Mac side.

    The Adobe flash version could be checked to see if the system is actually using
    their latest version (see Adobe, not a third party prompt from elsewhere to get it)
    as that may be dated or you may have a newer -and- older Flash, and if so,
    the later one may not be in use. Within OS X you can choose the newer one.
    http://helpx.adobe.com/flash-player.html
    {see the links further down in the above linked page, should you have additional
    Mac OS X problems with Flash player or issues in general with installing it}
    Also, some of youtube can be run in HTML5 and depending on the author, should
    be visible even without a Flash player installed. youtube is a google product and
    they also have a help section for dealing with their content. And browser settings
    may affect how things work. Depending on what browser you use, this varies.
    Good luck & happy computing!

  • Why java doing this?

    Hello !!
    Kindly have a look at following code.
    On reaching STEP A, it is having a conflict between calling two method even though the method signatures of both the methods are different.
    Why?
    Regards,
    Chetan Parekh
    interface A
         void display(String s);
    interface B extends A
         void display(String s, char c);
    class X implements B
         public void display(String s)
              System.out.println(s);
         public void display(String s, char c)
         System.out.println(s + c);
    class testInterface2 extends X
         public static void main(String[] args)
              System.out.println("Hello World!");
              testInterface2 xxx = new testInterface2();
              xxx.display("Abhishek", 'V'); // this should call display(String s, char c)     (STEP A)
              xxx.display("Abhishek", 78);     // this should call display(String s, int i)     
         public void display(String s, int i)
              System.out.println(s + i);
    }

    There are three overloaded versions of a method 'display' in the code viz.
    public void display(String s)
    public void display(String s, char c)
    public void display(String s, int i)
    When we call
    xxx.display("Abhishek", 'V');
    ideally this should call the method
    display(String s, char c)
    but instead it is not compiling stating that there is a conflict between
    public void display(String s, int i) and public void display(String s, char c).
    Why is it so?

  • Why is does the search query box collapse in  Acrobat CS4

    In the last few weeks or so, when  I try searching for text in a pdf document in Acrobat CS4  the usual search query box that is supposed to pop up is "collapsed" - see the attached diagram. (In css language it looks like a collpased dv tag) There is no place to enter text and a strange drop shadow effect emerges? Has anyone else experienced this problem? Have any suggestions about how to resolve it?
    Thanks
    John

    OK I solved my own problem by removing the acrobat preference file and restarting Acrobat. I should have thought of a corrupt preference file before I asked
    cheers
    john

  • Mac users left in the cold... once again

    Why is it that PC iTunes users can playback a lot more formats then mac users?
    Why can a PC user playback or import a wma file and we can't? I mean I understand that it's a microsoft codec but that's what things like flip4mac are for, aren't they?
    I also think it's a shame that emerging popular formats like flac, ogg vorbis, ape, etc... are not supported, not even for importing. A big MINUS for Apple if you ask me. I even have some AAC files that iTunes doesn't recognize, even though quicktime does ?!?!?!?! (I thought at least they were using the same codecs...)

    Well I'm sorry but I've tried all the links and I thought this would be the best place to express myself.
    You might read the Terms of Use (link on the right side of this page).
    These user-to-user forums are for technical questions (concerning soft- and hardware) only.
    A lot of fellow users are willing to reply if you have such a question.
    If you want to express yourself or give an opinion, these forums are not the place for that.
    Doing so will get this topic locked or deleted.
    Various other discussion groups allow you to express yourself or give an opinion.
    If your computer is still covered by your AppleCare Protection Plan, you can get (free) official help there.
    If not, you have to pay € 39 per incident, or visit an Apple Center (there are two of them in Amsterdam). Maybe they are willing to answer a question during the 'silent hours'.
    Unfortunately, there are no Genius Bars (yet) in NL.
    These Discussion forums are also a great place for asking questions.
    The combined knowledge and experience of all users often goes far beyond the knowledge of official support people.
    Again, if you have a feature request, keep sending those forms (I do).
    If you have a complaint, you could drop 'Apple Computer Benelux BV' a note.
    Address on this page.
    There's no phone number, Im afraid.
    M
    17' iMac fp 800 MHz 768 MB RAM     Mac OS X (10.4.7) Several ext. HD (backup and data)

  • What exacly does filtering by the "like" operator do?

    I'm using Apex 3.1 and in my interactive report I'm using the "Filter" option from the action menu. What exactly does the "like" operator do?
    For example if I have a string "male" does the like operator search for all words
    %male
    male% or
    %male%
    Thanks!

    If you test it out you will see that the IRR simply wraps whatever you enter into standard SQL syntax. So, selecting 'Job' 'like' and entering 'MAN' returns no rows against the EMP Table. Changing that to 'Job' 'like' 'MAN%' returns 'MANAGER's and 'Job' 'like' '%MAN' returns 'SALESMAN's (excuse the improper grammar). Your users need to put the % where they want the wildcard. We also mention it in the Help available off the Actions Menu - "The expression is case sensitive and you can use % as a wild card (e.g. STATE_NAME like A%).
    Hope that helps -
    -- Sharon

Maybe you are looking for

  • Possibility of addition creation time in the sales order over view screen

    Hi, Is there a possibility of adding the creation time in the sales order overview screen in VA01/2/3. thank you

  • "Could not save as a PDF because of a program error"

    Saving a Photoshop file as a PDF for emailing to someone else has always been complicated by the number of choices to be made, and now it's become impossible. Every time I try it now, I get this message, and I have to send a jpeg instead. I've tried

  • No black

    I have replaced the black cartridge twice, but there is no black printed. Have also done everything suggested in the forum. Now I have taken the printer apart and soaked the printhead in hot water, but that didn't work either. Is it possible to buy a

  • When will the ability to save progress be available?

    I have a form that I want to use in Forms Central but it is rather long so I need the ability to save option.  Any ideas on the timeline? Thanks Valerie

  • Unable to find OEM registration infos in preferences wizard

    I'd like to register OEM configuration informations in OWB (9.2.0.2.8) running on Solaris 2.8 and 9.2.0.3 Database. I have no tab dedicated to OEM registration in my preferences wizard...how to fix it ? + is there any way to export job scheduling and