Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

書き込み前のコールバックの修正 #25

Merged
merged 1 commit into from Feb 20, 2017

Conversation

mygreen
Copy link
Owner

@mygreen mygreen commented Feb 20, 2017

事象

書き込み時のコールバック @CsvPreWrite を利用して、Beanのフィールドの値を編集しても、出力したファイルに反映されない。

原因

コールバック関数を呼ぶ前に、Beanのフィールドの値を抽出して、それをそのまま書き込んでいたため。

対策

そのため、コールバック関数を呼んだ後に、Beanのフィールドの値を抽出するよう修正。
ただし、書き込み前の CsvContext#rowSource の値は空になります。

@mygreen mygreen merged commit dc5b272 into master Feb 20, 2017
@mygreen mygreen deleted the hotfix/write_callback branch February 20, 2017 13:01
@mygreen mygreen added the bug label Feb 20, 2017
@mygreen mygreen added this to the 2.0.3 milestone Feb 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant