Autoboxing does not work in Vector.add(x) context?

Hello,
I wondered about this bit of code today:
Vector<Long> data = new Vector<Long>();
long l = 10;           
data.add(l);On the add method I get the error message "The method add(Long) in the type Vector<Long> is not applicable for the arguments (long)"... I mean, isn't this what autoboxing was meant for? I still have to use data.add(new Long(l)); to get it to work.
Casting to Long, such as add((Long)l) doesn't work either, though it explicitly tells the compiler that we expect an object here (as if this were necessary...)
Now, who is getting it wrong - me or the compiler? ;-) I am using the JDK 1.5.0, of course, and the Eclipse 3.1 IDE; maybe it's a problem of the IDE also.
Thanks for answers,
kind regards, Leo

Thanks for the reply.
It seems that the Eclipse parser does not fully support autoboxing.
Concerning the confusing variable name: this is not a live code snippet, but a made-up example.
Greetings, Leo

Similar Messages

  • FYI: Setting OLE DB for OLAP does not work in BW Add-On Frontend Patch 402

    The setting for property 'Allow External Access for this Query' (OLE DB for OLAP) for a BEx query is not being saved when patch 402 for GUI 720 is used. There is no warning or error message. It works in patch 401 and hopefully as well in the upcoming 500.
    This impacts all external use of BEx queries, including access from Business Objects. By the way, a universe connection to the query will still function after the property setting is gone, but a new connection cannot be created as the query is not visible anymore.
    Regards,
    József Zérczi.

    Hallo Christian,
    Please see note 1587566 where it states:
    When uninstalling with the command line options "/uninstall /all", the event
    scripts of installed packages, which are defined to run on uninstall, are now
    executed.
    Recommend to update your installation server to the latest nwsapsetup patches referenced in the attached note http://service.sap.com/sap/support/notes/1587566
    Best Regards,
    Jude

  • Why ribbon XML does not work in Excel 2007?

    I installed 4 VSTO Excel add-ins on an Excel 2007 PC today. The two that use a visual designer ribbon worked fine. But the 2 that use a Ribbon (XML) did not. The add-in starts ok. But the ribbon does not show. Why would that be?
    I wrote two more add-ins to demonstrate the problem. One puts an OK button on the ribbon using the visual designer. That add-in installs on the excel  2007 PC and works as it should. But the 2nd, an add-in that uses Ribbon (XML) to put a button on the
    ribbon, does not work.  The add-in does not display on the ribbon.
    Here is the code of the Ribbon (XML) add-in project.  How to get a ribbon (XML) ribbon to display in excel 2007?
    thanks,
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Xml.Linq;
    using Excel = Microsoft.Office.Interop.Excel;
    using Office = Microsoft.Office.Core;
    using Microsoft.Office.Tools.Excel;
    namespace ExcelAddIn4
    public partial class ThisAddIn
    private void ThisAddIn_Startup(object sender, System.EventArgs e)
    private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
    protected override Office.IRibbonExtensibility CreateRibbonExtensibilityObject()
    return new Ribbon1();
    #region VSTO generated code
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    private void InternalStartup()
    this.Startup += new System.EventHandler(ThisAddIn_Startup);
    this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
    #endregion
    <?xml version="1.0" encoding="UTF-8"?>
    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
    <ribbon>
    <tabs>
    <tab idMso="TabAddIns">
    <group id="ContentGroup" label="Content">
    <button id="Button1" label="ok" screentip="Text"
    onAction="Button_OnAction" supertip="Inserts text at the cursor location"/>
    </group>
    </tab>
    </tabs>
    </ribbon>
    </customUI>
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Reflection;
    using System.Runtime.InteropServices;
    using System.Text;
    using System.Windows.Forms;
    using Office = Microsoft.Office.Core;
    // TODO: Follow these steps to enable the Ribbon (XML) item:
    // 1: Copy the following code block into the ThisAddin, ThisWorkbook, or ThisDocument class.
    // protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject()
    // return new Ribbon1();
    // 2. Create callback methods in the "Ribbon Callbacks" region of this class to handle user
    // actions, such as clicking a button. Note: if you have exported this Ribbon from the Ribbon designer,
    // move your code from the event handlers to the callback methods and modify the code to work with the
    // Ribbon extensibility (RibbonX) programming model.
    // 3. Assign attributes to the control tags in the Ribbon XML file to identify the appropriate callback methods in your code.
    // For more information, see the Ribbon XML documentation in the Visual Studio Tools for Office Help.
    namespace ExcelAddIn4
    [ComVisible(true)]
    public class Ribbon1 : Office.IRibbonExtensibility
    private Office.IRibbonUI ribbon;
    public Ribbon1()
    public void Button_OnAction(Office.IRibbonControl control)
    MessageBox.Show("Button_OnAction");
    #region IRibbonExtensibility Members
    public string GetCustomUI(string ribbonID)
    return GetResourceText("ExcelAddIn4.Ribbon1.xml");
    #endregion
    #region Ribbon Callbacks
    //Create callback methods here. For more information about adding callback methods, visit http://go.microsoft.com/fwlink/?LinkID=271226
    public void Ribbon_Load(Office.IRibbonUI ribbonUI)
    this.ribbon = ribbonUI;
    #endregion
    #region Helpers
    private static string GetResourceText(string resourceName)
    Assembly asm = Assembly.GetExecutingAssembly();
    string[] resourceNames = asm.GetManifestResourceNames();
    for (int i = 0; i < resourceNames.Length; ++i)
    if (string.Compare(resourceName, resourceNames[i], StringComparison.OrdinalIgnoreCase) == 0)
    using (StreamReader resourceReader = new StreamReader(asm.GetManifestResourceStream(resourceNames[i])))
    if (resourceReader != null)
    return resourceReader.ReadToEnd();
    return null;
    #endregion

    Hello Steve,
    Most probably you have got an error in the ribbon XML markup. See
    How to: Show Add-in User Interface Errors for more information.
    I have noticed the following xml namespace:
    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
    Use the following one instead:
    <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
    Also make sure that specified idMso values exist in Office 2007.
    You can read more about the Fluent UI (aka Ribbon UI) in the following series of articles in MSDN:
    1.
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
    2.
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
    3.
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)

  • My youtube does not work on safari only when i try to play a video it says "This video is not available on mobile add to playlist" But i am using a mac air 11 inch it is not a mobile. Please Help. i have to use the youtube on firefox or chrome

    my youtube does not work on safari only when i try to play a video it says "This video is not available on mobile add to playlist" But i am using a mac air 11 inch it is not a mobile. Please Help. i have to use the youtube on firefox or chrome. At times it also say QuickTime Player can't open "video.3gp". and
    The file may be damaged or may not be a movie file that is compatible with QuickTime Player. when i try to open a video on youtube on safari

    I too am having the same issue as the OP.
    Your USER AGENT information is Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18
    Every webserver that receives a request from your browser is able to determine the HTTP USER AGENT information unless it has been removed by some software (e.g. firewall) before the request was trasmitted.

  • I DON'T WANT TO UPGRADE OR HAVE AN ADD ON EVER, DISABLING UPDATES DOES NOT WORK, HOW DO I KILL ALL MEASAGES FOR UP GRADES AND ADD ON'S FOR EVER, ONCE AND FOR ALL, COMPLETELY, THE END AND NEVER BE BOTHERED AGAIN EVER!

    I DON'T WANT TO UPGRADE OR HAVE AN ADD ON EVER, DISABLING UPDATES DOES NOT WORK, HOW DO I KILL ALL MESSAGES FOR UP GRADES AND ADD ON'S FOR EVER, ONCE AND FOR ALL, COMPLETELY, THE END AND NEVER BE BOTHERED AGAIN EVER! ALSO IF I KILL MYSELF I WILL HOLD YOU PERSONALTY RESPONSIBLE.edit

    There is a world of information in these forums if you use the search function near the top right of this page. Just type in NAS for example and you get many threads on the subject (marked with a green checkmark if it solved the question) another example would be Airport Exterme and sound system. Once you formulate your ideas better then specific questions can be addressed one at a time. You may find that a less expensive choice for a server might be a mac mini. Good luck with your project, ask more specific questions and update you systems profile.

  • Adobe flash does not work on bootcamp windows 2002 xp. down loaded to windows. works with Mac. No program folder for such. shows up in "add delete programs" (in setting) but without a file size. I have a MacBook Pro purchased new in June 2010.

    Using bootcamp (windows 2002 xp) I down loaded adobe flash player from the windows platform. told me it installed successfully. however does not work in windows, does works in mac. in xp there is no created program folder for such or created short cut. In the control panel (xp) in add/delete programs it is listed but wihout any file size or frequency used. I've deleted & reinstalled numerous times. Mac OS is 10.6.8. Windows is 32 bit. Can't find a thing that discusses this. THANKS!

    I just now posted it Adobe Flash Player 17.0  -  Bug 3973913
    Adobe Flash Player 17.0  -  Bug 3973913
    Adobe Flash Player 17.0  -  Bug 3973913
    Adobe Flash Player 17.0  -  Bug 3973913

  • How do I add album artwork in itunes 11.1.3.8? Copy and paste in artwork window on bottom right does not work.

    How do I add album artwork in itunes 11.1.3.8? Copy and paste to artwork box on bottom right in get info screen does not work.

    You can only join tracks when importing from a CD and likewise, the Options button is also only visible when importing from CD.
    When the CD is in the drive and showing in iTunes, you will see Options, CD Info and Import CD choices. If you select Options, the Join CD Tracks option only appears when you have two or more adjacent tracks selected. See the screenshots below:
    and

  • I would like to create the a swatch, add it to the library and import to the swatch panel.  The help pages available relate to earlier versions of Muse, which does not work with the 2014.2 release version that I have.  I have created a library folder, imp

    I would like to create the a swatch, add it to the library and import to the swatch panel.  The help pages available relate to earlier versions of Muse, which does not work with the 2014.2 release version that I have.  I have created a library folder, imported the colour swatch as just 4 colours as a mulib file.  I drag the four colours on to the muse page in design view but that is as far as I get.  Can anyone help?  Thanks

    I don't know since I don't share anything. You'll have to peruse the help files and check the permissions and ACLs on the Shared folder. According to the permissions on the Shared folder everyone can R&W. If you want those to be inherited by everything dropped into the folder, add an ACL for
    everyone allow read, write
    Details in the manpage for chmod. The actual steps are left as an exercise.

  • The add work button for behance does not work. how to fix this?

    I cannot publish to Behance the add work button does not work. I also cannot upload work to Adobe Voice Either. Why is this happening? I see my comrades uploading work.

    Sorry to hear that! To resolve this quickly, submit a ticket here so that we can give you one-on-one support: https://behancenetwork.zendesk.com/anonymous_requests/new
    Off the bat, if you're having this issue on several products, it might be an issue with your computer or browser settings. We'll help in the ticket!

  • Adobe acrobat add ons does not work with latest firefox

    I have been using firefox because of my adobe acrobat add ons.. I alwasy convert pages to adobe pdf using my acrobat. It works with firefox 4.0 but it does not work anymore with latest firefox.
    Can you help me with this?

    Maybe if you read about privacy, policy and sharing of data you'd change your mind. But it was reported that it appeared to work if you used something like the "Add-ons Compatibility Reporter".
    You can force 5.0 "compatibility" with the "[https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/ Add-on Compatibility Reporter]" extension, or with [http://kb.mozillazine.org/Extensions.checkCompatibility extensions.checkCompatibility] using about:addons.
    * http://kb.mozillazine.org/Problematic_extensions

  • My program does not work properly. I run the program but it is not capable of adding any of my ebooks and when I connect my ereader, it recognises the device but  it does not add any ebook either.  I uninstalled the program and reinstalled again but nothi

    my program does not work properly. I run the program but it is not capable of adding any of my ebooks and when I connect my ereader, it recognises the device but  it does not add any ebook either.
    I uninstalled the program and reinstalled again but nothing gone better-
    What should I do?
    Best regards

    Do you have Logitech gaming software installed on the PC? If so, perhaps try the suggestion from the following post:
    Re: Everytime I close Itunes it loads back up

  • I am using FF 5.0.1. The English spellchecker add on does not work.It will underline the misspelled word but does not give you the correct spelling choice.

    I did not upgrade to 4.0 because I did not like it.I thought I was upgrading finally to 4.0 assuming at this date they had fixed all the bugs and updated the add ons.
    I downloaded the latest version and love it, love it except the one add on that I use more than anything does not work properly.:-(
    Please notify the developer of this issue.

    "SafeBrowser'',
    No it does NOT show up as I said before the ONLY option is "paste" there are NO suggestions showing up.
    As I said before,I have used this same add on for many years and earlier versions and have had no problems until version FF5.01.
    ''cor-el'',
    I have already done all that prior to posting here.
    Even as I type this response the spell check add on puts a red squigly line under your screen names but does not give me any suggestions.
    I am frustrated beyond belief because I am a faithful and dedicated user of this browser and I am going to just roll back to a older version until this silly issue is resolved.
    I appreciate all your help but I suppose until the person who developed this add on does something to make it compatible with FF5.01 I will not be using it.
    I apologize for any misspelled words but my spell check extension is not working properly. :-(

  • "Add to Shooping cart" button does not work when changing Product Category

    Dear all, we are running SRM 4.0 Classic scenario and we have a strange problem with Product Category field. When click on the "Describe Requirement", it opens the shopping cart page with the Product Category field and the default value is coming from favorites. As long as you dont change this value , enter the other fields and click on the "Add to shopping cart" button, then it works. If the users try to change this value on this page to select a different value from the drop down, then the "Add to Shopping Cart" button does not work. Has anyone encountered this problem before. Users are getting frustrated with this behaviour. Any help to fix this issue is appreciated. Thanks in advance.
    Regards
    Gabriel Bertrand

    Dear Disha, this is what is the behaviour.
    Suppose, if for a particular user, there are 4 items listed as favorites in the Product category and one of them is a default value. If you don't make any changes to this value and then click on Add to Shopping Cart, it works. If you try to select a different value other than the default from the favorites, then the Button does not do anything.You click on it nothing happens and cannot go to the next page. Also all the links are disabled (ie Describe Requirement / Old Purchase Order and Template)
    If we dont change the value for Product category and go to the next page (with default value) and then change the Product category here, it works (Continue button works and were able to Order or Hold).
    Thanks
    Regards
    Gabriel

  • Add-on does not work

    Hi folks
    I downloaded some Add-ons for Photoshop cc2014, they are visible in the Extension Manager and displayed as "active", but I can not find them in Photoshop under: (Window> Extensions), where the should be
    The area remains grayed out, no matter what I do [... and I've been doing for over an hour :-((( ].
    Who may have an idea for me - what does not work there?
    cheers Gerhard

    hi,
    LCD monitor dont have anything to do with the addon. in every version of SBO there is compatible add for it. so if you had upgraded your SBO recently, Gordon is right, you need to let the partner to recompile the addon and test it.
    regards
    fidel

  • After Installing Lion, Ical does not work.  I cannot print, I cannot add an event, etc.  How do I reinstall?

    Since installing Lion OS, iCal does not work.  I cannot add an event, print calendar, etc.  How do i reinstall?

    You can use Lion Recovery
    Before you do that, go to ~/Library/Preferences
    Move the com.apple.iCal.plist file from the Preferences folder to the Trash.
    Restart your Mac.
    See if you can print or add an event now.

Maybe you are looking for