Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Issue 8588038: Addresses a ClassCastException seen in the editor from MemberBuilder (Closed)

Created:
9 years, 1 month ago by zundel
Modified:
9 years, 1 month ago
Reviewers:
mmendez, codefu
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Addresses a ClassCastException seen in the editor from MemberBuilder Added a simple test to protect against the class cast exception and a JUnit test to exercise it. BUG=413 Committed: https://code.google.com/p/dart/source/detail?r=1663

Patch Set 1 #

Total comments: 6

Patch Set 2 : Added a distinct message for too many qualifiers #

Total comments: 1

Patch Set 3 : Unit test added for 'internal error' case I removed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -10 lines) Patch
M compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java View 1 2 chunks +10 lines, -6 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java View 1 2 chunks +4 lines, -0 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java View 2 chunks +2 lines, -2 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java View 1 2 chunks +38 lines, -2 lines 0 comments Download
M tests/language/language.status View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
A tests/language/src/DefaultFactoryLibrary.dart View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
A tests/language/src/DefaultFactoryLibraryTest.dart View 1 2 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
zundel
9 years, 1 month ago (2011-11-17 20:38:00 UTC) #1
codefu
http://codereview.chromium.org/8588038/diff/1/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java File compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java (right): http://codereview.chromium.org/8588038/diff/1/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java#newcode304 compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java:304: "class Object {}", ws? http://codereview.chromium.org/8588038/diff/1/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java#newcode311 compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java:311: public void testBadConstFactory() ...
9 years, 1 month ago (2011-11-17 21:10:50 UTC) #2
zundel
After a discussion with John, I added a distinct message for the situation where too ...
9 years, 1 month ago (2011-11-18 00:29:51 UTC) #3
zundel
http://codereview.chromium.org/8588038/diff/4001/compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java File compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java (right): http://codereview.chromium.org/8588038/diff/4001/compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java#newcode183 compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java:183: // Nothing else is valid. Already warned in getMethodKind(). ...
9 years, 1 month ago (2011-11-18 13:05:45 UTC) #4
zundel
I created a unit test case and Peter looked it over and said it seemed ...
9 years, 1 month ago (2011-11-18 15:27:03 UTC) #5
mmendez
9 years, 1 month ago (2011-11-18 16:32:23 UTC) #6
LGTM

On 2011/11/18 15:27:03, zundel wrote:
> I created a unit test case and Peter looked it over and said it seemed
> reasonable.  Even after removing the 'internal error' there is no crash and
> still fails with intelligible errors, and the 'internal error' gets in the way
> of reporting some other problems.

Powered by Google App Engine
This is Rietveld 408576698