View | Details | Raw Unified | Return to bug 256735 | Differences between
and this patch

Collapse All | Expand All

(-)model/org/eclipse/jdt/internal/core/builder/AbstractImageBuilder.java (-3 / +10 lines)
Lines 711-717 Link Here
711
			Object[] allValues = new Object[allNames.length];
711
			Object[] allValues = new Object[allNames.length];
712
			// standard attributes
712
			// standard attributes
713
			int index = 0;
713
			int index = 0;
714
			allValues[index++] = problem.getMessage(); // message
714
			String message = problem.getMessage();
715
			if (message.length() > 2000) { // truncate the message if too long - markers cannot store more than 64kbytes property value
716
				message = message.substring(0, 2000) + "..."; //$NON-NLS-1$
717
			}
718
			allValues[index++] = message; // message
715
			allValues[index++] = problem.isError() ? S_ERROR : S_WARNING; // severity
719
			allValues[index++] = problem.isError() ? S_ERROR : S_WARNING; // severity
716
			allValues[index++] = new Integer(id); // ID
720
			allValues[index++] = new Integer(id); // ID
717
			allValues[index++] = new Integer(problem.getSourceStart()); // start
721
			allValues[index++] = new Integer(problem.getSourceStart()); // start
Lines 759-769 Link Here
759
				System.arraycopy(attributeNames, 0, allNames, 0, standardLength);
763
				System.arraycopy(attributeNames, 0, allNames, 0, standardLength);
760
				System.arraycopy(extraAttributeNames, 0, allNames, standardLength, extraLength);
764
				System.arraycopy(extraAttributeNames, 0, allNames, standardLength, extraLength);
761
			}
765
			}
762
766
			String message = task.getMessage();
767
			if (message.length() > 2000) { // truncate the message if too long - markers cannot store more than 64kbytes property value
768
				message = message.substring(0, 2000) + "..."; //$NON-NLS-1$
769
			}
763
			Object[] allValues = new Object[allNames.length];
770
			Object[] allValues = new Object[allNames.length];
764
			// standard attributes
771
			// standard attributes
765
			int index = 0;
772
			int index = 0;
766
			allValues[index++] = task.getMessage();
773
			allValues[index++] = message;
767
			allValues[index++] = priority;
774
			allValues[index++] = priority;
768
			allValues[index++] = new Integer(task.getID());
775
			allValues[index++] = new Integer(task.getID());
769
			allValues[index++] = new Integer(task.getSourceStart());
776
			allValues[index++] = new Integer(task.getSourceStart());

Return to bug 256735