[ nice-Bugs-976960 ] NPE in FormalParameters.resolve
"SourceForge.net" <[email protected]> Tue, 22 Jun 2004 07:16:10 -0700
| Newsgroups | gmane.comp.lang.nice.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #976960, was opened at 2004-06-21 21:28
Message generated for change (Comment added) made by bonniot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=976960&group_id=12788
Category: None
Group: None
Status: Closed
Resolution: Invalid
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)
----------------------------------------------------------------------
>Comment By: Daniel Bonniot (bonniot)
Date: 2004-06-22 16:16
Message:
Logged In: YES
user_id=88952
Actually, the dev compiler has not been updated since the
16th, because of a bootstrap problem. So it's working, but I
don't think it fixes the original bug.
If you do a clean vuild from the dev compiler using CVS, you
should get what you need. Alternatively, it should also work
to use http://nice.sf.net/nice-current.jar
I'm working on fixing the bootstrap pb at the moment.
----------------------------------------------------------------------
Comment By: Bryn Keller (xoltar)
Date: 2004-06-22 15:13
Message:
Logged In: YES
user_id=2706
Yes, sorry. Using the new dev jar to build the compiler did
the trick. I always forget to try that...
----------------------------------------------------------------------
Comment By: Daniel Bonniot (bonniot)
Date: 2004-06-21 23:43
Message:
Logged In: YES
user_id=88952
Strange, I don't get any error while compiling this code.
Maybe I forgot to commit something, but I don't see what.
Are you sure you have rebuilt the compiler properly? Did you
try using the development version?
----------------------------------------------------------------------
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