How to Aliasing Java Class Names?

9,909 views
Skip to first unread message

JvJ

unread,
Oct 21, 2012, 9:57:08 PM10/21/12
to clo...@googlegroups.com
I'm trying to import some classes from a library (jpl), which have names already taken by java.lang classes.

When I try to import jpl.Float and jpl.Integer, I get exceptions due to name clashes.  Is there a way to alias the class names so that I can use them?

Andy Fingerhut

unread,
Oct 21, 2012, 10:08:46 PM10/21/12
to clo...@googlegroups.com
As mentioned in a recent thread "class name clashes on importing classes of same name from different Java package", you can use the classes with fully qualified names without importing them at all.

I am not aware of any way to alias them.

Andy
Reply all
Reply to author
Forward
0 new messages