Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » boolean ClasspathEntry.equals(IClasspathEntry entry) method
boolean ClasspathEntry.equals(IClasspathEntry entry) method [message #96418] Wed, 17 September 2003 02:39 Go to next message
Eclipse UserFriend
This is a multi-part message in MIME format.

------=_NextPart_000_0008_01C37CF7.34DAB2A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi All,

the above method evaluates if two clp entries are equal. During =
evaluation
it checks the isExported flag of the clp entry. If it differs it returns =
false. But
for obvious reasons two clp entries that only differ in the export flag =
are not
allowed by the JavaModel (an exception is thrown when the second clp =
entry
is added).

IMO therefore the equals method should not evaluate isExported at all. =
Is this
a bug or am I missing something?

Regards,

Andr=E9
------=_NextPart_000_0008_01C37CF7.34DAB2A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1226" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi All,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>the above method evaluates if two clp =
entries are=20
equal. During evaluation</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>it checks the isExported flag of the =
clp entry. If=20
it differs it returns false. But</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>for obvious reasons two clp entries =
that only=20
differ in the export flag are not</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>allowed by the JavaModel (an exception =
is thrown=20
when the second clp entry</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>is added).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>IMO therefore the equals method should =
not evaluate=20
isExported at all. Is this</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>a bug or am I missing =
something?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><BR>Andr=E9</FONT></DIV></BODY></HTML>

------=_NextPart_000_0008_01C37CF7.34DAB2A0--
Re: boolean ClasspathEntry.equals(IClasspathEntry entry) method [message #96447 is a reply to message #96418] Wed, 17 September 2003 05:01 Go to previous message
Eclipse UserFriend
They are not allowed on the same project, but 2 different projects can have
IClasspathEntries that only differ in the export flag.

Jerome

"aj" <andre.jagusch@sap.com> wrote in message
news:bk8vgd$847$1@eclipse.org...
Hi All,

the above method evaluates if two clp entries are equal. During evaluation
it checks the isExported flag of the clp entry. If it differs it returns
false. But
for obvious reasons two clp entries that only differ in the export flag are
not
allowed by the JavaModel (an exception is thrown when the second clp entry
is added).

IMO therefore the equals method should not evaluate isExported at all. Is
this
a bug or am I missing something?

Regards,

Andr
Previous Topic:how to do ,i want different encoding when edit java file & builder java class?
Next Topic:Plugin export wizard: adding resources + correct folder information?
Goto Forum:
  


Current Time: Mon Jun 02 03:46:28 EDT 2025

Powered by FUDForum. Page generated in 0.03686 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top