Buggy code:
public long id = 0 ; public MealModel meal = null ; public String name = "" ; private MyListItem ( long id ) { } @ Override public int compareTo ( MyServiceImpl . MyListItem item ) { } } private static final Logger logger = Logger . getLogger ( MyServiceImpl . class . getName ( ) ) ; static final int MAX_COUNT = 4000 ; private static boolean areFriends ( String uid ) { } private static NutritionDayModel calculateEnergyFromTimes ( PersistenceManager pm , List < Time > times , String UID ) { } public static Exercise duplicateExercise ( Exercise e ) { } private static FoodInMeal duplicateFood ( FoodInMeal f ) throws ConnectionException { } private static Meal duplicateMeal ( Meal m ) throws ConnectionException { } private static MealInTime duplicateMeal ( MealInTime m ) throws ConnectionException { } private static Time duplicateTime ( Time t ) throws ConnectionException { } private static Workout duplicateWorkout ( Workout w ) throws ConnectionException { } private String getUid ( ) { } @ SuppressWarnings ( "unchecked" ) static String _getUid ( String coachModeUid ) { } private Object [ ] getUidAndLocale ( ) { } @ SuppressWarnings ( "unchecked" ) public static boolean hasPermission ( PersistenceManager pm , int target , String ourUid , String uid ) { } public static Date stripTime ( Date date , boolean isStart ) { } @ Override public UserModel getUser ( ) throws ConnectionException { } @ Override public CardioModel addCardio ( CardioModel cardio ) throws ConnectionException { } @ Override public CardioValueModel addCardioValue ( CardioModel cardio , CardioValueModel value ) throws ConnectionException { } @ Override public CommentModel addComment ( CommentModel comment ) throws ConnectionException { } @ Override public ExerciseModel addExercise ( ExerciseModel exercise ) throws ConnectionException { } @ Override public ExerciseNameModel addExercisename ( ExerciseNameModel name ) throws ConnectionException { } public FoodModel addFood ( FoodModel food ) throws ConnectionException { } @ Override public FoodNameModel addFoodname ( FoodNameModel name ) throws ConnectionException { } @ Override public List < FoodNameModel > addFoodnames ( List < FoodNameModel > names ) throws ConnectionException { } @ Override public GuideValueModel addGuideValue ( GuideValueModel model ) throws ConnectionException { } @ Override public MealModel addMeal ( MealModel meal ) throws ConnectionException { } @ Override public List < MealModel > addMeals ( List < MealModel > meals ) throws ConnectionException { } @ Override public MeasurementModel addMeasurement ( MeasurementModel meal ) throws ConnectionException { } @ Override public MeasurementValueModel addMeasurementValue ( MeasurementModel measurement , MeasurementValueModel value ) throws ConnectionException { } @ SuppressWarnings ( { "unchecked" , "deprecation" } ) @ Override public RoutineModel addRoutine ( RoutineModel routine ) throws ConnectionException { } @ SuppressWarnings ( { "unchecked" , "deprecation" } ) @ Override public List < RoutineModel > addRoutines ( List < RoutineModel > routines ) throws ConnectionException { } @ Override public RunModel addRun ( RunModel meal ) throws ConnectionException { } @ Override public RunValueModel addRunValue ( RunModel run , RunValueModel value ) throws ConnectionException { } @ Override public TicketModel addTicket ( TicketModel ticket ) throws ConnectionException { MyServiceImpl . logger . log ( Level . FINE , "addTicket()" ) ; final String UID = getUid ( ) ; if ( UID == null ) { return null ; } try { Properties props = new Properties ( ) ; Session session = Session . getDefaultInstance ( props , null ) ; Message msg = new javax . mail . internet . MimeMessage ( session ) ; msg . setFrom ( new InternetAddress ( "antti@motiver.fi" , "Motiver.fi<seq2seq4repair_space>user" ) ) ; msg . addRecipient ( TO , new InternetAddress ( "jira@delect.atlassian.net" , "JIRA" ) ) ; msg . setSubject ( ticket . getTitle ( ) ) ; <START_BUG> msg . setText ( ticket . getTitle ( ) ) ; <END_BUG> Transport . send ( msg ) ; } catch ( Exception e ) { MyServiceImpl . logger . log ( Level . SEVERE , "addTicket" , e ) ; throw new ConnectionException ( "addTicket" , e . getMessage ( ) ) ; } return ticket ; } @ SuppressWarnings ( { "unchecked" , "deprecation" } ) @ Override public TimeModel addTime ( TimeModel time ) throws ConnectionException { } @ SuppressWarnings ( { "deprecation" , "unchecked" } ) @ Override public TimeModel [ ] addTimes ( TimeModel [ ] timesParam ) throws ConnectionException { } @ Override public WorkoutModel addWorkout ( WorkoutModel workout ) throws ConnectionException { } @ SuppressWarnings ( "deprecation" ) @ Override public List < WorkoutModel > addWorkouts ( List < WorkoutModel > workouts ) throws ConnectionException { } @ Override @ SuppressWarnings ( "unchecked" ) public Boolean combineExerciseNames ( Long firstId , Long [ ] ids ) throws ConnectionException { } @ Override @ SuppressWarnings ( "unchecked" ) public Boolean combineFoodNames ( Long firstId , Long [ ] ids ) { } public String convertStreamToString ( InputStream is ) { } @ Override public Boolean dummy ( MicroNutrientModel model ) { } @ Override public MonthlySummaryExerciseModel dummy2 ( MonthlySummaryExerciseModel model ) { } @ SuppressWarnings ( "unchecked" ) @ Override public Boolean fetchRemoveAll ( Boolean removeTraining , Boolean removeCardio , Boolean removeNutrition , Boolean removeMeasurement ) throws ConnectionException { } @ Override public Boolean fetchSaveCardios ( List < CardioModel > cardios , List < List < CardioValueModel > > values ) throws ConnectionException { } @ Override public Boolean fetchSaveFoodNames ( List < FoodNameModel > names ) throws ConnectionException { } @ Override public Boolean fetchSaveGuideValues ( List < GuideValueModel > values ) throws ConnectionException { } @ Override public Boolean fetchSaveMeals ( List < MealModel > meals ) throws ConnectionException { } @ Override @ SuppressWarnings ( "unchecked" ) public Boolean fetchSaveMeasurements ( MeasurementModel measurement , List < MeasurementValueModel > values ) throws ConnectionException { } @ Override public Boolean fetchSaveRoutines ( List < RoutineModel > routines , List < List < WorkoutModel > > workouts ) throws ConnectionException { }

Fix:
msg . setText ( ticket . getDesc ( ) ) ;