Including net in import statements

Hi,

Shouldn't "net" be included in the list of top level package names

that import can use ?

import net.sf.XPTO fails

thanks,
Ricardo


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Ricardo T. wrote:

Hi,

Shouldn’t “net” be included in the list of top level package names
that import can use ?

import net.sf.XPTO fails

thanks,
Ricardo
No, I would say that net is to general - it will cause problems.
And it’s not such a huge thing to do
import Java::net.sf.XPTO
instead.

Cheers


Ola B. (http://ola-bini.blogspot.com)
JRuby Core Developer
Developer, ThoughtWorks Studios (http://studios.thoughtworks.com)
Practical JRuby on Rails (http://apress.com/book/view/9781590598818)

“Yields falsehood when quined” yields falsehood when quined.


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Hi,

ok, I understand. but,

Java::net.sf.XPTO  -> this works
import Java::net.sf.XPTO  -> this doesn't

thanks,
Ricado

Ola B. wrote:

No, I would say that net is to general - it will cause problems.
And it’s not such a huge thing to do
import Java::net.sf.XPTO
instead.

Cheers


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Ricardo T. wrote:

Hi,

ok, I understand. but,

Java::net.sf.XPTO → this works
import Java::net.sf.XPTO → this doesn’t
Doesn’t work in what way?

Cheers


Ola B. (http://ola-bini.blogspot.com)
JRuby Core Developer
Developer, ThoughtWorks Studios (http://studios.thoughtworks.com)
Practical JRuby on Rails (http://apress.com/book/view/9781590598818)

“Yields falsehood when quined” yields falsehood when quined.


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

An example using a class from jasperreports :

import Java::net.sf.jasperreports.engine.JREmptyDataSource

NameError: undefined local variable or method net' for (Object):Object from (eval):2:ininclude_class’

thanks,
Ricardo

Ola B. wrote:


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email