Changeset 309 for trunk/openjdk/corba


Ignore:
Timestamp:
Feb 13, 2012, 10:07:12 PM (14 years ago)
Author:
dmik
Message:

trunk: Merged in openjdk6 b24 from branches/vendor/oracle.

Location:
trunk/openjdk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk

  • trunk/openjdk/corba/src/share/classes/com/sun/corba/se/impl/io/IIOPInputStream.java

    r278 r309  
    11/*
    2  * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
     2 * Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    22402240
    22412241                try {
     2242                    Class fieldCl = fields[i].getClazz();
     2243                    if (objectValue != null && !fieldCl.isInstance(objectValue)) {
     2244                        throw new IllegalArgumentException();
     2245                    }
    22422246                    bridge.putObject( o, fields[i].getFieldID(), objectValue ) ;
    22432247                    // reflective code: fields[i].getField().set( o, objectValue ) ;
     
    25502554        try {
    25512555            Field fld = c.getDeclaredField( fieldName ) ;
     2556            Class fieldCl = fld.getType();
     2557            if(v != null && !fieldCl.isInstance(v)) {
     2558                throw new Exception();
     2559            }
    25522560            long key = bridge.objectFieldOffset( fld ) ;
    25532561            bridge.putObject( o, key, v ) ;
Note: See TracChangeset for help on using the changeset viewer.