Vector<Integer> kann nicht geparst werden #224
Labels
No Label
Codegen
confirmed
duplicate
Eclipse-Plugin
Feature Request
generics
in progress
invalid
JavaCompilerCore
needs info
Parser
Trash
Type
Unify
won't fix
works for me
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: JavaTX/JavaCompilerCore#224
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
import java.util.Vector;
class Matrix extends Vector<Vector> {
methode(Matrix m) {
Vector<Vector> i;
methode(i);
}
}
liefert folgenden Fehler
de.dhbwstuttgart.exceptions.TypeinferenceException: Der Typ Vector ist nicht vorhanden
at de.dhbwstuttgart.parser.SyntaxTreeGenerator.TypeGenerator.convertTypeName(TypeGenerator.java:121)
at de.dhbwstuttgart.parser.SyntaxTreeGenerator.TypeGenerator.convertTypeName(TypeGenerator.java:112)
at de.dhbwstuttgart.parser.SyntaxTreeGenerator.TypeGenerator.convert(TypeGenerator.java:108)
at de.dhbwstuttgart.parser.SyntaxTreeGenerator.TypeGenerator.convert(TypeGenerator.java:138)
at de.dhbwstuttgart.parser.SyntaxTreeGenerator.TypeGenerator.convertTypeName(TypeGenerator.java:127)
at de.dhbwstuttgart.parser.SyntaxTreeGenerator.SyntaxTreeGenerator.convert(SyntaxTreeGenerator.java:279)
at de.dhbwstuttgart.parser.SyntaxTreeGenerator.SyntaxTreeGenerator.convertNormal(SyntaxTreeGenerator.java:223)
at de.dhbwstuttgart.parser.SyntaxTreeGenerator.SyntaxTreeGenerator.convertClass(SyntaxTreeGenerator.java:196)
at de.dhbwstuttgart.parser.SyntaxTreeGenerator.SyntaxTreeGenerator.convert(SyntaxTreeGenerator.java:127)
at de.dhbwstuttgart.core.JavaTXCompiler.parse(JavaTXCompiler.java:99)
at de.dhbwstuttgart.core.JavaTXCompiler.(JavaTXCompiler.java:42)
at de.dhbwstuttgart.core.JavaTXCompiler.(JavaTXCompiler.java:36)
at typeinference.JavaTXCompilerTest.test(JavaTXCompilerTest.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192
Fixed
commit
d2fa9e00f8