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

Collapse All | Expand All

(-)model/org/eclipse/jdt/internal/core/util/BindingKeyParser.java (-1 / +4 lines)
Lines 445-450 Link Here
445
	private boolean hasTypeName = true;
445
	private boolean hasTypeName = true;
446
446
447
	private boolean isMalformed;
447
	private boolean isMalformed;
448
	
449
	private boolean isParsingThrownExceptions = false;
448
450
449
	public BindingKeyParser(BindingKeyParser parser) {
451
	public BindingKeyParser(BindingKeyParser parser) {
450
		this(""); //$NON-NLS-1$
452
		this(""); //$NON-NLS-1$
Lines 652-658 Link Here
652
					malformedKey();
654
					malformedKey();
653
					return;
655
					return;
654
			}
656
			}
655
		} else if (this.scanner.isAtTypeVariableStart()) {
657
		} else if (!this.isParsingThrownExceptions && this.scanner.isAtTypeVariableStart()) {
656
			parseTypeVariable();
658
			parseTypeVariable();
657
		} else if (this.scanner.isAtWildcardStart()) {
659
		} else if (this.scanner.isAtWildcardStart()) {
658
			parseWildcard();
660
			parseWildcard();
Lines 842-847 Link Here
842
		while (this.scanner.isAtThrownStart() && !this.isMalformed) {
844
		while (this.scanner.isAtThrownStart() && !this.isMalformed) {
843
			this.scanner.skipThrownStart();
845
			this.scanner.skipThrownStart();
844
			BindingKeyParser parser = newParser();
846
			BindingKeyParser parser = newParser();
847
			parser.isParsingThrownExceptions = true;
845
			parser.parse();
848
			parser.parse();
846
			consumeParser(parser);
849
			consumeParser(parser);
847
			consumeException();
850
			consumeException();

Return to bug 336451