Nice/src/nice/tools/code EnsureTypeProc.java,1.5,1.6

Daniel Bonniot <[email protected]> Thu, 24 Mar 2005 14:47:09 +0000
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
Update of /cvsroot/nice/Nice/src/nice/tools/code
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18703/src/nice/tools/code

Modified Files:
	EnsureTypeProc.java 
Log Message:
Stop wrapping ClassCastException into gnu.mypping.WrongType. This is only
useful in unityped languages like Kawa. This reduces bytecode length and
removes the need for adding the WrongType class in generated jars.


Index: EnsureTypeProc.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/nice/tools/code/EnsureTypeProc.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** EnsureTypeProc.java	2 Apr 2003 16:44:50 -0000	1.5
--- EnsureTypeProc.java	24 Mar 2005 14:46:57 -0000	1.6
***************
*** 57,62 ****
        {
  	oldTarget = target;
! 	target = new CheckedTarget(type, "nice.tools.code.EnsureTypeProc", 
! 				   gnu.mapping.WrongType.ARG_DESCRIPTION);
        }
      
--- 57,61 ----
        {
  	oldTarget = target;
! 	target = StackTarget.getInstance(type);
        }
      



-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content.  Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click