Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: package problem

 
Wagner Danda Da Silva Filho
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Quote taken from "URLYBird, version 1.2.3":

Your data access class must be called "Data.java", must be in a package called "suncertify.data", and must implement the following interface
package suncertify.db;
public interface DBAccess
{
// Reads a record from the file. Returns an array where each
// element is a record value.
public String [] readRecord(long recNo)
throws RecordNotFoundException;
...
Any unimplemented exceptions in this interface must all be created as member classes of the suncertify.data package...

Following exacly what Sun says, I would have this situation:
suncertify.data.Data (implements DBAccess)
suncertify.data.RecordNotFoundException
suncertify.db.DBAccess (may throws suncertify.data.RecordNotFoundException)
Is this correct or is a known bug in Sun's Spec?
If it�s correct, than I must insert "import suncertify.data.*" in the DBAccess interface code. Would this be correct?
Thanks in advance,
Wagner Danda
[ November 26, 2003: Message edited by: Wagner da Silva ]
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Is this correct or is a known bug in Sun's Spec?

It is better for you to send an Email to SUN to clarify the problem.
IMO, I will stictly follow what SUN gives me.


If it�s correct, than I must insert "import suncertify.data.*" in the DBAccess interface code. Would this be correct?

Yes.
Nick
[ November 26, 2003: Message edited by: Nicholas Cheung ]
 
Stephen Galbraith
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know it doesn't really help you, but in URLyBird 1.3.1 this instruction line is similiar except
(Data) must be in a package called "suncertify.db",

but, if in doubt follow what Sun say
 
Fred Beltr�o
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also get URLyBird 1.2.3 and the instructions.html seems correct:

{

Your data access class must be called "Data.java", must be in a package called "suncertify.db", and must implement the following interface:




Best Regards,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic