[ nice-Bugs-976960 ] NPE in FormalParameters.resolve
"SourceForge.net" <[email protected]> Mon, 21 Jun 2004 12:28:57 -0700
| Newsgroups | gmane.comp.lang.nice.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #976960, was opened at 2004-06-21 12:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=976960&group_id=12788
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Bryn Keller (xoltar)
Assigned to: Nobody/Anonymous (nobody)
Summary: NPE in FormalParameters.resolve
Initial Comment:
After CVS updating to get the fix for #976723, received
the following error while trying to compile this code:
(int,int) foo((?int,?int) tup)
{
(?int a, ?int b) = tup;
return (a || 0, b || 0);
}
void main(String[] args) {
println(foo((null, 3)));
}
C:\src\nice>nicec -a test test
nice.lang: parsing
test: parsing
An exception has occured in the compiler
Please fill-in a bug report at the following webpage:
http://sourceforge.net/tracker/?func=add&group_id=12788&atid=112788
Stack trace:
Exception in thread "main" java.lang.NullPointerException
at
bossa.syntax.FormalParameters$OptionalParameter.resolve(FormalParamet
ers.java:231)
at
bossa.syntax.FormalParameters.resolve(FormalParameters.java:373)
at bossa.syntax.Node.doResolve(Node.java:255)
at bossa.syntax.Node.doResolve(Node.java:264)
at
bossa.syntax.UserOperator.doResolve(UserOperator.java:77)
at bossa.syntax.AST.resolve(AST.java:99)
at bossa.syntax.AST.resolveScoping(AST.java:112)
at bossa.modules.Package.load(Package.java:242)
at mlsub.compilation.fun.lambda26(load.nice:24)
at mlsub.compilation.fun.apply1(make.nice:0)
at
gnu.expr.ModuleMethod.apply1(ModuleMethod.java:89)
at nice.lang.fun.foreach(collections.nice:130)
at nice.lang.dispatch.foreach(range.nice:0)
at
mlsub.compilation.fun.loadComponent(load.nice:24)
at
mlsub.compilation.dispatch.loadComponent(dispatch.nice)
at
mlsub.compilation.fun$load.lambda24(load.nice:45)
at mlsub.compilation.fun$load.apply1(load.nice:0)
at
gnu.expr.ModuleMethod.apply1(ModuleMethod.java:89)
at nice.lang.fun.foreach(collections.nice:130)
at nice.lang.dispatch.foreach(range.nice:0)
at mlsub.compilation.fun.load(load.nice:44)
at mlsub.compilation.dispatch.load(dispatch.nice)
at mlsub.compilation.fun.make(make.nice:41)
at mlsub.compilation.dispatch.make(dispatch.nice)
at
nice.tools.compiler.fun.compile(interface.nice:40)
at
bossa.modules.Compilation.compile(Compilation.nice)
at
nice.tools.compiler.console.fun.compile(main.nice:168)
at
nice.tools.compiler.console.dispatch.compile(dispatch.nice)
at
nice.tools.compiler.console.fun.main(main.nice:184)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=976960&group_id=12788
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com