RFE for new array type

I was going to add an RFE for a new parameterized array type but first I wanted to know if anyone knew of an existing RFE for this.
It has occurred to me that the solution to the 'array problem' might be to just create a 'new' array class and implement some operator overloading. The following demostrates the basic idea though the actual implementation could be very different:
class Array<T>
    private final T[] internal;
    public final int length;
    public Array(int length)
        internal = (T[]) new Object[length];
        this.length = length;
    public T get(int element)
        return internal[element];
    public void set(int element, T item)
        internal[element] = item;
}Something else that is interesting (to me) about this is that to some degree, generics makes the array type system obsolete, at least for Object types. There's no need for a different synthetic type for each array type. Generics achieves the same goal and does it better.
The core of the request would be to implement the new array type with the overloading like the original array types such that we can do something like this:
Array<String> a = new Array<String>(10); // or new Array<String>[10];
a[0] = "test";
String s = a[0];Any comments?

OK, we all agree that from a theoretical standpoint
arrays of subtypes should not be assignable to arrays
of supertypes.
But what strikes me is that this knowledge has been
brought to general attention only after the
Generics extension showed us what "variance" and
related stuff really means.
Before Generics, there has not been a
pressing issue of rampant ArrayStoreExceptions in
production code!
Nor were there rampant ClassCastExceptions. The real value of generics is that it's much more expressive.
The reason for this is probably that 90% of all array
accesses are read accesses, where variance
does not pose a problem.
Right on the contrary, being able to treat a
T[] as an Object[] is extremely
convenient!
So I'm playing devil's advocate here in saying that
the initial design decision to make Java arrays
variant was actually a good one!The real issue that this is meant to address is that we cannot create arrays of generic types, only cast to them (with warnings) and the array variance rules allow for raw types to be assigned to generic type array references without warnings. The net effect is that generic array types are destabilizing to generic code. The new typesafe array type would be a work-around for this issue.

