Well, it all depends. If there is a stock-for-stock swap that complies with the IRC, there will be a carryover tax basis and carryover holding period. Which means if you paid $1,000 for your shares one-year ago, your tax basis in JPM is $1,000 and it is considered held for more than one-year. You will have a taxable gain only if you sell the stock.
Most mergers that I've dealt with are tax-deferred.
Sorry, I don't have time to find the link to the code section. I'm busy at work.