Generic and checked collections

Yet another problem.
This afternoon, i try to use checked collection
(Collections.checkedMap(...)) with a parameterized type
of parametrized types.
Examples :
Map<String,Integer> map=Collections.checkedMap(
new HashMap<String,Integer>(),String.class,Integer.class)
this example works but
Map<Class<?>,EnumSet<MyEnum>> map=Collections.checkedMap(
new HashMap<Class<?>,EnumSet<MyEnum>>(),Class<?>.class,EnumSet<MyEnum>.class)
because the grammar does not permit to declare "parameterized class dot class",
like Class<?>.class so i can correctly types arguments of checkedMap.
so i have to use an ugly workaroud using raw types :
Map<Class<?>,EnumSet<MyEnum>> checkedMap=
(Map<Class<?>,EnumSet<MyEnum>>)(Map)Collections.checkedMap(
(Map<Class,EnumSet>)(Map)map,Class.class,EnumSet.class);
I my mind :
A.class is typed Class<A>
A<?>.class is typed Class<A<?>>,
the later notation is mandatory because lot of methods like checkedMap()
use this pattern :
m(T t, Class<T> clazz)
R�mi Forax

A<B>.class, If this would be allowed, IMHO this should be equivalent to
(Class<A<B>>) A.class
But the latter does not compile: incompatible types
Why? I expected an unchecked cast warning.

