jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Compiler Plugin
  • MCOMPILER-142

classes complied by plexus-compiler-eclipse get 'source not found' problem in eclipse class file editor

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 2.3.2
  • Fix Version/s: None
  • Labels:
    None

Description

All classes complied by plexus-compiler-eclipse will get 'source not found' problem in eclipse class file editor which is opened when you access the jar file containing the compiled classes even though you have source jar associated with the jar file. A guy met the same problem as mine, see http://www.mail-archive.com/users@maven.apache.org/msg80120.html. The following is his observation on this problem:

After having a look into the generated classes, I found that the debug
information is different from the one I compiled with eclipse
jdt. For example,

Debug information from eclipse jdt compiler
Source File Name: MyClass.java

Debug information from plexus-compiler-eclipse maven plugin
Source File Name: com.mydomain.myproject.MyClass

This probable causes the problem.

Rice

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Anthony O. added a comment - 08/Apr/11 10:17 AM

I've got the exact same problem !

Show
Anthony O. added a comment - 08/Apr/11 10:17 AM I've got the exact same problem !
Hide
Permalink
Fco Javier Coira added a comment - 31/May/11 2:11 AM

Some new?. I´ve got this problem. Are there some way for debugging?

Show
Fco Javier Coira added a comment - 31/May/11 2:11 AM Some new?. I´ve got this problem. Are there some way for debugging?
Hide
Permalink
James E added a comment - 01/Jun/11 6:18 PM

I had this same problem as well.

Personally, I got around it by just using the default compiler instead...

Show
James E added a comment - 01/Jun/11 6:18 PM I had this same problem as well. Personally, I got around it by just using the default compiler instead...
Hide
Permalink
Anthony O. added a comment - 06/Jun/11 4:12 AM

Same here, I used the default compiler instead ... but this doesn't solve the problem !

Show
Anthony O. added a comment - 06/Jun/11 4:12 AM Same here, I used the default compiler instead ... but this doesn't solve the problem !
Hide
Permalink
James E added a comment - 06/Jun/11 11:34 AM

Completely agreed. Just thought I'd get some more action on this bug so they'd realize it was a problem.

I had to refactor some of my code in order to make it compile with the default compiler, so I definitely don't consider it a fix.

Show
James E added a comment - 06/Jun/11 11:34 AM Completely agreed. Just thought I'd get some more action on this bug so they'd realize it was a problem. I had to refactor some of my code in order to make it compile with the default compiler, so I definitely don't consider it a fix.
Hide
Permalink
Aaron LaBella added a comment - 20/Dec/11 7:09 AM

Thanks Kristian... just for the record – I actually submitted this patch to the plexus-compilers in github after many hours debugging this issue in Eclipse and finally determining the root cause of the issue.

Show
Aaron LaBella added a comment - 20/Dec/11 7:09 AM Thanks Kristian... just for the record – I actually submitted this patch to the plexus-compilers in github after many hours debugging this issue in Eclipse and finally determining the root cause of the issue.
Hide
Permalink
Kristian Rosenvold added a comment - 20/Dec/11 7:44 AM

Sorry, my bad. That should be properly credited now. https://github.com/sonatype/plexus-compiler/commit/7d7e832dd72b97221280ffbf6f56e56edbb890e6

Show
Kristian Rosenvold added a comment - 20/Dec/11 7:44 AM Sorry, my bad. That should be properly credited now. https://github.com/sonatype/plexus-compiler/commit/7d7e832dd72b97221280ffbf6f56e56edbb890e6

People

  • Assignee:
    Kristian Rosenvold
    Reporter:
    Rice Yeh
Vote (2)
Watch (2)

Dates

  • Created:
    05/Dec/10 7:58 PM
    Updated:
    20/Dec/11 7:44 AM
    Resolved:
    20/Dec/11 5:42 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.