[ nice-Bugs-922057 ] exception compiling hello.nice

"SourceForge.net" <[email protected]> Fri, 13 Aug 2004 09:54:59 -0700
Newsgroups gmane.comp.lang.nice.devel
Message-ID <[email protected]>
Bugs item #922057, was opened at 2004-03-23 22:59
Message generated for change (Comment added) made by bonniot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=922057&group_id=12788

Category: None
Group: None
Status: Open
>Resolution: Accepted
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: exception compiling hello.nice

Initial Comment:
Nice compiler version 0.9.7 (build 2004.03.08, 18:32:51 UTC)
Compiled using JDK 1.3

Downloaded Nice-0.9.7-unix.tar.  Installed on an AIX 5.1 box running 
jvm 1.4.1.

Compiling "hello world" novice example from Nice Wiki, got the 
following exception:

Stack trace:
Exception in thread "main" java.lang.IllegalAccessError: mlsub.typing.
lowlevel.BitMatrix tried to access method java/lang/Object.clone()
Ljava/lang/Object;
        at mlsub.typing.lowlevel.BitMatrix.clone(BitMatrix.java:327)
        at mlsub.typing.lowlevel.K0.createInitialContext(K0.java:548)
        at mlsub.typing.lowlevel.Engine$Constraint.
createInitialContext(Engine.java:934)
        at mlsub.typing.lowlevel.Engine.createInitialContext(Engine.java:
653)
        at mlsub.typing.Typing.createInitialContext(Typing.java:139)
        at bossa.modules.Package.freezeGlobalContext(Package.java:298)
        at mlsub.compilation.fun.loadComponent(load.nice:26)
        at mlsub.compilation.dispatch.loadComponent(dispatch.nice)
        at mlsub.compilation.fun$load.lambda22(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:126)
        at nice.lang.dispatch.foreach(package.nicei: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 nice.tools.compiler.dispatch.compile(dispatch.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)

-- Larry Clapp
[email protected]


----------------------------------------------------------------------

>Comment By: Daniel Bonniot (bonniot)
Date: 2004-08-13 18:54

Message:
Logged In: YES 
user_id=88952

Larry and me could actually reproduce a similar problem by using an IBM JVM 1.4.1 on linux. It's not clear at this point if this is a bug in IBM's JVM, or in the java compiler used to compile nice. It worked after recompilation of Nice from source.

At the moment, for people experimenting such a problem, you should either use a non-IBM JVM, or download the source version of Nice and recompile it.


----------------------------------------------------------------------

Comment By: Daniel Bonniot (bonniot)
Date: 2004-03-24 12:18

Message:
Logged In: YES 
user_id=88952

Thanks for the report. I tried the exact same version of the
Nice compiler on Linux, with both Java version 1.4.1 from
blackdown and 1.4.2 from Sun without any problem. Besides,

Exception in thread "main" java.lang.IllegalAccessError:
mlsub.typing.
lowlevel.BitMatrix tried to access method
java/lang/Object.clone()
Ljava/lang/Object;
        at
mlsub.typing.lowlevel.BitMatrix.clone(BitMatrix.java:327)

seems strange, since BitMatrix is a subclass of Object, so
calling the protected method clone() is perfectly legal.
This makes me suspect that you are experimenting a JVM bug.
Could you try another version of the JVM or another machine?
Another option to workaround this bug would be to add the
"-noverify" option to the java command. It is not documented
in 'java -help', although it is recognized, so I'm not sure
if it has any effect.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=922057&group_id=12788


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285