Similar Messages

  • Anyone have the problem I'm having with the Safari collecting cookies even when I'm not on a website?  I cleaned everything out and checked several times.  Each time cookies were added that I've never seen with my older version of Safari.  I have the bloc

    Anyone have the problem I'm having with the Safari collecting cookies even when I'm not on a website?  I cleaned everything out and checked several times.  Each time cookies were added that I've never seen with my older version of Safari.  I have the block third parties and advertisers but I don't think it works.  Here's a sample of what is popping up:  247realmedia.com, 2mdn.net addthis.com, admeld.com, adsafeprotected.com, adsonar.com, bit.ly, bluekai.com, bluelithium.com, bluetoad.com bondware.com.......... over 100 things without a clue where they are coming from.  Especially since I'm not on any webpage!  How do I report a bug?  Is there a way to fix this?  

    Firefox + NoScript, BetterPrivacy, Ghostery, AdBlock Plus, Click&Clean helps.
    Hidden Flash cookies are stored in "Macromedia" Folders on your computer, can delete using the free Easy Find, but need to reinstall Flash again here
    http://www.macupdate.com/app/mac/11076/easyfind
    http://get.adobe.com/flashplayer/
    OnyX run afterwards All the cleaning and maintenance steps followed by a reboot, followed by a Disk Utility erase free space.
    http://www.titanium.free.fr/
    CCleaner is in beta for OS X, can combine the cleaning and secure erase in the same steps if properly configured.
    http://www.piriform.com/mac/ccleaner
    Ideally, to surf XXX sites, one should use a virtual machine software like the free VirtualBox and a ISO of Linux like MacBuntu,
    https://www.virtualbox.org/
    http://www.oslike.se/
    comes with Firefox and Flash is available in the Ubuntu Software Center, create a "snapshot" of this virtual machine to revert back too after surfing. This dumps everything hidden or malware related in the guest OS, scrub the drive if you wish with Disk Utility Erase free space option.
    HTML 5 has introduced a whole new range of tracking ability, you can search for the details online.
    Flash cookie, everycookie, HTML cookies. Google has trackers all over the internet, they record your computer info and all your searches, ISP's record all your IP traffic and keep it for a year, cell carriers track your location via tower and signal triangulation (even non-GPS/smartphones) and keep the results for 6 months and both turn over everything to governments. In fact Uncle Sammy has NSA backrooms on the Internet backbone capturing the traffic in real time.
    http://yro.slashdot.org/story/11/03/26/179257/German-Politician-Demonstrates-Ext ent-of-Cellphone-Location-Tracking
    Turn off Java. Run with little or no scripts. (NoScript)
    SSD drives can't be securely erased as this would wear them out prematurely, the government and police have a portable device from Cellbright they can attach to over 3000 phones and grab the data and password with.
    http://hardware.slashdot.org/story/11/02/17/1911217/Confidential-Data-Not-Safe-O n-Solid-State-Disks
    http://www.thenewspaper.com/news/34/3458.asp
    Creepy program track you by pictures you took
    http://www.thinq.co.uk/2011/3/30/creepy-app-warns-end-privacy/
    Apple trying to patent new spyware
    https://www.eff.org/deeplinks/2010/08/steve-jobs-watching-you-apple-seeking-pate nt-0
    http://betanews.com/2011/04/20/apple-tracking-location-of-ios4-device-users-rese archers-say/
    Each computer has a unique ID and a MAC addrress on file with Apple, Java gives up this information with a simple script on websites
    Also look here and freak out.
    http://www.whatsmyip.org/more/
    You can't win, the government, advertisers, social sites, search engines and devices makers are all in cohoots to profile everyone.
    Live off the grid and have your freedom or tell everyone your business and let them mold you, there is no "in between", try as you may they just come up with new stuff to watch you, through your web cam, via the hidden microphone and even can turn on some cell phones microphones too.
    You may be paranoid, so is the government, and they got more money, power and resources at their disposal to act on it.
    Erase the whole hard drive and reinstall, if you can't do that, trash the entire machine and go read a book.
    https://discussions.apple.com/message/16276201#16276201
    (ps. that was fun, enjoy the paranoia because they ARE watching you.)

  • Improvements in Oracle SCM Check Out and Check In mechanism (better Oracle

    Oracle SCM - the Software Configuration Manager – provides the backend source code control services for Oracle Designer. It offers among other things functionality for Version Control: Check In, Check Out, Branching and Merging and it records Check In/Out notes, Version Labels and ‘version events’. In comparison with several other tools for version control, it has a few oddities or lacks some functionality that might have been very handy. It turns out that most of that functionality can be created fairly easy, with additional triggers on the Oracle SCM tables. I have demonstrated in a previous post how two of these additional pieces of functionality can be implemented: Building Check In protection into Oracle Designer/Oracle SCM - Check In only by the user that did the Check Out (http://technology.amis.nl/blog/index.php?p=784). I intend to write further articles to demonstrate implementations of all others enhancements listed in this post: http://technology.amis.nl/blog/index.php?p=799.
    Please let me know - through comments on that Blog article - if you are interested in any of the mentioned enhancements.
    best regards,
    Lucas

    The first query points to many threads where a similar question has been asked. You can change the query search words to get more hits.
    If you are looking specifically for OM, it will also help if you network with some non-IT guys to understand how, in general, Order Management is used in various industries. You can talk to Order Entry clerks to understand order taking process (such as customer calls, they create a quote, customer approves, quote is turned into order), you can talk to Warehouse personnel to understand order shipping process (Such as order ship date nears, they run a report to find which orders need to ship in the next x days, they generate pick tickets to get material, they generate packing slips, generate invoices, shipping notices etc.)
    Talk to some AR folks to understand credit processes and invoice /collection processes.
    These folks don't have to use Oracle. What you are looking for a generic understanding of how the business /processes work.
    Sandeep Gandhi

  • Generic CSV log collection Rule not pulling all records

    Hi,
    I created a Generic csv log collection rule with details as follows:
    Target: Windows Computer
    Directory: D:\async
    Pattern: Async*.csv
    Seperator: ,
    Expression: Params/Param[1]-matches wildcard- *
    Problem is the Csv file has around 50000 records whereas in the eventview of that rule it only shows 16853 records. I also tried with following SQL query but same results.
    select * from event.vEvent
    where EventNumber=0
    (Since this is the only csv rule I've created & I dont have any records with event 0 hence using eventnumber 0)
    I've verified first column of csv file (i.e Param[1]) doesn't contains blank records. Tried deleting & recreating Rules + CSV files but no luck.
    Please help. 

    Hi,
    As we can see all csv files that start with "Async" under D:\async foler will be collected.
    How many this kind of file exist under the directory?
    Would you please creat another simple Async.csv file and remove the original file to another folderto do a test.
    In addition, also hope the below article can be helpful:
    Monitoring Text and CSV log files in System Center Operations Manager
    http://support.microsoft.com/kb/2691973
    Regards,
    Yan Li
    Regards, Yan Li

  • Items greyed out after upgrading and migrating to Sharepoint 2013 - Open and Check Out + Manage Document Option

    Hi there,
    Following a migration to SharePoint 2013, the follow options have been disabled (Open and Check out + Manage) (see below). These are critically important functions and make it very hard to make SharePoint a useable interface. Any guidance on how to resolve
    these issues is greatly appreciated. This is not a branded website, and there has been no changes made to the standard interface.
    Kind regards
    Jarrad Koppen

    I'm not sure what the easiest way is either.  First, I would try to create a new site collection with a new library and see if you get the same behavior.  If not, then its something in the upgrade process.  If it does that also would point
    to something being wrong in the way that javascript is being executed.
    If it is happening everywhere I suspect you'll have to start tracing javascript using something like IE developer's toolbar to see why the status on those buttons isn't changing when you select a document.  I'm not sure what else to suggest.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Can't download the latest iTunes. A window pops up... The update could not be verified. It may have been corrupted or tampered with during downloading. The update will be downloaded and checked again the next time that Software Update runs. No iTunes now.

    Can't download the latest iTunes. A window pops up... The update could not be verified. It may have been corrupted or tampered with during downloading. The update will be downloaded and checked again the next time that Software Update runs.
    Now, iTunes won't launch and can't be updated. Please help.
    If I have lost my music collection I will be switching platforms ASAP. It is insane that Apple has updates seemingly every day for their products.

    I was in your same situation with 14 downloads and 14 attempts. 
    You have to make sure that your Mac is booting into 64 bit mode.  You can make sure of this by going into System Preferences and scrolling down to 'Software' and making sure that you are booding with 64 bit Kexts. 
    If not, restart while holding the 6 and 4 keys down until you see the spinning gear wheel and try installng again. 
    BUT, what I also did was to go into Applications, click on the Lion installer, Get Info, and give yourself custom priviliges to Read And Write. 
    I did this simultaneously, and I don't know what function did it, but it worked for me, with no further downloads of the installer. 
    Good luck! 

  • Advance check payment and check bounce

    Hello All,
    Am working with a Pharma Client and the Scenario is Like ....
    Advance check payment and check bounce - Normally in bussiness when the material is selling to the stockist Client will collect  the advance post dated checks from the stockists as per Client credit policy, if the stockist issued check got bounced the stockist will be in risk category and sales order should be blocked automatically by SAP system. When the next transaction is doing with the same customer system should not allow the check payment & it should allow only demand draft.
    Please suggest me how I will map this in sap credit management
    Regards]
    Venkat

    Currently, if any cheque is bounced, where it has been recorded in SAP ??  You have to consider that field and have to try with any of the following user exits which are related to credit management.
    a)  LVKMPFZ1: USER_CREDIT_CHECK1
    b)  LVKMPFZ2: USER_CREDIT_CHECK2
    c)  LVKMPFZ3: USER_CREDIT_CHECK3
    If I am correct, only through some text maintained in FI, you can conclude whether a cheque is bounced or not.  So may be you can think of some date field which is currently considered for due for presentation.
    G. Lakshmipathi

  • Collective and NOn-collective order fields???

    i am not able to find which table contains Collective and Non-collective orders field in Production Order Change (CO02)???

    Hi,
    Please check the table AFKO.
    If AFKO-LEAD_AUFNR is same as AFUK-AUFNR, then it is collective Order.
    if AFKO-LEAD_AUFNR is blank or space, then it is normal Order.
    If you want to check whether the material is collective or not, you can find the same in MARC-SOBSL = 52.
    Hope this is useful response for your query.
    Thanks
    Lakshmi

  • Alerts - All Metrics Errors - Health Check - Collection Failure

    I have database instances with Health Check - Collection Failures.
    These errors are almost 30 days old. I originally received the Health Check errors because the credentials were not set properly. I then set them but the errors have not aged out.
    Does anyone know how can I clear out the Health Check errors?
    When I look at All Metrics, Health Check for one of these databases, the Last Upload date is very old.
    Maybe I can I force a re-collection?

    Hi ,
    I had the same problem and posted the same ...question...
    So , the link will help you to solve the problem
    Clear the Alert list
    unless somebody else has another idea...!!!!!!!!!!!
    Regards and hope this will help,
    Simon

  • Problem when enterring punctuation in Metadata and Smart Collections

    It seems that Lightroom isn't applying the same logic to punctuation enterred in metadata and smart collections. For example:
    Create a photo with City set to "D'Hanis". Just type those keys, LR will replace the simple straight appostrophe with a nicer angled one. And yes, there is such a town--I have many relatives from there.
    Now create a smart collection matching City is "D'Hanis" (again, just type that from the keyboard). In this case the ' character seems to be left as the plain ASCII version. This also means that the smart collection will not match the metadata.
    Workaround is to select a relevant image, select the metadata and copy it to the clipboard (Ctrl-C), and then paste that value into the smart collection dialog box so that the smart collection is truly searching for the value in the metadata.

    Hi,
    At any case the two headers will not be displayed if you select the both "start of table" and "at page break.". Please check whether there is another widow in the form from where the header is displaying.
    Thanks ,
    Abhijit

  • Lightroom for iPad app keeps saying Checking Collections even though I had sync'd photos

    I download the LR app for my iPad and sync'd a bunch of photos.  Then my Trial period expired and so I paid the fee.  But now, when I go into the App, it just states "Checking Collections..." and nothing happens.  Can anyone assist me here?
    Thanks,
    Craig

    TThe same thing happened to me a few days after installing the app. It seems that once the connection is broken, the Mobile collections simply disappear. I also had this happen when I booted my desktop and tried syncing the second time (oddly, not the first). LR told me it was trying to sync a different catalog. Thinking it was referring to the Mobile catalog (collection?) I clicked ok. My collections once again disappeared.
    Seems the Mobile collections are "fragile"? Until Adobe gets the direction all the mobile apps are moving in totally figured out, I'd suggest making LR originated copies back into your ios camera roll. At least then rebuilding won't be so frustrating. Really hoping they link LRM and PS Touch in Creative Cloud. That seems like A very logical next step and would make workflow intuitive and very useful on the run.

  • Warnings  Pool or cluster table selected to check/collect statistics

    Dear all,
    I am getting error in in db13 backup.
    We are using Sap Ecc5 and
    oracle 9i on Window 2003.
    Production Server I am facing problem suddenly in db13 the UpdateStatsEnded with Return code:    0001 Success with warnings   
    BR0819I Number of pool and cluster tables found in DDNTT for owner SAPPRD: 169
    BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.EPIDXB
    BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.EPIDXC
    BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.GLSP
    BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.GLTP
    BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.KAPOL
    BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.KOCLU
    BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.M_IFLM
    BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.VBCLU
    BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.VBFCL
    And in db02      
    Missing in R/3 DDIC  11   index
    MARA_MEINS
    MARA_ZEINR
    MCHA_VFDAT
    VBRP_ARKTX
    VBRP_CHARG
    VBRP_FKIMG
    VBRP_KZWI1
    VBRP_MATKL
    VBRP_MATNR
    VBRP_SPART
    VBRP_WERKS
    Please guide steps   how to build index  and Pool or cluster table problem.
    Thanks,
    Kumar

    > BR0819I Number of pool and cluster tables found in DDNTT for owner SAPPRD: 169
    > BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.EPIDXB
    > BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.EPIDXC
    > BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.GLSP
    > BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.GLTP
    > BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.KAPOL
    > BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.KOCLU
    > BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.M_IFLM
    > BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.VBCLU
    > BR0871W Pool or cluster table selected to check/collect statistics: SAPPRD.VBFCL
    Upto Oracle 9i the rulebased optimizer was still used for Pool/Clustertables for reasons of plan stability (e.g. always take the index).
    To ensure that this is the case, these tables/indexes mustn't have CBO statistics.
    Therefore these tables are usually excluded from getting CBO statistics via an DBSTATC entry. You can modify this setting in transaction DB21.
    > And in db02      
    >
    >
    Missing in R/3 DDIC  11   index
    >  MARA_MEINS
    >  MARA_ZEINR
    >  MCHA_VFDAT
    >  VBRP_ARKTX
    >  VBRP_CHARG
    >  VBRP_FKIMG
    >  VBRP_KZWI1
    >  VBRP_MATKL
    >  VBRP_MATNR
    >  VBRP_SPART
    >  VBRP_WERKS
    Well, these indexes have been setup just in the database and not (how it is supposed to be) via the SE11. As the indexes have a naming-scheme, that is not supported by the ABAP Dictionary, the easiest way to get away from the warnings is to check which columns are covered by the indexes, drop the indexes on DB level and recreate them via SE11.
    Best regards,
    Lars

  • Generic value check

    Hi all,
    I want to implement a generic value check. I have a table of name/value pairs (all chars) and I know, of which DDIC type the field is. So during runtime I do the following:
    assign value to <value> casting type (rollname).
    The thing is, that the assign doesn't throw any error, though the value is illegal for the DDIC type. I tested it with a date like '200612ab'.
    So, the question is, is there any way to perform a value check, or do I have to implement that one of my own?
    (I searched for cl_abap* classes, but couldn't find any proper).
    Thx!
    Nick

    Hello Nicolas,
    ABAP isn't type safe to domain value references if the data type referres to CHAR. Only a dynpro with user interaction will throw an error message on an illegal input.
    There are function modules to retrieve the allowed values, e.g. DOMAIN_VALUES_GET. You have to implemented such restriction by yourself.
    Best wishes,
    Florin

  • Every time I TRY to start firefox 18-19 I get an error message : Firefox has stopped working - close the program and check online for a solution - or - close ..

    Every time I TRY to start firefox 18-19 I get an error message : "Firefox has stopped working" - "close the program and check online for a solution" - or - "close the program" this happens TWICE every time I try to start firefox. Eventually after a random number of tries firefox will start normaly. I am useing firefox 19.0.2 now bit I belive it started when I upgraded to firefox 18 but am not sure, it might have been when I upgraded to firefox 19 ... but it has been happening for a very long time and I cannot find any helpfule solutions online.
    I have tried a Clean reinstall but it did not help.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Every time I TRY to start firefox 18-19 I get an error message : Firefox has stopped working - close the program and check online for a solution - or - close th

    Every time I TRY to start firefox 18-19 I get an error message : "Firefox has stopped working" - "close the program and check online for a solution" - or - "close the program" this happens TWICE every time I try to start firefox. Eventually after a random number of tries firefox will start normaly. I am useing firefox 19.0.2 now bit I belive it started when I upgraded to firefox 18 but am not sure, it might have been when I upgraded to firefox 19 ... but it has been happening for a very long time and I cannot find any helpfule solutions online.

    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!

Maybe you are looking for

  • Only Positive amount in Infotype 0015

    Dear Gurus, I want users to enter only positive amount for wage types in Additional Payment..... No negative amount should  be allowed for particular wage types in Additional Payment Can anyone help me out ? Regards Srijit R Menon

  • HT201272 There are no purchases on my iTunes

    I just upgraded my iPad iOS from 3.2.2 to 5.1.1.   I have never used iCloud but turned it on and signed in.  When I go to purchases it says there are none associated with my ID.  Should have $1000 worth of purchases!

  • Reports 10g batch

    We are making the move from 6i to 10g and to get started we have a report that we want to batch run from a python script to dump out a spreadsheet. My problem is that during the process rwrun crashes and doesnt create it. I can copy the line run from

  • UIComponent and serializable errors

    Puzzling problem, but maybe someone else has had similar....I had a blank page dynamicly populated with a set of checkboxs, textfields etc according to db parameters, and to access the entered values after user submission, i found i had to bundle the

  • Backup Radius on router

    I have the primary Radius server working just fine but when I stop the primary Radius server the backup radius server does not work, it fails over to the local password. I have included the config, does anybody have any idea why it won't fail over to