Issue776340

classification
Title: Bug 600509: @sig disallows "throws" clause
Type: Severity: normal
Components: Jythonc compiler Versions:
Milestone:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: georg_sch, zyasoft
Priority: normal Keywords: patch

Created on 2003-07-23.15:46:55 by georg_sch, last changed 2008-09-14.05:49:10 by zyasoft.

Files
File name Uploaded Description Edit Remove
patch georg_sch, 2003-07-23.15:46:58 diff -c compile.py
Messages
msg2296 (view) Author: Georg Schneemayer (georg_sch) Date: 2003-07-23.15:46:55
Simple patch resolving bug 600509:



schneema@aladdin:~/sandbox/jython/Tools/jythonc# diff
-c compile.py_orig compile.py
*** compile.py_orig     2003-07-23 15:33:53.000000000 +0200
--- compile.py  2003-07-23 17:28:02.000000000 +0200
***************
*** 42,48 ****
      if txt is None:
          return None
      front, back = txt.split("(")
!     back = back[:-1].strip()
      front = front.split()
      if constructor:
          ret = jret = None
--- 42,50 ----
      if txt is None:
          return None
      front, back = txt.split("(")
!     args, excs = back.split(")")
!     args = args.strip()
!     excs = excs[7:].strip()
      front = front.split()
      if constructor:
          ret = jret = None
***************
*** 52,65 ****
          mods = SPACE.join(front[:-2])
          jret = insistJavaClass(ret)
      arglist = []
!     if len(back) > 0:
!         for arg in back.split(','):
              c, name = arg.split()
              jc = insistJavaClass(c)
              arglist.append( (jc, name) )
      sigs = []
      for ndefaults in range(0, len(pargs.defaults)+1):
!         sigs.append( (mods, jret,
arglist[:len(arglist)-ndefaults], []) )
      return sigs


--- 54,72 ----
          mods = SPACE.join(front[:-2])
          jret = insistJavaClass(ret)
      arglist = []
!     if len(args) > 0:
!         for arg in args.split(','):
              c, name = arg.split()
              jc = insistJavaClass(c)
              arglist.append( (jc, name) )
+     exclist = []
+     if len(excs) > 0:
+         for exc in excs.split(','):
+           jexc = insistJavaClass(exc)
+           exclist.append(jexc)
      sigs = []
      for ndefaults in range(0, len(pargs.defaults)+1):
!         sigs.append( (mods, jret,
arglist[:len(arglist)-ndefaults], exclist) )
      return sigs
msg3584 (view) Author: Jim Baker (zyasoft) Date: 2008-09-14.05:49:10
jythonc is no longer supported
History
Date User Action Args
2008-09-14 05:49:10zyasoftsetstatus: open -> closed
resolution: wont fix
messages: + msg3584
components: + Jythonc compiler, - None
nosy: + zyasoft
2003-07-23 15:46:55georg_schcreate