[MGNLIMG-91] Cannot find symbol during build Created: 05/Mar/12  Updated: 02/Apr/13  Resolved: 16/Nov/12

Status: Closed
Project: Imaging
Component/s: None
Affects Version/s: 2.0
Fix Version/s: 2.1.2, 2.2.2, 3.0

Type: Bug Priority: Neutral
Reporter: Ondrej Chytil Assignee: Jan Haderka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Imaging module build seems to randomly produce errors during build phase:

[INFO] /home/chytilo/help/imaging-2.2/target/checkout/magnolia-module-imaging/src/main/java/info/magnolia/imaging/operations/text/BasicTextRenderer.java:[75,43] cannot find symbol
[INFO] symbol  : method getPositionFor(float,int,int)
[INFO] location: class info.magnolia.imaging.operations.text.HorizontalAlignment
[INFO] 
[INFO] /home/chytilo/help/imaging-2.2/target/checkout/magnolia-module-imaging/src/main/java/info/magnolia/imaging/operations/text/BasicTextRenderer.java:[76,41] cannot find symbol
[INFO] symbol  : method getPositionFor(float,int,int)
[INFO] location: class info.magnolia.imaging.operations.text.VerticalAlignment


 Comments   
Comment by Jan Haderka [ 16/Nov/12 ]

seems like others have similar issue:
http://stackoverflow.com/questions/9505857/workaround-for-javac-compilation-order-bug-in-maven

Comment by Jan Haderka [ 16/Nov/12 ]

and also http://bugs.sun.com/view_bug.do?bug_id=6199662

Comment by Jan Haderka [ 16/Nov/12 ]

Solution for this issue is actually more a workaround for bug in compiler.

When re-evaluating possible removal of this workaround in the future, please beware that issue occurs only in specific order of compiling the classes as described in linked resources and not always!

Generated at Mon Feb 12 02:12:11 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.