[ nice-Bugs-1579437 ] unable to access protected vars from Java class

"SourceForge.net" <[email protected]> Tue, 17 Oct 2006 23:08:07 -0700
Newsgroups gmane.comp.lang.nice.devel
Message-ID <[email protected]>
Bugs item #1579437, was opened at 2006-10-17 23:08
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=1579437&group_id=12788

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Isaac Gouy (igouy)
Assigned to: Nobody/Anonymous (nobody)
Summary: unable to access protected vars from Java class

Initial Comment:
Defined Nice class that extends BufferedInputStream,
but unable to access protected variables defined in
BufferedInputStream from the Nice class.

No problems with this Java

import java.io.*;

public class TestOne extends BufferedInputStream {

   public TestOne(InputStream in){ super(in); }

   int testmarkpos(){ return markpos; }

   public static void main(String[] args) {
      System.out.println( (new
TestOne(System.in)).testmarkpos() );
   } 
}


Problems with this Nice

import java.io.*;

class TestTwo extends BufferedInputStream {

   int testmarkpos(){ return markpos; }

   void main(String[] args) {
      println( (new TestTwo(System.in)).testmarkpos() );
   } 
}




 $  /opt/nice-0.9.12/bin/nicec -d . --sourcepath .. -a
t.jar TestTwo
nice.lang: parsing
TestTwo: parsing

~/tmp/TestTwo/TestTwo.nice: line 5, column 36:
markpos is not declared
compilation failed with 1 error


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

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

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642