Similar Messages

  • Workflow Status column for new content type

    Hi,
    Initially I had a document library and several workflows associated with it. After that I created a new content type inheriting Folder content type. My existing workflows could be started and work fine with any item of this new content type except anything
    related to the workflow status column, such as "Automatically update workflow status to the current stage name", or workflow action "Set workflow status". If I use the OOTB Folder content type, everything's fine. But I need custom fields
    for folder as well.
    The workflows can be started then it seems unreasonable that they are not associated with the items of the new content type, considering I set my new content type to be the child of the existing Folder content type. So why any item under this new content
    type does not have the workflow status column? I've tried removing the workflow from the list and publishing back using SPD without success.
    I also notice that when you associate a new content type to a document library/list which has some custom columns, you cannot edit those columns to be used in the new content type. You need to delete those columns and recreate them, then the option "Add
    to all content types" is there. Is this expected design?
    Thanks

    Hi,
    According to your post, an error occurred when you created a custom Edit form for new content type.
    We can do as follows:
    1.Add the MyNameSpace.MyNewEditPage dll file into GAC(C:\Windows\assembly).
    2. Execute the iisreset command.
    We can create a new content type using visual studio 2012/2013.
    http://www.sharepoint-journey.com/sharepoint-list-content-types-and-site-columns.html
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Need help for new message type for PO archiving

    Hello All
      I have configured new message type ZARR for PO archiving process. After configuring all the steps this condition is not getting picked to by itself. And after maintaing it manually it is giving red flag without any error message. Here I am listing all the step that I have followed for config. Please help me am I missing something or any parameter is wrong.
    Steps for new Message Type for PO Archiving
    1.     Defined new Table 513 Purch.Org./Plant.
    2.     Defined new access sequence Z513 Access Sequence for Archiving.
    Following are parameters to the Access Sequence
    Access Sequence Number = 21
    Table = 513
    Description = Purch.Org./Plant
    Requirement = 101
    Exclusive = Yes (box checked)
    3.     Maintain Output Type ZARR for PO
    General Data
    Access Sequence = Z513
    Access to condition (Checked)
    Multiple Issuing (Checked)
    Program = FM06AEND
    FORM Routine = CHANGE_FLAG
    Default Values
    Dispatch Time = Send Immediately (when saving application)
    Transmission Medium = Print Out
    Storage System
    Storage Mode = Archive Only
    Document Type = ARCHIVE
    Mail Title and texts
    Language = EN
    Title = Archiving for Legal Requirement
    Processing Routines
    Transmission Medium = 1 (Print Out)
    Program = SAPFM06P
    Form Routine = ENTRY_NEU
    Form = ZJ_9H_MEDRUCK
    Partner Roles
    Medium = Print Out
    Funct = VN
    Name = Vendor
    4.     Fine-Tuned Control: Purchase Order
    Oprat. = 1
    CType = ZARR
    Name = Testing for Archivin
    Short Text = New
    Update Print Related Data = Yes (checked)
    Oprat. = 2
    CType = ZARR
    Name = Testing for Archivin
    Short Text = Change
    Update Print Related Data = Yes (checked)
    5.     Maintain Message Determination Schema: Purchase Order
    Procedure RMBEF1
    Step = 100
    Cntr = 1
    CTyp = ZARR
    Description = Testing for Archivin
    Requirement = 101
    6.     Assign Schema to Purchase Order
    Procedure RMBEF1
    7.     Define Partner Roles for Purchase Order
    Out. = ZARR
    Med = 1 (Printout)
    Funct = VN
    Name = Testing for Archivin
    Name = Vendor
    8.     Test Condition Maintained in MN04 (Master Data)
    Purch. Org. = 0001
    Plant = 24
    Partner Funct = VN
    Medium = 1 (Printout)
    Date/Time = 4 Send immediately (when saving application)
    Output Device = HUL1
    Storage Mode = Archiving only
    Thanks
    Ankit

    the problem is the Exclusive = Yes  indicator in the access sequence.
    Your other message has this exclusive indicator as well.
    so if the first  message is found, then no other message wil be determined
    to allow several messages in one PO, you must not set this exlusive indicator

  • How to add support for new file type.

    Using the ESDK, I would like to add support for new file type ( a new extension). this new extension will function like any other non visual code editor but will have specific syntax highlighting, code folding and explorer.
    I am trying ot figure out if I need to create a new editor or use existing JDeveloper code editor and add support for new file type. Does anyone have a high level outline on how to do this using the ESDK that is specifically targeted at adding new file type support for a text based code editor?
    I have looked at the Samples and keep going in multipe directions. It would be cool if there was an example that was how add syntax higlighting for new file type.
    Thank you

    Brian, thank you. I looked at this extension and it answered a lot of questions for me. I was going in the right direction but needed a little help and bost of confidence, this is just what I needed. I created the LanguageSupport, LanguageModel, Addin, Node and TextDocument that are specific to the new file type. I was getting hung up on how to hook this into the JDevelpoer editor. I keep thinking I have to create a custom editor but it looks like I don't have to and it looks like I can associate this file support with the editor framwork, for version 10.1.3.2, with the following in the Addin Initilize() method.
    Recognizer.mapExtensionToClass(MY_EXTENSION, MyNode.class);
    CodeEditor.registerNodeType(MyNode.class, MY_EXTENSION);
    LanguageModule.registerModuleForFileType(new MyLanguageModule(), MY_EXTENSION);
    I have done this but still not able to recognize the new file type.
    At this point, I just want to be able to recognize the new file and display it's associated icon or display a messare to the message log. I put a System.out.println("test") in the Initilize() method of my addin. then I registered MyAddin in the extension.xml. JDeveloper sees this new extension and it is loaded but I have not been able to show the test message or display the new icon when I open the new file type.
    extension.xml
    <?xml version="1.0" encoding="windows-1252" ?>
    <extension xmlns="http://jcp.org/jsr/198/extension-manifest"
               id="teisaacs.jdev.myext.MyAddin" version="1.0.0" esdk-version="1.0"
               rsbundle-class="teisaacs.jdev.myext.resources.MyResBundle">
        <name rskey="EXTENSION_NAME">My Code Editor</name>
        <owner rskey="EXTENSION_OWNER">Me</owner>
        <dependencies>
            <import version="10.1.3">oracle.jdeveloper</import>
        </dependencies>
        <hooks>
            <jdeveloper-hook>
                <addins>
                    <addin>teisaacs.jdev.myext.MyEditorAddin</addin>
                </addins>
            </jdeveloper-hook>
            <feature-hook>
                <description>My Code Editor</description>
                <optional>true</optional>
            </feature-hook>
            <document-hook>
                <documents>
                    <by-suffix document-class="teisaacs.jdev.myext.model.MySourceDocument">
                        <suffix>my</suffix>
                        <suffix>MY</suffix>
                    </by-suffix>
                </documents>
            </document-hook>
            <editor-hook>
                <editors>
                    <editor editor-class="teisaacs.jdev.myext.editor.MyEditor">
                        <name rskey="EXTENSION_NAME">My Editor</name>
                    </editor>
                    <mappings>
                        <mapping document-class='teisaacs.jdev.myext.model.MySourceDocument">         
                            <open-with editor-class="teisaacs.jdev.myrext.editor.MyEditor"
                                       preferred="true"/>
                            <open-with editor-class="javax.ide.editor.CodeEditor"/>
                        </mapping>
                    </mappings>
                </editors>
            </editor-hook>
        </hooks>
    </extension>
    public class MyAddin implements Addin {
        public static final String MY_EXTENSION = "my";
        public void initialize() {
            System.out.println("MyEditor Constructor");
            new MyLanguageModule();
            Recognizer.mapExtensionToClass(MY_EXTENSION, MyNode.class);
            CodeEditor.registerNodeType(MyNode.class, MY_EXTENSION);
            LanguageModule.registerModuleForFileType(new MyLanguageModule(), MY_EXTENSION);
    }I have added and removed the editor hook along with many other modificaitons to the extension.xml but still not recognizing the new file extension.
    Todd

  • Creation of new Print Program & Variant for new Correspondence Type created

    Dear Friends,
    I have created 2 new Correspondence Types in SAP as SAP61 (Vendor Debit Note) & SAP62 (Vendor Credit Note) by copying SAP09 (Internal Document) properties like itu2019s Name of the print program - RFKORD30 & Name of variant - SAP09.
    We are facing problem when we execute print program in F.64 for SAP09 it is coming same like SAP61 or SAP62. Actual script & print values of SAP09 are replaced by SAP61 or SAP62.
    Please suggest us how we can differentiate both SAP09 & SAP61/62. Because we use these correspondences for different purposes like SAP09 gives the information for the Line items in the Document whereas SAP61/62 gives the information of vendor line item weather it is debit or credit entry.
    Your kind co-operation in this matter is highly appreciated.
    Thanks & Regards,
    Naveen Kumar.P

    "Assigned the from to the company code - progam in V_001F_B"
    Check 'Form ID' field in this IMG transaction against the program and form that you have created.
    I am assuming there are 2 lines with same entries but different form IDs.
    Or there are 2 lines with the same entries but different CoCodes (seem to remember that the CoCode is not taken into account as a key in certain programs - not logical i know but remembered a previous issue I had many moons ago - could be to do with the blank entry for CoCode field if there is one being picked up by the program before the entry that has your CoCode).
    Now check the variant attached and Form ID in step 'Created new program variants in SA38'
    Ensure the correct program and variant are attached in step OB78.
    My assumption is Form ID is the key.
    Hope this helps

  • Accounting Document for New Movement Type

    Good day!
    Here's the scenario: I have created a new movement type in SPRO. I just copied from the existing movement type closely related to what I wanted to create. I executed the transaction in MB1C and it went well and generated a Material Document number. When I viewed the Material Document number in MB03, it has no Accounting Document number. Is there any config that i missed? How can I relate this transaction to accounting?
    Thank you for your assistance.

    hi
    first check which movement type u have copied .
    now check is ur material is valuated for the plant
    now in OMJJ go to ur movemnttype  and in update control u should have value and quantity update entry
    also check if u have used the po as free or if it is initial entry then check ur material master price
    hope it hellp
    regards
    kunal

  • Problem while print preview purchase order for new document type

    Dear Experts,
    I have got the problem as below and need your helps.
    I created a new purchasing document type and then created a new PO with this document type. PO was created successfully in the system. I added a message to print out PO with the followed parameters as NEU output type, 1.Print Out medium , VN partner function, dispatch time is 3 ( Send with application own transaction).
    Then, I clicked Print Preview button on the ME23n screen, the error message bellowed was shown
    "The combination of  document type
    and Purchasing organization is invalid.
    please check the document and change it.
    unable to print the form"
    I really want to print the PO with new purchasing document type on the existed purchasing organization, Could you please help me identify the problem and solution for this issue?
    Appreciate for your responses.
    Thanks,
    Tinh Vo Trung
    Edited by: Tinh Vo Trung on Sep 23, 2011 7:43 AM

    Dear All,
    Many thanks for your responses.
    Regarding to maintain the condition record in MN04, I already done for that but the problem was not resolved.
    Could you please come with the other posible causes and solutions for this issue?
    Dear Bijay Kumar Barik,
    Please let me know why we check the new document type in Program, Routine and From of NEU output type?
    p/s: I compared the version the program, FORM and routine of NEU output type and found that there is no the differences btw DEV server and QAs server. However, An PO created susscessfully in QAs server, but the error was happend in DEV server.
    Could you please come with the other posible causes and solutions for this issue?
    Thanks,
    Tinh Vo Trung

  • How to set up an inspection lot for new movement type

    Hi All,
             I would like to know, how to trigger / set up an inspection lot for a new movement type (ex,Z11) ?
    Regards,
    PSS

    Navigation path:
    SPRO --> Quality Management --> Quality Inspection --> Inspection Lot Creation --> Inspection for Goods Movements
    For more information refer following link:
    [How to create new movement type which move matieral into QI stock?]
    Hope this helps.
    Thanks!!!

  • No inspection lot created for new inspection type created

    Hi all,
    We create a new inspection type which is based on a copy-version of an existing inspection type. These inspection type has a inspection type origin of standard SAP 04 (i.e. Goods Receipt from Production).
    Question 1 - we bumped into problem when come to testing in which when perform goods receipt, there is no inspection lot created, may I know why?
    The following fields of this new inspection type are all checked; those not specified, are not flagged.
    1 - Insp with task list (flagged); Automatic Assginment (flagged); Check Chars (flagged); Skip Allow(flagged); Automatic UD(flagged); Serial Number Poss (flagged).
    Question 2 - for this kind of inspection type with origin 04, do i need to perform a goods receipt against a production order or purchasing order? How do I perform a GR against a production order?
    Thanks.

    Hi Tuffy,
    Possibly you might not have ticked on preferred inspection type in material master. This could be one of the reasons. Try to do GR after ticking this.
    The setting you have mentioned (flagged parameters)are seems to be correct. But lot generation is governed by preferred inspection type.
    If you have assigned this newly customized inspection type to lot origin 04, then it would be used against production order and not the purchase order.
    There are several ways to carry out GR against production order. It depends on the scenarios which you follow
    1.     MB31 101 movement
    2.     You may use backflush so while confirming order through CO11N auto GR is posted
    3.     In case of repetitive manufacturing scenario generally GR is done by MFBF transaction
    Regards,
    Anand Rao

  • Incompletion log for new order type

    Can you tell me for setting the incompletion log for an order type what is the procedure

    Hi Pooja,
    Let me make it very simple for you.
    Firstly, you will have to go into customizing SPRO - SD - BASIC FUNCTIONS - LOG OF INCOMPLETION ITEMS.
    1) Select Define Incompletion Procedure.
    You will be asked whether to create at Sales Order Header or Sales Order item
    Choose Sales Order Header, and either copy an existing incompletion procedure or click on new entries and assign a number range and then define the table and field names which you want to be compulsoraily inputted in the Sales Order at the time of saving.
    I am sure you know how to get the table and field names, press F1 in the relevant field and go to techincal details, and get it from there.
    Now if say you want to issue a warning to the user if he doesnt input any of the fields that you have entered in your incompletion procedure, just make sure you tick in the warning field.
    Also based on your business scenario, you can decide what level of action you want to take if the Sales Order is not entered with all the relevant field names that you just maintained in your incompletion Log.
    This can be handled by the column called " Status Group "
    Based on the status group you can decide whether to restrict Billing of the order or Delivery as so on against each table and field name that you must have maintained in your incompletion procedure.
    Just make sure the tick that you see in Status Group, means that particular activity is restricted.
    Now once you finalize all the table and field names along with status group and warning messages, now is the time to assign this incompletion procedure against your sales order document type in transaction VOV8 (Please note we are using VOV8 since we earlier defined this procedure for Sales Order Header)
    If you would have choosen Sales Document Item, then you would had assigned this incompletion procedure against your item category in transaction VOV7.
    Now once this maintenance is done, you are ready for testing.
    I hope this will help you.
    If it does please dont forget to reward points for contribution.
    Regards
    Ravi

  • How to setup security for new project type templates?

    Hi Folks,
    I created some new project type templates.
    But, as per management decision, i need to restrict this new project templates for all project users except only one super user.
    So, could anybody please help me out that how to make security in the above scenario?
    Thanks in advance,
    SPR

    Soooo...I need to install OID on top of my Forms, Reports, and Discoverer install? Would it be better to install the SSO and OID before installing any other middle ware products like Forms, Reports, and Discoverer? Then extend the domain to include Forms, Reports, and Discoverer?
    Can you point me to documentation that would help me get this issue worked out?
    Thanks.

  • Is it possible to add support for new database type in Data Modeler?

    Hi,
    I see that Data Modeler v.4 supports different versions of Oracle, DB2 and MS SQL. Is it possible to add support for a new database family,
    PostgreSQL for example? I hoped that RDBMS Site editor can do it, but so far I don't see any possibility to add XML files with metadata for a new RDBMS.
    I did it previously for PowerDesigner were it is possible to add and modify definitions for new relational databases.
    Thank you,
    Sergei

    There is discussion option as an out of the box feature. Check this: BI launch pad 4.0: Participate in a discussion about a document

  • MIGO for new movement type...

    Hi,
    Is it possible to make GR/MIGO for a particular type of purchase order document type with a customized movement type..
    Can it be so that the purchase order type (document type) is linked only to a particular customized movement type...
    Thanks,
    Rahul

    Hi,
    There is no linkage betwen Purchase order type and the Movement type Yet in SAP.
    Movements always depends on what transaction your Doing, like for STO system will not allow you to proceed with 101 movement type to Transfer like wise.
    and for customized the movement type you can see in OMJJ Tcode the allowed transaction for processing the same.
    Regards,
    Ninad Kshirsagar

  • Inspection lot is not generated for new inspection type

    hi all
    we have create z5 as a new inspection type by coping inspection type 05 (standard) ,but when we use with move-type 655 in VL01N
    we are facing error :Change the inspection stock of material 200022 in QM only but when we are using 05 no error. so please suggest
    the setting to be maintained inspection type and inventory management.

  • Invoice printout is coming blank through VF02 for New Output Type

    Hi ,
    I have copied a existing output type and create a new one and also copied a smartforms attached to the existing output type and created a new one. Because we want to create a new Invoice with different Layout so we have done this excercise. Now we have done all the required changes and create a new invoice with a new output type with the new layout. I can see the print perview properly, but when i take a print a blank paper comes out and printer goes in idle position and the printer spool also shows the status printing it does not gets complete while the LPDA show printing finished . What would be the reason. How can we resolve this problem. Has anybody gone through such situation?
    Regards
    Edited by: nau on Apr 16, 2010 2:19 PM

    Hi Hari,
    I have mantain VV32, but still the printout is coming blank and also the spool is showing blank doc. While in the Print Preview it is coming Proper. 
    Regards
    Edited by: nau on Mar 24, 2011 9:45 AM

