This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 92663 - Want to attach source code to jar file directly.
Summary: Want to attach source code to jar file directly.
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-17 02:47 UTC by abs
Modified: 2008-03-04 07:59 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abs 2007-01-17 02:47:46 UTC
I want to attach source code to jar file directly. I mean, I often debug inside
of library's code, so I wanto to attach source code to library's jar file.

I know it is possible, if I use library manager. But on web project, jar files
are usually put into WEB-INF/lib and share it through svn or cvs. So I have to
change my local configuration and can't commit nbproject related files. It's too
much of bother.

So I use eclipse, if I debug library's code. Because eclipse has ability to
attach source code to jar file and it works very good. I need same feature on
NetBeans.
Comment 1 _ wadechandler 2007-06-19 18:20:39 UTC
This is definitely something which is needed. It would work just to have a new project area for extra sources for
debugging. Currently you can sort of do this, but it isn't great. You have to create a project which you can open (you
won't ever compile it so it doesn't matter if you don't have all the libraries available) and then go to project
properties and add multiple source folders for the other sources you want to debug into. If they match the binaries
stepping into calls into the binary calls (even if you did not build them) should work.
Comment 2 Tomas Zezula 2007-09-19 12:14:57 UTC
There is already filled requirement for it, also there is already a prototype of shared libraries which solves this
problem. Unfortunately it will not be a part of NB 6.0, hopefully 6.1
Comment 3 emi 2007-11-22 14:34:47 UTC
This seems to me a duplicate of #44035 ( http://www.netbeans.org/issues/show_bug.cgi?id=44035 )
Comment 4 abs 2007-11-23 03:38:49 UTC
If my understanding is correct, I think issue 44035 is only talking about LibraryManager.
http://www.netbeans.org/issues/show_bug.cgi?id=44035 

So this issue is slightly different. I don't want to create library, I just add jar files to project
and attach source code to it. Eclipse has already such functionality.
Comment 5 Tomas Zezula 2007-11-23 07:25:48 UTC
To abs: Yes, I am working on it to 6.1.
Comment 6 abs 2008-02-12 14:48:27 UTC
Will this function be in part of NetBeans 6.1? 6.1 has only two milestone release and milestone 1 is already released.
I've checked NetBeans wiki, but I couldn't find any plan to implement this feature. So what is the status of this
issue?
Comment 7 Tomas Zezula 2008-02-12 16:36:09 UTC
Already integrated in trunk (night builds), will be part of Milestone 2.
Comment 8 abs 2008-03-04 00:07:52 UTC
I've confirmed this in 6.1 build. But it has one bad point. That is compile errors of attached source.
Why does NetBeans shows compile errors and warnings of library code? Eclipse doesn't show that.

Should I create new issue for this?
Comment 9 abs 2008-03-04 00:16:08 UTC
I've confirmed this in 6.1 build. But it has one bad point. That is compile errors of attached source.
Why does NetBeans shows compile errors and warnings of library code? Eclipse doesn't show that.

Should I create new issue for this?
Comment 10 Tomas Zezula 2008-03-04 07:59:14 UTC
There is already issue for it, see issue #128353. The attached source for the jar doesn't provide correct classpath & source level to the java infrastructure.