Menu

#35 MainClass.getPackage().getImplementationTitle() etc...

closed-fixed
None
5
2010-06-15
2009-11-07
Nobby
No

In the current release 0.96 the methods
MainClass.getPackage().getImplementationTitle()
MainClass.getPackage().getImplementationVendor()
MainClass.getPackage().getImplementationVersion()
etc. do not return the information from main/main.jar correctly. Also all other jars loaded from lib do not correctly return the information contained in the jar file.
I have attached a patched version from com.simontuffs.onejar.JarClassLoader that at least sets/returns this information correctly.
While doing that patch, I also figured out, that the sealed attribute in the current definePackage method is not evaluated correctly. I changed this, in order, that no MalformedURLException is thrown anymore, as sealed is set to false in many jar files. Unfortunately, I think, the source URL is currently not always passed correctly as well and might need additinal review...

Discussion

  • Nobby

    Nobby - 2009-11-07

    My patched JarClassLoader...

     
  • P. Simon Tuffs

    P. Simon Tuffs - 2010-05-29
    • assigned_to: nobody --> simontuffs
     
  • P. Simon Tuffs

    P. Simon Tuffs - 2010-05-29

    Thanks for this submission, I'll try to roll it into 0.97

     
  • P. Simon Tuffs

    P. Simon Tuffs - 2010-05-29

    Moving to Bugs tracker.

     
  • P. Simon Tuffs

    P. Simon Tuffs - 2010-05-31
    • status: open --> open-accepted
     
  • P. Simon Tuffs

    P. Simon Tuffs - 2010-05-31
    • status: open-accepted --> pending-fixed
     
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.