Bugs item #2675036, was opened at 2009-03-09 07:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=2675036&group_id=44253
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: Language Levels
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mathias Ricken (mgricken)
Assigned to: Nobody/Anonymous (nobody)
Summary: import statement is misunderstood
Initial Comment:
The import statement in this listing is somehow misunderstood.
import java.math.BigInteger;
class Fact {
static BigInteger fact(BigInteger n) {
if (n.equals.BigInteger.ZERO) return BigInteger.ONE;
return fact(n.subtract(BigInteger.ONE)).multiply(n);
}
}
It generates the errors (and more):
11 errors found:
File: D:\Desktop\Fact.dj2 [line: 1]
Error: The class java.math.BigInteger is not in the right package. Perhaps you meant to package it?
File: D:\Desktop\Fact.dj2 [line: 1]
Error: java.math.BigInteger is not public, and thus cannot be seen here
Changing the import statement to
import java.math.*;
works.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=2675036&group_id=44253
|