Mxmlc, fcsh and compc wildcards?

Has anyone tried to use wildcards * with the Flex command
line compilers? The Adobe documentation and several books say
wildcard paths are supported. But
compc -source-path C:\fex\stuff\src\ -include-classes *
-optimize -output ..\www\flash\swf\foo.swc
Gives the error: could not find the source for class *.
Am I crazy? Is there some other type of wildcard I don't know
of? Has anyone been able to get this to work?
Thanks for your help!

Hi,
One way you might ba able to acomplish this is when you are auto-generating your actionscript classes from Java, create a classes.as file.
package
internal class LinkClasses
    import mx.package.LinkClass;
Include this class in the compc include class.
This should alow the linker to pick up all classes very neatly.
Mike

Similar Messages

  • Is it possible to use an exact phrase and a wildcard in the same query

    I am building an address finder, and i have an option where the user can enter part or a full uk postcode. There is a ctxcat index on the address field. I am having a problem searching for part of the postcode, if i enter 'ZZ1 2*' it finds all ZZ1 and all house number 2's if i enter ' " ZZ1 2"*' it fails with an error, is this a bug or is it not possibl to use the exact phrasing and wildcard at the same time.
    If its not possible can anyone suggest another way round this query.
    Thank

    hi,
    in my table i have a column called address,
    these would contain something along the lines of these 2 records.
    10 high street anytown ZZ1 3ZZ
    3 bridge street anytown ZZ1 8ZZ
    If searching on the postcode, the user may enter ZZ1 3 at the moment this would bring back both records, the first one from the ZZ1 and the second one from the house number 3. however if ZZ1 3 is entered i am wanting to just search on the postcode, so it would only match on the first record. so i would like to put the double quotes round the "ZZ1 3" to match on the exact phrase, but then no records come back because of the two letters after the 3, this was why i am asking about the wildcards after the exact phrase ,atch, so it can match the exact phrase of 'ZZ1 3' but then allow any characters after that.
    hope this explaings my problem a bit better.

  • Problem: Mixed Exchange 2007 / 2013 CAS Servers with wildcard certificates in Europe and non-wildcard Certficate in China

    Hi,
    we have following problem. We have a mixed multi-domain one-forest AD environment. We also have still a mixed exchange 2007 / 2013 environment. We also have different CAS Servers for 2007 SP3 (RU15) and 2013 (CU8) in europe and one 2007 SP3 (RU15) CAS Server
    in China, because of bad connection to Europe. For the Migration to 2013 in Europe we installed a wildcard-certificate *.xyz.com and used the Set-OutlookProvider EXPR -CertPrincipalName msstd:*.xyz.com, so the wildcard certificate is accepted. Everything in
    Europe works fine, inside and outside also between exchange 2007 and 2013 (both CAS Server 2013 and 2007 use the same wildcard certificate). But since the change of the Set-OutlookProvider EXPR we are facing problems with our CAS Server in China, because this
    server has a different non-wildcard certificate and a different domain name (cas-server.xyz-china.com instead xyz.com). Now we have the problem that this Chinese CAS server the Outlook Anywhere does not work anymore and prompts always for the username. As
    I see it is because of the EXPR change. Is it possible to set the the Outlook-Provider EXPR per Cas-Server ? (They also have their own Autodiscover on this front-end server). Because I see that the Outlook-Provider can only be stored forest-wide.
    If not the other solution would be to register the chinese cas server in our xyz.com domain and use the same wildcard certificate on this system right ?
    Any help would be appreciate….

    Yes setting the EXPR value is most likely the cause of your issue.  When you set this value you are telling Outlook to only accept connections from connections that have the cert with the subject name you specify here.
    Unfortunately, based on my experience I believe this is an organization wide setting and cannot be configured on a CAS by CAS basis (If I'm wrong someone please keep me honest :)).  
    So the only option would you have is to change all the URLs to be on *.xyz.com domain.  There's no need to change the domain the server actually resides on.  The other option would be to purchase a UCC Cert with all the names you need and apply
    to all your CAS servers and reset the EXPR value. 
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread

  • Compiler.define in flex-config and compc

    I'm having an issue with compile time constants.  I'd like to define these constants in two places, but when I do the flex compiler forgets constants defined in my flex-config.xml (DEBUG::DEBUGGING and DEBUG::VERBOSE).  I am using flextasks.tasks in ant to build the project.
    In my build.xml:
    <target name="build-project" depends="init">
        <echo message="Building ${proj.swc.file}" />
        <compc output="${proj.target.dir.bin}/${proj.swc.file}"
            target-player="${proj.flashver}">
            <compiler.define name="INFO::VERSION_MAJOR" value="${proj.version.major}" />
            <compiler.define name="INFO::VERSION_MINOR" value="${proj.version.minor}" />
            <compiler.define name="INFO::VERSION_RELEASE" value="${proj.version.release}" />
            <compiler.define name="INFO::BUILD_TIMESTAMP" value="${proj.build.timestamp}" />
            <compiler.define name="INFO::BUILD_TIMEZONE" value="${proj.build.timezone}" />
            <load-config filename="${mx.sdk.dir}/frameworks/flex-config.xml"/>
            <load-config filename="${basedir}/flex-release-config.xml"/>
            <source-path path-element="${proj.build.dir.src}" />
            <include-sources dir="${proj.build.dir.src}" includes="**/*.as **/*.mxml"/>
            <!-- <compiler.external-library-path dir="${proj.build.dir.lib}" includes="*.swc" append="true" /> -->
            <compiler.external-library-path dir="${proj.target.dir.lib}" includes="*.swc" append="true" />
        </compc>
    </target>
    In flex-release-config.xml:
    <flex-config>
        <compiler>
            <debug>false</debug>
            <keep-generated-actionscript>false</keep-generated-actionscript>
            <verbose-stacktraces>false</verbose-stacktraces>
            <optimize>true</optimize>
            <define>
                <!-- Enables debugging mode -->
                <name>DEBUG::DEBUGGING</name>
                <value>false</value>
            </define>
            <define>
                <!-- Provides more information to the developer -->
                <name>DEBUG::VERBOSE</name>
                <value>false</value>
            </define>
        </compiler>
    </flex-config>
    If I compile using compc on the command line I can use -define+=NAME,value and it works.  Why is it not working using the compc task in ant?

    Try adding the append="true" attribute to the define elements. I'm not sure if this will work, but that's how it works (append="true" is the equivalent of +=) for other elements like external libraries.

  • BootCKCL.etl files and CompCS events

    I have been trying to parse the BootCKCL.etl file with the event tracing apis to track cpu utilization of processes over start-up. However when i do this i do not get any thread switch events. I do get a bunch of CompCS events that have an undefined structure.
    When i export this file with xperf i get a bunch of CSwitchedCached events witch contain the thread switching information i need. So my question is how is these CSwitchedCached events related to the CompCS events and are these data structures documented anywhere?
    Thanks for any help,

    As far as I know, there is no publishing utility tool in Internet to view the ETL logs. If you want to find the root according to the ETL logs, you'd better create a Microsoft support ticket to get more help.
    Of course you can post the ETL content here and other partners who read the forums regularly can either share their knowledge with you. Please do remember that hide the sensitive/privacy information when you post the log.
    Feel free to post back. Thanks.
    Tony Chen
    TechNet Community Support
    A new Office has arrived, try it now.
    A beautiful Start. It begins here. Windows 8 and Windows RT.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Event Tracing Events (BootCKCL.etl files and CompCS events)

    
    Not sure if this would be considered the correct place to post this request, however if anyone has any insight into this issue it would probably be someone who has experience with Kernel level event tracing and its data structures.
    I have been trying to parse the BootCKCL.etl file with the event tracing apis to track cpu utilization of processes over start-up. However when i do this i do not get any thread switch events. I do get a bunch of CompCS events that have an undefined structure.
    When i export this file with xperf i get a bunch of CSwitchedCached events witch contain the thread switching information i need. So my question is how is these CSwitchedCached events related to the CompCS events and are these data structures documented anywhere?
    Thanks for any help,

    Yes.  Create a smart album with the criteria Photo is RAW:
    Then you can select all of the photos in the smart album and use the Events ➙ Create Event menu option to move all of the RAW photos into a new event.
    OT

  • Iterable and ?-wildcard

    Hi and thank you for reading my question!
    I have a problem wich could be simplified to somewhat like that below. The main point is, that it isn't possible to implement Iterable<BarInterface> and return an Iterator<Bar> (Bar implements BarInterface).
    public interface BarInterface {
       public abstract void bar();
    public class Bar extends BarInterface {
        public void bar() {
    public class Foo extends Iterable<BarInterface> {
        private Set<Bar> bars;
        public Iterator<BarInterface> iterator () {
            return bars.iterator(); // error
    public static void main(String[] args) {
        Foo f oo = new Foo();
        for (BarInterface bar : foo) {
            bar.bar();
    }A possible solution would be to change the implementation of java.lang.Iterable from
    public interface Iterable<T> {
        Iterator<T> iterator();
    }to
    public interface MyIterable<T> {
        Iterator<? extends T> iterator();
    }I am pretty new to generics, so I may have to apologize for not seeing the main point or the solution with the existing implementation. For me it seems to be a restriction which is not necessary.

    Read the generics tutorial escpecially point 4:
    http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf
    The problem is imagine a subclass of BarInterface MyBar.
    I can now get an iterator from your Set<Bar>, and add a MyBar object..
    Thats why you can't do it that way. You either need to define your set with BarInterface or make your foo class generic.
    bars.iterator().add(new MyBar());I am still learning generics, so please don't hang me if it was not fully right what I told.

  • Compc ant task and external framework

    I'm writing an ant task to compile a couple of libraries into
    SWCs and then a shell app (that uses the libraries) into a SWF for
    deployment. If I compile the libraries by hand then run just the
    'mxmlc' part of my ant script it compiles fine. However when I try
    and first compile a library into a SWC with 'compc' it compiles but
    then the shell app complains that the classes from the library are
    missing. One thing that may be causing the problem is my library
    path (through flex builder) has it's framework.swc set to 'Link
    Type: External' and I'm not sure how to define that with 'compc'.
    The weird thing is the flex builder compiled and 'compc' compiled
    SWCs are the same size. Here's my target for 'compc':

        <mxmlc
             file="${project.name}/src/Test.mxml"
             output="${build.mxmlc.dir}/Test.swf"
             static-link-runtime-shared-libraries="true"
        >
              <load-config filename="${air.config}"/>
              <source-path path-element="${project.name}/src" />
             <runtime-shared-library-path path-element="${flex.frameworks.dir}/libs/framework.swc">
                    <url rsl-url="${rsl.dir}/framework_3.2.0.3958.swz"/>
                    <url rsl-url="${rsl.dir}/framework_3.2.0.3958.swf"/>
             </runtime-shared-library-path>
             <runtime-shared-library-path path-element="${flex.frameworks.dir}/libs/datavisualization.swc">
                    <url rsl-url="${rsl.dir}/datavisualization_3.2.0.3958.swf"/>
             </runtime-shared-library-path>
        </mxmlc>
    This also seems to work. AIR libraries are included in my output SWF. It all happens right when I have static-link-runtime-shared-libraries="true" . Why? Why does that not work when i have static-link-runtime-shared-libraries="false"  ??

  • Find and Replace using Wildcards

    I am following the procedure outlined in Trent’s Blog:
    http://www.trentmueller.com/blog/search-and-replace-wildcard-characters-in-dreamweaver.htm l
    This is fantastic stuff and will really help me.
    I have a few (but only a few) times had success.
    It says to “Use regular expression.”  What does that mean?  What is an “irregular expression?”  I have tried with the box checked and unchecked.  Usually with the box checked it will not Find my string.  I uncheck the box and it sometimes does.
    Example:
    Link to    www.schembs.com/TEST_jds_1.html
    At the moment all the Cases are identical.  I have not uploaded the .css to the site so the right-most formating is not properly displaying.  It does work when the .css is available.
    In the source code I literally copy the line of code:
    <p class="type_X"><u>Joh. Heinrich Sch&ouml;m (1713-1785) <span  class="right-most">1.</span></u></p>
    and paste it into the Find box of F&R.  I then put my cursor above the line and it does not Find it, giving me the “Done.  Not found in current document.” response.  I uncheck the “Use regular expression” box and it will find it.
    THEN,
    I try using a wildcard (with the box checked), Finding:
    <p class="type_X">([^<]*)< p>
    or
    <p class="type_X">[^”]*< p>
    and it will find the misc. lines, e.g. where the text is “Case #1”, but not the lines of interest, with Heinrich’s name.  With the box unchecked it Finds nothing.
    Really would appreciate help.  Thanks.
    jds

    jds zigzag wrote:
    It says to “Use regular expression.”  What does that mean?
    A regular expression is a pattern for matching text. It uses a combination of literal characters and special symbols or sequences of characters (technically called metacharacters or metasequences) to represent such things as the beginning and end of a line or any alphanumeric character. For example, \d represents any number (single digit), \d* represents zero or more numbers in sequence.
    I have written a tutorial series on using regular expressions in Dreamweaver here: http://www.adobe.com/devnet/dreamweaver/articles/regular_expressions_pt1.html.
    I try using a wildcard (with the box checked), Finding: 
    <p class="type_X">([^<]*)< p>
    or
    <p class="type_X">[^”]*< p>
    They're not wildcards, but regular expressions. The first part matches the literal characters <p class="type_X">. The next sections use metacharacters.
    ([^<]*) matches zero or more characters (and as many as possible) that don't include an opening angle bracket (<). The parentheses "capture" the value that's matched so it can be used in a replace sequence.
    [^"]* matches zero or more characters (and as many as possible) that don't include a double quote. There are no parentheses, so the value is not captured for reuse.
    The closing <p> matches those literal characters.
    Regular expressions are not easy, but they're extremely powerful, and a good skill to acquire.

  • FlexBuilder 3 = MXMLC and ANT?

    Hi all-
    Admittedly I'm a flash / flex newbie, I have kindof a basic
    question... Flex Builder 3 has the .project and
    .actionScriptProperties files. I'm aware that MXMLC has a
    "--load-config" option. What is the best way to unify those two
    things? I've been trying for a week to get this stuff working using
    basic MXMLC stuff and I've got some things but I don't think it's
    the same thing that running a build in FlexBuilder does.
    The command I'm running is:
    mxmlc +FOO=something +BAR=something
    --load-config=./test-flex-config.xml MyFile.as -output MyOutput.swf
    ...so I think I've gotten far, but I don't understand why I
    can't use "mxmlc
    --load-actionScriptProperties=./.actionScriptProperties" ??? Aren't
    they all made by Adobe?
    --Robert

    No not really (thanks anyway). The link shows basically the same as my input except for the better formatting of the output.
    Both my and the example given both uses the Ant <exec> tag which start ojaudit from the command line. The problems still exist because I would like Ant to know if something was reported and the stop the Ant build process. A kind of "failOnValidationError".
    PMD has this (example below shows and Ant tag called pmd which is part of the PMD system.
    <pmd printToConsole="yes" failOnRuleViolation="on">
    Can ojaudit also do something like this? Or is there a way Ant can "scan" the result from the audit process and take the appropriate action?

  • EJB3 QL - Selecting with wildcards and parameters

    Hi,
    Can you please help me create a select query which takes parameters and uses wildcards.
    QL:
    (List<SubjectEntity>) entityManager
    .createQuery("{color:#000080}*SELECT aE FROM SubjectEntity aE WHERE aE.name like :word*{color} ")
    .setParameter("word", word)
    .getResultList();
    I pass Corporate* to my word parameter and my TABLE has a row that contains Corporate Finance as a name and I want it matched by the parameter.
    Below is an equivalent statement using SQL*
    DB:
    SELECT * FROM SUBJECT WHERE NAME LIKE(%?%)
    Thanks.

    One quick fix is in the DAO method where you invoke the query, append a '%' to the end of the word before passing it to the query.
    .setParameter("word", word + '%')

  • Runtime Exec on Solaris and wildcards characters

    Hello,
    I'm trying use exec in the following manner on Solaris 2.8 JDK1.3.1
    e.g. exec( "ls /tmp/*.sh" );
    When the string contains any sort of punctuation or wildcarding the command doesn't execute, usually fails with RC=2.
    exec( "ls /tmp/??.sh" ); fails
    exec( "ls /tmp/go.sh" ); works
    Any ideas or suggestions?
    thanks.

    If you haven't found the answer yet, I found it in another article. Basically, * and other wildcards are expanded by the shell so Runtime.getRuntime()exec("ls /tmp/*") won't work. You need to use the String[ ] form of exec(), i.e. Runtime.getRuntime()exec( new String[ ] {"sh", "-c", "ls /tmp/*"} )
    hope that helps.

  • FDB hangs intermittently and needs to be killed

    Hey,
    Do you guys have any idea what may cause this issue?
    Sometimes when you publish a project, the debugger says it is ready, and Flash Player 10 is running, but its window never appears. When trying to compile again, the OS reports that the SWF file is locked.
    The problem does not occur with Flash Player 9, but I have been able to repeat this issue with every version of Flash Player 10, using the external debug player on Windows. It happens intermittently so it is very hard to track down.
    For what I know, Java (running mxmlc/fcsh/fdb) gets hung up. It sometimes starts working again if you kill every instance of FlashPlayer.exe ... ending the current debug session. It also starts to work if you kill every instance of Java.exe and try again.
    I have not seen this issue when debugging by hand. The issue appears to be with the combination of Java and the Flash 10 player, and I have the feeling that it occurs because of something happening too quickly. Yes, I am using FlashDevelop, but it should not matter. FlashDevelop compiles the SWF, copies the result to the target directory, starts the debugger, then launches the external player when the debugger is ready. It offers the same commands I give the debugger by hand, so maybe Flash Player 10 has some kind of "warm up" period which sometimes gets the best of the debugger. Either way, FlashDevelop launches FDB, waits for the prompt, and offers commands.
    Does Flex Builder use the same apps as the Flex SDK? Perhaps it does not occur because FlashDevelop runs faster. The problem is more likely to occur with bigger, more complicated files. Perhaps Flash Player 10 loads up, reports itself as ready, but still has to load up code. If for some reason this initialization stage takes a frame too long, FDB tries to talk to it as if it were ready, but its come through just too soon.
    You can see more details about this here:
    http://www.flashdevelop.org/community/viewtopic.php?f=6&t=4707
    It's been over two years since I started having this issue. I stuck with Flash Player 9 for a long time because of it. Now that I use Flash Player 10 for all my projects, it feels like its time to try and figure out what's going on here. It's easy to pass the buck and say its a FlashDevelop problem, but that really is not what I am seeing ... and if FlashDevelop had to do something different, like add an artificial pause to wait for Flash Player to initialize, it would at least be helpful to know what needs to be done to negotiate the debugger without hanging it.
    I appreciate your help and I don't mean to come across as confrontational if I sound that way. I'm just hoping to get down to a real answer and not assume that this is "just the way things are"
    Thank you!

    I have a few thoughts.  For one thing, reading through the thread over on flashdevelop.org, some (and perhaps all) of the problems people encountered were due to a bug in the Flash player, which was fixed this past summer.  (The Flash Builder record of the bug is here: http://bugs.adobe.com/jira/browse/FB-16153 -- but the bug was actually in the player.)
    So please make sure you have the latest debugger version of the Flash player.  You can get the latest version here: http://www.adobe.com/support/flashplayer/downloads.html
    That is almost certainly the cause of the "WARNING: The Player that you are using does not support all fdb commands" message that member "elyon" described in his post on June 4, 2009.  Hopefully it will help with whatever problems you are running into.
    In another post that same day, elyon saw this output from FDB:
    Adobe fdb (Flash Player Debugger) [build 4852]
    Copyright (c) 2004-2007 Adobe, Inc. All rights reserved.
    Waiting for Player to connect
    Player connected; session starting.
    Unexpected error while processing command.
    For diagnostic purposes stack trace follows:
    But apparently there was no stack after that message.  If you can reproduce that error message, the way to get stack dumps to appear is to pass "-Dtrace.error=true" to Java when it launches FDB.  This is a Java property, so it must be passed as an argument to Java, not to FDB.  For example, if launching FDB from the command line, you can launch it like this:
    java -Dtrace.error=true fdb.jar
    > Does Flex Builder use the same apps as the Flex SDK?
    Yes, but not in quite the same way FlashDevelop does.  FDB has a public Java API that can be called by any Java app to control debugging, and that's what Flex Builder does, unlike FlashDevelop's approach.  So, FlashDevelop and Flex Builder are using the exact same underlying debugger code; it's possible that there is some sort of problem with FlashDevelop's communication over the pipe, I just don't know.
    You say you haven't seen this issue when "debugging by hand" -- you mean when using FDB directly?  If so, then I suppose the Flash player version isn't the problem.  I'd be interested to see a repro case that involved just FDB (perhaps reading commands from a file or a pipe if that's the easiest way to reproduce it).
    There is nothing unusual about FDB's communication with stdin and stdout, it's pretty standard stuff.   Also, it's all open source, http://opensource.adobe.com, so you can debug it if you want.
    - Mike Morearty
      Flash Builder team

  • How to solve "Error: Invalid Embed directive in stylesheet - can't resolve source" while building using mxmlc.exe on command prompt

    Hi,
    Currently, I am developing a powershell script for Flex build automation.
    I found some problem and have been trying to search any references and tried any ways to fix it but It did not work.
    I am using compc.exe for compiling the libraries and it works fine.
    I compiled css files into swf files using mxmlc.exe and it works fine.
    However, I have a problem while building my main application (mxml file).
    It complains about embedded resources.
    I run this command, it works fine:
    "C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0\bin\mxmlc.exe" "C:\{somePath}\FlashClient\src\styleLang.css" -output "C:\{somePath}\FlashClient_deploy\styleLang.swf"
    However, when I tried to run these command on cmd for testing:
    "C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0\bin\mxmlc.exe" "C:\{somePath}\FlashClient\src\FlashClient.mxml" -load-config "C:\{somePath}\FlashClient\src\dump_config_temp.xml" -output "C:\{somePath}\FlashClient_deploy\flashclient_test.swf"
    I got a lot of this error message:
    this is my folder structure:
      FlashClient
      |
      |---assets
      |---src
          |
          |---FlashClient.mxml
          |---FlashClient.as
          |---FlashClientStyleLoopup.css
          |---styleLang
    Already tried to add / at the beginning of the relative paths but It did not work.
    Also tried to compile one of the image to a swc file and include it on the dump_config, but also did not work. something similar with Tech Diary: Flex : Solution to Error: unable to resolve '/assets/icons/icon.png' for transcoding using Embed tag
    Does anyone know how flex builder resolve the relative path to make the embedded resources work? or how to fix this?
    I've been trying to work on it for days but haven't had any luck.
    Will be really appreciate it if someone could help me with this.
    Many Thanks.

    Hi,
    make sure you are using 32 bit Java JDK. Check that your systems variables CLASSPATH, JAVA_HOME are pointing to correct 32 bit Java JDK folder (e.g. CLASSPATH=C:\Program Files (x86)\Java\jdk1.8.0_25 and JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_25). Also make sure you have 32 bit Java JDK's "bin" folder in your system's variable PATH.

  • How to add item to a List with a bounded wildcard

    Hi,
    Is there a way to add a subtype instance to a List with a bounded wildcard? For example, say I have an
    abstract class called Car. Then I have 2 concrete subclasses--Ford and Toyota. Now say I have another
    class that contains a prepopulated list and is wildcard bounded like this: List<? extends Car> carList. I
    want to add a method where I pass in a Car subtype as a parameter and then add it into this list, e.g:
    public void addCar(Car car) {
    carList.add(car);
    Trying this, I keep getting "cannot find symbol" compilation errors. When I went back to read the Generics
    tutorial by Bracha, he mentions that explicitly adding a subtype, e.g. carList.add(new Ford()), can not be
    done. But here I'm adding the "upper bound" of the wildcard, i.e. the Car type. Therefore there should be no
    discrepancy between supertype and subtype an thus the carList.add(car) should be ok, IMO.
    Am I misunderstanding something with this logic? Also, if carList.add(car) can not be done, then how can
    I go about doing something similar which will allow me to add subtypes to a "generic" list?
    Thanks in advanced!
    -los

    I get a compilation error expecting an Object instead of a Car. Of course you did. List<? super Car> is a list into which you can put cars -- and possibly other stuff. List<? extends Car> is a list out of which you can get cars (possibly of different makes).
    Do you need a list that you can put cars in and get cars out? That's List<Car>
    This isn't a linguistic problem you are having; this is a design problem. If you have a function that takes an argument which is a list that you can put any kind of car into and be sure of getting a car out of, it isn't reasonable to pass in a List<Ford> (because the function might put in a Chevy) or a List<Object> (but there might be motorcycles already in there). By the requirements you have, you need a List<Car> and nothing else.
    Yes, you could use a cast, but all you are doing is circumventing the type system by saying "I know this List<Object> only has Cars in it."

Maybe you are looking for

  • How do I unauthorize lost iPod and a previously owned (now sold) mac?

    I lost my ipod and I want to unauthorize it from my iTunes account. Also I sold my old mac and forgot to unauthorize it before I sold it. Can I do this?

  • Caution: Before you install Mountain Lion ...

    To avoid problems, you should drag-out the Diagnostic Disc that came with your machine (if there is one), (mine boots with the "D"-keyboard-key held-down whilst booting), and verify that all locations in RAM are working properly by doing a full diagn

  • WHTax on Down pmt

    hi everyone, Could you guide me regarding calculating WHTax on down payment, and if down payment is for partial amount and invoice amount is more than down payment then how sys will adjust WHTax amount ..what configuration need to be done.. help will

  • SCCM 2012 R2 Report Viewer not working.

    I have recently upgraded to SCCM 2012 R2 and now when I go to the reports I get this message. Has anyone come across this? The DefaultValue expression for the report parameter 'UserTokenSIDs' contains an error: The encryption type requested is not su

  • How add files on my website (and friends can download it)

    Hi I got a website and i would like to add some music like djset, and so make possible to everyone download it from my website. I use iweb 08 Sorry for my english Thank you to everyone to try to help me. Fabio