Maybe you are looking for

  • Target Display Mode: Lenovo T420 DisplayPort to iMac (2nd screen) does not work

    Configuration: - Laptop Lenovo T420, DisplayPort, Windows 8.1 - DisplayPort cable, Adapter to Mini DisplayPort - iMac (Intel, 27-inch, Mid 2011) as 2nd screen, connected via Mini DisplayPort Adapter, Mavericks OSX 10.9.1 Problem: - iMac does not star

  • UPPER built in function (BIF) of Oracle

    Hello: I have a SQL that uses UPPER function. select id from employee where upper(ID)= upper('123A') ; It does a full table scan ( in the absence of a functional index on ID ). Now the question is, is Oracle smart enough to skip using the UPPER funct

  • Printing user's entry.

    Hi guys I am trying to print the user's entry from a JTextField. But when I pass it to the print method, all i get is a NULL value. Can anyone point me my mistake ? I'd appreciate it :) private void btnPrintActionPerformed(java.awt.event.ActionEvent

  • Packing issue

    Hi All, I have created the packing instructions and determination records ( POP3 and POF3 ) but when I create an inbound delivery and check packing button I don't see the handling unit automatically assigned. It works when I click on Pack proposal ma

  • Can not open applications

    Hello everybody, I have the game Smurfs Village in my Ipad. But since 4 days, can not open to play. I tried to open by Game Center, same result. The game closes before the end of the charging line. If someone could help me, it will be great ! Thanks