Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#3392 closed defect (fixed)

[PATCH] reinsert one line that was deleted with r2039

Reported by: bastiK Owned by: team
Priority: trivial Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

This part of [2039]:

-                                    manifest = null;
+                                    // Is null anyway
+                                    //manifest = null;

needs to be reverted because strange things happen now.

Attachments (1)

one-line.patch (745 bytes) - added by bastiK 14 years ago.

Download all attachments as: .zip

Change History (5)

Changed 14 years ago by bastiK

Attachment: one-line.patch added

comment:1 Changed 14 years ago by Gubaer

Resolution: invalid
Status: newclosed

The patch is not necessary. manifest = null is redundant at this position (at least that's what eclipse tells me)

comment:2 Changed 14 years ago by bastiK

Resolution: invalid
Status: closedreopened

Eclipse seems to be pretty smart. However that does not solve the problem. :)

How to reproduce:

  • open preferences dialog
  • load some plugins (if you haven't done so already)
  • the following text is printed over and over to the console:
    Sep 4, 2009 8:12:23 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Ant-Version.
    Ensure that the manifest does not have duplicate entries, and
    that blank lines separate individual sections in both your
    manifest and in the META-INF/MANIFEST.MF entry in the jar file.
    Sep 4, 2009 8:12:23 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Created-By.
    Ensure that the manifest does not have duplicate entries, and
    that blank lines separate individual sections in both your
    manifest and in the META-INF/MANIFEST.MF entry in the jar file.
    Sep 4, 2009 8:12:23 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Author.
    Ensure that the manifest does not have duplicate entries, and
    that blank lines separate individual sections in both your
    manifest and in the META-INF/MANIFEST.MF entry in the jar file.
    Sep 4, 2009 8:12:23 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Plugin-Class.
    Ensure that the manifest does not have duplicate entries, and
    that blank lines separate individual sections in both your
    manifest and in the META-INF/MANIFEST.MF entry in the jar file.
    Sep 4, 2009 8:12:23 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Plugin-Date.
    Ensure that the manifest does not have duplicate entries, and
    that blank lines separate individual sections in both your
    manifest and in the META-INF/MANIFEST.MF entry in the jar file.
    Sep 4, 2009 8:12:23 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Plugin-Mainversion.
    Ensure that the manifest does not have duplicate entries, and
    that blank lines separate individual sections in both your
    manifest and in the META-INF/MANIFEST.MF entry in the jar file.
    Sep 4, 2009 8:12:23 PM java.util.jar.Attributes read
    WARNING: Duplicate name in Manifest: Plugin-Version.
    Ensure that the manifest does not have duplicate entries, and
    that blank lines separate individual sections in both your
    manifest and in the META-INF/MANIFEST.MF entry in the jar file.
    Sep 4, 2009 8:12:23 PM java.util.jar.Attributes read
    ...
    

(r2054, complied with Sun Java 1.5 on Ubuntu hardy)

comment:3 Changed 14 years ago by stoecker

Resolution: fixed
Status: reopenedclosed

(In [2056]) close #3392

comment:4 Changed 14 years ago by stoecker

Eclipse is faulty here. It does not correctly detect side effects inside the for loop. The assumption that manifest is null will usually be wrong after the first for loop has been done (or BTW the whole function would be useless).

Do not rely to much on automated logic. It is faulty too often.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.